/* ============================================================
   Les Cuisines Brivadoises — style.css
   Palette: terracotta #c2703e | olive #5a7247 | cream #fdf6ee
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --terra: #c2703e;
  --terra-dark: #a85c2e;
  --olive: #5a7247;
  --olive-dark: #3f5232;
  --cream: #fdf6ee;
  --cream-dark: #f2e8d9;
  --brown: #4a3728;
  --text: #2c1f14;
  --text-light: #6b5744;
  --white: #fff;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(44,31,20,.12);
  --shadow-lg: 0 8px 40px rgba(44,31,20,.18);
  --transition: .3s ease;
  --max-w: 1200px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Open Sans', Arial, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--brown);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1em; }
a { color: var(--terra); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--terra-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.btn {
  display: inline-block;
  padding: .85em 2.2em;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.btn-primary {
  background: var(--terra);
  color: var(--white);
  border-color: var(--terra);
}
.btn-primary:hover {
  background: var(--terra-dark);
  border-color: var(--terra-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(194,112,62,.35);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-secondary:hover {
  background: var(--white);
  color: var(--terra);
}
.btn-outline {
  background: transparent;
  color: var(--terra);
  border-color: var(--terra);
}
.btn-outline:hover {
  background: var(--terra);
  color: var(--white);
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(253,246,238,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(194,112,62,.15);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo img { height: 52px; width: auto; }
.nav-logo:hover { opacity: .85; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.nav-links a {
  color: var(--brown);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 3px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--terra);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--terra); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta { margin-left: .5rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('../images/hero-cuisine.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44,31,20,.88) 0%, rgba(90,114,71,.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: var(--white);
}
.hero-badge {
  display: inline-block;
  background: rgba(194,112,62,.25);
  border: 1px solid rgba(194,112,62,.5);
  color: #f5c99a;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .4em 1.2em;
  border-radius: 20px;
  margin-bottom: 1.4rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.2rem; }
.hero p { font-size: 1.15rem; margin-bottom: 2rem; color: rgba(255,255,255,.88); max-width: 600px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255,255,255,.6);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  animation: bounce 2s infinite;
}
.hero-scroll::after {
  content: 'v';
  display: block;
  font-size: 1.2rem;
  margin-top: .3rem;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ---------- Section shared ---------- */
section { padding: 5rem 0; }
.section-label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: .7rem;
}
.section-title { margin-bottom: 1rem; }
.section-intro { color: var(--text-light); max-width: 640px; margin-bottom: 2.5rem; }
.section-header { margin-bottom: 3rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-intro { margin: 0 auto 2.5rem; }

/* ---------- Services Grid ---------- */
.services { background: var(--cream); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid var(--terra);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-icon {
  width: 54px; height: 54px;
  background: linear-gradient(135deg, var(--terra), var(--terra-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
}
.service-card h3 { margin-bottom: .7rem; font-size: 1.2rem; }
.service-card p { color: var(--text-light); font-size: .93rem; margin-bottom: 1.2rem; }
.service-link {
  font-size: .85rem;
  font-weight: 700;
  color: var(--terra);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.service-link::after { content: ' ->'; }

/* ---------- 2-col conseil ---------- */
.conseil-section { background: var(--white); }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col.reverse .two-col-img { order: 2; }
.two-col.reverse .two-col-text { order: 1; }
.two-col-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
  height: 480px;
}
.two-col-text ul {
  list-style: disc;
  padding-left: 1.3rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}
.two-col-text ul li { margin-bottom: .5rem; }

/* ---------- Zone Banner ---------- */
.zone-banner {
  position: relative;
  padding: 6rem 0;
  background-image: url('../images/vue-cagnes.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  color: var(--white);
}
.zone-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(44,31,20,.87);
}
.zone-banner .container { position: relative; z-index: 1; }
.zone-banner h2 { color: var(--white); margin-bottom: 1rem; }
.zone-banner p { color: rgba(255,255,255,.85); max-width: 680px; margin: 0 auto 1.5rem; font-size: 1.05rem; }
.zone-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  justify-content: center;
  margin-top: 2rem;
}
.zone-tag {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  padding: .4em 1.1em;
  border-radius: 20px;
  font-size: .83rem;
  font-weight: 600;
  letter-spacing: .05em;
}

/* ---------- CTA 2-col ---------- */
.cta-section { background: var(--cream); }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--white); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}
.testimonial-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  position: relative;
  box-shadow: var(--shadow);
}
.testimonial-card::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--terra);
  opacity: .2;
  position: absolute;
  top: -.5rem;
  left: 1rem;
  line-height: 1;
}
.stars { color: #e8a84a; font-size: 1rem; margin-bottom: .8rem; }
.testimonial-card p { font-style: italic; color: var(--text-light); margin-bottom: 1rem; font-size: .95rem; }
.testimonial-author { font-weight: 700; color: var(--brown); font-size: .88rem; }
.testimonial-location { color: var(--text-light); font-size: .8rem; }

/* ---------- FAQ ---------- */
.faq { background: var(--cream); }
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid rgba(194,112,62,.2);
  margin-bottom: .5rem;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 1.2rem 0;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--brown);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-question .faq-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--terra);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  transition: transform var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
  color: var(--text-light);
  font-size: .96rem;
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 1.2rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brown);
  color: rgba(255,255,255,.8);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand img { height: 48px; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: .85; }
