/*
 * Ferme du Petit Paris — Style inspiré du site actuel
 * Design nature, chaleureux, photos plein écran
 */

/* ========================================
   Variables
   ======================================== */
:root {
  --white: #ffffff;
  --off-white: #f9f9f7;
  --cream: #f5f3ef;
  --beige: #e8e4dc;
  
  --dark: #2b2b2b;
  --text: #3d3d3d;
  --muted: #777777;
  
  --green-dark: #2e5339;
  --green: #3d7a4a;
  --green-light: #5a9c6a;
  --green-pale: #e8f2eb;
  
  --accent: #8b5a2b;
  --accent-light: #c49a6c;
  
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--off-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

a:hover {
  color: var(--green-light);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--dark);
  line-height: 1.3;
}

/* ========================================
   Layout
   ======================================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-main {
  flex: 1;
}

/* ========================================
   Header — style barre fixe sobre
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo-complete {
  height: 66px;
  max-width: 620px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 16px;
  font-size: 1.02rem;
  color: var(--text);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.nav-link:hover {
  background: var(--green-pale);
  color: var(--green-dark);
  text-decoration: none;
}

/* ========================================
   Hero Banner — grande image plein écran
   ======================================== */
.hero-banner {
  position: relative;
  height: 85vh;
  min-height: 500px;
  margin-top: 70px; /* pour le header fixe */
  background: var(--green-dark) url('/assets/images/background.jpg') center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="80" opacity="0.03">🌱</text></svg>') repeat,
    linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 72px 40px;
  max-width: 800px;
}

.hero-logo {
  display: block;
  width: min(460px, 80vw);
  margin: 0 auto 18px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

.hero-ab-logo {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 10px;
  margin: 0 auto 28px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.35));
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   Page Banner — pour sous-pages
   ======================================== */
.page-banner {
  position: relative;
  height: 45vh;
  min-height: 300px;
  margin-top: 70px;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-banner--legumes {
  background-image: url('/assets/images/hero-legumes.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-banner--plants {
  background-image: url('/assets/images/hero-plants.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-banner--olla {
  background:
    linear-gradient(140deg, rgba(46, 83, 57, 0.62) 0%, rgba(61, 122, 74, 0.58) 100%),
    url('/assets/images/hero-olla.jpg');
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
}

.page-banner--contact {
  background-image: url('/assets/images/hero-contact.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-banner--legumes .page-banner-content {
  padding: 48px 56px;
}

.page-banner--legumes .page-title {
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  margin-bottom: 16px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

.page-banner--legumes .page-subtitle {
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 500;
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.5);
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%);
}

.page-banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 40px;
}

.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 12px;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
  font-size: 1.15rem;
  opacity: 0.9;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--white);
  color: var(--green-dark);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--green-dark);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  color: var(--white);
  text-decoration: none;
}

.btn-green {
  background: var(--green);
  color: var(--white);
}

.btn-green:hover {
  background: var(--green-dark);
  color: var(--white);
  text-decoration: none;
}

/* ========================================
   Sections
   ======================================== */
.section {
  padding: 80px 0;
}

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

.section--green {
  background: var(--green-dark);
  color: var(--white);
}

.section--green h2,
.section--green h3 {
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   Info Card — horaires, infos
   ======================================== */
.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.info-card--accent {
  border-left: 4px solid var(--green);
}

.info-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--green-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-title::before {
  content: '🕐';
}

.info-title--no-icon::before {
  content: none;
}

.list {
  list-style: none;
}

.list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--beige);
  color: var(--text);
}

.list li:last-child {
  border-bottom: none;
}

.list li strong {
  color: var(--green-dark);
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 16px;
}

