/* CSS Principal - Cuisines & Bains Magazine (cuisiniste-draguignan.fr) */
:root {
  --primary: #B5702E;
  --primary-hover: #9C6028;
  --primary-light: #F7EFE2;
  --secondary: #3B4A3F;
  --secondary-hover: #2F3B32;
  --accent: #C9A063;
  --dark: #3B4A3F;
  --dark-light: #4E5A50;
  --gray-100: #EDE7DD;
  --gray-200: #F5F1E9;
  --gray-300: #DCD3C2;
  --gray-600: #7B8479;
  --gray-800: #232C25;
  --white: #FFFFFF;
  --on-primary: #FFFFFF;
  --text-strong: #1A211C;
  --text-faint: #C9C1B3;
  --callout-bg: #F7EFE2;
  --callout-text: #8A5320;
  --callout-border: #E3CFAE;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Karla', system-ui, -apple-system, sans-serif;
  --font-serif: 'Bitter', Georgia, serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--gray-100);
  color: var(--dark);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

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

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

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

/* Scroll Animation */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Header & Nav */
.top-bar {
  background-color: var(--dark);
  color: var(--white);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-heritage {
  background: linear-gradient(135deg, var(--accent), var(--primary-light));
  color: var(--dark);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.site-header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.brand-logo i {
  color: var(--secondary);
  font-size: 1.8rem;
}

.brand-logo .sub-tag {
  display: block;
  font-family: var(--font-main);
  font-size: 0.75rem;
  color: var(--gray-600);
  font-weight: 500;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
  padding: 8px 4px;
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(181, 112, 46, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(181, 112, 46, 0.4);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(201, 160, 99, 0.3);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary-light);
  color: var(--primary-hover);
}

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

.btn-dark:hover {
  background-color: var(--dark-light);
  color: var(--white);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 70px 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 40px;
  max-width: 720px;
}

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

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(181, 112, 46, 0.95), rgba(59, 74, 63, 0.92)), url('https://images.pexels.com/photos/7598127/pexels-photo-7598127.jpeg?auto=compress&cs=tinysrgb&fit=crop&h=627&w=1200') center/cover no-repeat;
  color: var(--white);
  padding: 90px 0 110px;
  overflow: hidden;
}

.hero-content {
  max-width: 780px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 35px;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.stat-item .num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}

.stat-item .lbl {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Feature Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-300);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(181, 112, 46, 0.2);
}

.card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-img img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}

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

.card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.card-text {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.price-tag {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

/* Compare Table Component */
.compare-table-wrapper {
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow-x: auto;
  border: 1px solid var(--gray-300);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 650px;
}

.compare-table th, .compare-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
}

.compare-table th {
  background-color: var(--gray-100);
  font-weight: 700;
  color: var(--dark);
  font-size: 0.95rem;
}

.compare-table tr:hover {
  background-color: var(--gray-200);
}

.compare-table .brand-col {
  font-weight: 700;
  color: var(--primary);
}

.badge-check {
  color: #10B981;
  font-weight: bold;
}

.badge-cross {
  color: #EF4444;
  font-weight: bold;
}

/* Simulator Widget */
.simulator-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--primary-light);
}

.sim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.sim-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--dark);
}

.sim-field select, .sim-field input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-300);
  background-color: var(--gray-100);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}

.sim-field select:focus, .sim-field input:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(181, 112, 46, 0.15);
}

.sim-result-box {
  background: linear-gradient(135deg, var(--dark), var(--primary));
  color: var(--white);
  padding: 25px;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.sim-result-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
}

/* DNA / About Banner */
.dna-banner {
  background-color: var(--primary-light);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 30px;
  margin: 40px 0;
}

.dna-banner h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 10px;
}

/* Footer */
.site-footer {
  background-color: var(--dark);
  color: var(--text-faint);
  padding: 70px 0 30px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  font-family: var(--font-serif);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-faint);
}

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

.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: 15px;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.5rem; }
  .header-inner { padding: 12px 0; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.active { display: flex; }
  .mobile-nav-toggle { display: block; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .section { padding: 45px 0; }
  .section-title { font-size: 1.8rem; }
  .btn { width: 100%; justify-content: center; }
  .sim-result-box { flex-direction: column; text-align: center; }
}