.footer-brand p { font-size: .9rem; }
.footer-col h4 { color: var(--white); margin-bottom: 1.2rem; font-size: 1rem; }
.footer-col ul li { margin-bottom: .55rem; }
.footer-col ul li a { color: rgba(255,255,255,.7); font-size: .88rem; }
.footer-col ul li a:hover { color: var(--terra); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--terra); }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: 9rem 0 5rem;
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(44,31,20,.87);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 640px; margin: 0 auto; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  background: var(--cream);
  padding: .9rem 0;
  border-bottom: 1px solid var(--cream-dark);
  font-size: .82rem;
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.breadcrumb li { color: var(--text-light); }
.breadcrumb li + li::before { content: 'e'; margin-right: .4rem; color: var(--terra); }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--terra); }
.breadcrumb [aria-current="page"] { color: var(--terra); font-weight: 600; }

/* ---------- Inner page content ---------- */
.page-content { padding: 4rem 0 5rem; }
.page-content h2 { margin-top: 2rem; margin-bottom: 1rem; }
.page-content h3 { margin-top: 1.5rem; margin-bottom: .7rem; color: var(--olive-dark); }
.page-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--text-light);
  margin-bottom: 1.2rem;
}
.page-content ul li { margin-bottom: .4rem; }
.page-content .highlight-box {
  background: var(--cream);
  border-left: 4px solid var(--terra);
  padding: 1.5rem 1.8rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}
.page-content .highlight-box p { margin: 0; font-style: italic; color: var(--text-light); }

/* ---------- Blog listing ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.blog-card-img {
  height: 210px;
  overflow: hidden;
  background: var(--cream-dark);
}
.blog-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-cat {
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: .5rem;
}
.blog-card-body h3 { font-size: 1.05rem; margin-bottom: .7rem; }
.blog-card-body h3 a { color: var(--brown); }
.blog-card-body h3 a:hover { color: var(--terra); }
.blog-card-body p { font-size: .88rem; color: var(--text-light); flex: 1; margin-bottom: 1.2rem; }
.blog-meta { font-size: .78rem; color: var(--text-light); }
.blog-meta time { font-weight: 600; }

/* ---------- Article page ---------- */
.article-hero {
  position: relative;
  padding: 9rem 0 5rem;
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
}
.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(44,31,20,.87);
}
.article-hero .container { position: relative; z-index: 1; }
.article-hero h1 { color: var(--white); margin-bottom: 1rem; }
.article-meta { color: rgba(255,255,255,.75); font-size: .88rem; margin-top: .8rem; }

.article-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 5rem;
}
.article-body h2 { margin: 2.5rem 0 1rem; }
.article-body h3 { margin: 2rem 0 .8rem; color: var(--olive-dark); }
.article-body p { color: var(--text); margin-bottom: 1.1em; }
.article-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
  color: var(--text-light);
}
.article-body ul li { margin-bottom: .4rem; }
.article-body a { color: var(--terra); border-bottom: 1px solid rgba(194,112,62,.3); }
.article-body a:hover { color: var(--terra-dark); border-color: var(--terra); }
.article-img {
  margin: 2.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.article-img img { width: 100%; height: 360px; object-fit: cover; }
.article-img figcaption {
  background: var(--cream);
  padding: .8rem 1.2rem;
  font-size: .82rem;
  color: var(--text-light);
  font-style: italic;
}

.article-cta-box {
  background: linear-gradient(135deg, var(--terra) 0%, var(--terra-dark) 100%);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 3rem 0;
  color: var(--white);
}
.article-cta-box h3 { color: var(--white); margin-bottom: .8rem; }
.article-cta-box p { color: rgba(255,255,255,.88); margin-bottom: 1.5rem; }

.article-related {
  background: var(--cream);
  padding: 4rem 0;
}
.article-related h2 { text-align: center; margin-bottom: 2.5rem; }

/* ---------- Contact ---------- */
.contact-section { padding: 5rem 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { color: var(--text-light); margin-bottom: 1.5rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.2rem;
  background: var(--cream);
  border-radius: var(--radius);
}
.contact-item-icon {
  width: 42px; height: 42px;
  background: var(--terra);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item-text strong { display: block; color: var(--brown); margin-bottom: .2rem; }
.contact-item-text span { color: var(--text-light); font-size: .9rem; }

.contact-form-wrap {
  background: var(--cream);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-form-wrap h3 { margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.3rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: .5rem;
  letter-spacing: .03em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .85em 1.1em;
  border: 1.5px solid rgba(194,112,62,.25);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--terra);
  box-shadow: 0 0 0 3px rgba(194,112,62,.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ---------- 404 ---------- */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--cream);
  padding: 4rem 1.25rem;
}
.error-code {
  font-size: clamp(5rem, 18vw, 10rem);
  font-family: var(--font-heading);
  color: var(--terra);
  opacity: .25;
  line-height: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { gap: 2.5rem; }
}

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--cream);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.1rem; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse .two-col-img,
  .two-col.reverse .two-col-text { order: unset; }
  .two-col-img img { height: 300px; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 3.5rem 0; }
  .hero { background-attachment: scroll; }
  .zone-banner { background-attachment: scroll; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .blog-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