/* ========================================
   Cards Grid
   ======================================== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--green-pale), var(--beige));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.card-img--plants {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.25)),
    url('/assets/images/hero-plants.webp');
}

.card-img--legumes {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.25)),
    url('/assets/images/hero-legumes.webp');
}

.card-img--olla {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.3)),
    url('/assets/images/hero-olla.jpg');
}

.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 12px;
}

.card-text {
  color: var(--muted);
  flex: 1;
  margin-bottom: 16px;
}

.card-cta {
  color: var(--green);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-cta::after {
  content: '→';
  transition: transform var(--transition);
}

.card:hover .card-cta::after {
  transform: translateX(4px);
}

.reviews-summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px 22px;
  margin: 0 auto 22px;
  max-width: 860px;
}

.reviews-score {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
  min-width: 60px;
  text-align: center;
}

.reviews-meta {
  text-align: left;
}

.reviews-stars {
  color: #f4b400;
  letter-spacing: 2px;
  font-size: 1rem;
  white-space: nowrap;
  line-height: 1;
}

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

.reviews-cta {
  white-space: nowrap;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
}

.review-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.review-card p {
  margin: 0;
  display: -webkit-box;
  line-clamp: 5;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-card-head strong {
  min-width: 0;
}

.review-card-head .reviews-stars {
  flex-shrink: 0;
}

/* ========================================
   Split Layout — texte + image/card
   ======================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-content h2 {
  margin-bottom: 20px;
}

.split-content p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.split-content .btn {
  margin-top: 16px;
}

.split-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.split-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.split-placeholder {
  height: 400px;
  background: linear-gradient(135deg, var(--green-pale), var(--beige));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
}

.split-placeholder span:first-child {
  font-size: 4rem;
}

/* ========================================
   Bio Badge
   ======================================== */
.bio-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: var(--green-pale);
  border-radius: 50px;
  margin-top: 24px;
}

.bio-badge img {
  height: 40px;
}

.bio-badge span {
  font-size: 0.9rem;
  color: var(--green-dark);
}

/* ========================================
   Gallery
   ======================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-pale), var(--beige));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
  transition: all var(--transition);
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.magasin-gallery {
  grid-template-columns: repeat(3, 1fr);
}

.magasin-gallery .gallery-item {
  aspect-ratio: 4 / 3;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-figure {
  margin: 0;
  max-width: min(92vw, 1200px);
  max-height: 88vh;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.lightbox-caption {
  color: var(--white);
  text-align: center;
  margin-top: 12px;
  font-size: 0.95rem;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.18);
  border: 0;
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
}

.lightbox-close {
  top: 20px;
  right: 20px;
  font-size: 1.8rem;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--green-dark);
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--beige);
}

.contact-row:last-of-type {
  border-bottom: none;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail {
  flex: 1;
}

.contact-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.contact-value {
  font-size: 1.1rem;
  color: var(--dark);
}

.contact-value a {
  color: var(--green);
}

.contact-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  min-height: 400px;
}

.map-embed {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
  display: block;
}

.map-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 16px;
  background: var(--white);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--green-pale), var(--beige));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
}

.map-placeholder span:first-child {
  font-size: 3rem;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand::before {
  content: '🌿';
}

.footer-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1877f2;
  color: #fff;
  transition: opacity var(--transition), transform var(--transition);
  text-decoration: none;
}

.footer-social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-social-link--insta {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.footer-social-link:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--green);
  transform: translateY(-2px);
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: all var(--transition);
}

.footer-link:hover {
  color: var(--white);
  padding-left: 6px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  margin-left: 20px;
}

.footer-legal a:hover {
  color: var(--white);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 900px) {
  .brand-logo-complete {
    height: 54px;
    max-width: 460px;
  }

  .hero-banner {
    height: 70vh;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .grid--2 {
    grid-template-columns: 1fr;
  }

  .grid--3 {
    grid-template-columns: 1fr;
  }
  
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .reviews-summary {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .reviews-meta {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .brand-logo-complete {
    height: 44px;
    max-width: 320px;
  }

  .site-header {
    position: relative;
  }
  
  .hero-banner,
  .page-banner {
    margin-top: 0;
  }
  
  .header-inner {
    flex-direction: column;
    gap: 16px;
  }
  
  .nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .nav-link {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  
  .hero-banner {
    height: auto;
    min-height: 100vh;
    padding: 80px 0;
  }
  
  .hero-content {
    padding: 20px;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .gallery {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  
  .contact-actions {
    flex-direction: column;
  }
}
