/* ============================================================
   PIASTRELLA CONCEPT - Professional Corporate Theme
   ============================================================ */

/* --- CSS Custom Properties (Dark = default) --- */
:root {
  /* Backgrounds */
  --bg-main: #0f172a;
  --bg-alt: #1e293b;
  --bg-subtle: #334155;
  --bg-footer: #0f172a;
  --bg-card: #1e293b;
  --bg-input: #1e293b;
  --bg-hero-overlay: rgba(15, 23, 42, 0.7);

  /* Text */
  --text-heading: #f1f5f9;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;

  /* Accents */
  --primary-light: #60a5fa;
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-tint: #1e3a5f;

  /* Borders */
  --border: #334155;
  --border-emphasis: #475569;

  /* Shadows */
  --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.3);

  /* Misc */
  --nav-bg: #0f172a;
  --nav-border: #334155;
  --overlay-bg: rgba(15, 23, 42, 0.95);
  --btn-text: #ffffff;
  --badge-bg: #1e3a5f;
  --badge-text: #60a5fa;
  --progress-bg: #334155;
  --step-inactive-bg: #334155;
  --step-inactive-text: #94a3b8;
  --success-bg: #064e3b;
  --success-text: #6ee7b7;
  --success-border: #065f46;
  --error-bg: #7f1d1d;
  --error-text: #fca5a5;
  --error-border: #991b1b;
}

[data-theme="light"] {
  /* Backgrounds */
  --bg-main: #ffffff;
  --bg-alt: #f8fafc;
  --bg-subtle: #f1f5f9;
  --bg-footer: #0f172a;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --bg-hero-overlay: rgba(15, 23, 42, 0.55);

  /* Text */
  --text-heading: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;

  /* Accents */
  --primary-light: #3b82f6;
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-tint: #dbeafe;

  /* Borders */
  --border: #e2e8f0;
  --border-emphasis: #cbd5e1;

  /* Shadows */
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);

  /* Misc */
  --nav-bg: #ffffff;
  --nav-border: #e2e8f0;
  --overlay-bg: rgba(255, 255, 255, 0.98);
  --btn-text: #ffffff;
  --badge-bg: #dbeafe;
  --badge-text: #1e40af;
  --progress-bg: #e2e8f0;
  --step-inactive-bg: #e2e8f0;
  --step-inactive-text: #64748b;
  --success-bg: #ecfdf5;
  --success-text: #065f46;
  --success-border: #a7f3d0;
  --error-bg: #fef2f2;
  --error-text: #991b1b;
  --error-border: #fecaca;
}

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

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

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-main);
  transition: background-color 0.3s, color 0.3s;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.2;
  transition: color 0.3s;
}

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

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

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

ul, ol {
  list-style: none;
}

/* --- Utility --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  transition: background-color 0.3s;
}

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

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

.section-title {
  font-size: 2rem;
  margin-bottom: 16px;
  text-align: center;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  transition: background-color 0.3s, border-color 0.3s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.header-logo img {
  height: 48px;
  width: auto;
}

.header-logo span {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-heading);
  transition: color 0.3s;
}

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

.nav-desktop a {
  padding: 8px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-body);
  border-radius: 6px;
  transition: color 0.3s, background-color 0.3s;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--primary-light);
  background-color: var(--primary-tint);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-dropdown-trigger svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  padding: 8px;
  margin-top: 4px;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.9375rem;
  color: var(--text-body);
}

.nav-dropdown-menu a:hover {
  background-color: var(--primary-tint);
  color: var(--primary-light);
}

/* Header right area */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language selector */
.lang-selector {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-selector a {
  font-size: 1.25rem;
  line-height: 1;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.lang-selector a:hover,
.lang-selector a.active-lang {
  opacity: 1;
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.3s, border-color 0.3s, background-color 0.3s;
}

.theme-toggle:hover {
  color: var(--primary-light);
  border-color: var(--primary-light);
  background-color: var(--primary-tint);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* CTA button in nav */
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background-color: var(--primary);
  color: var(--btn-text) !important;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: background-color 0.3s;
}

.nav-cta:hover {
  background-color: var(--primary-dark);
  color: var(--btn-text) !important;
}

/* --- Mobile Navigation --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-heading);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--overlay-bg);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.nav-mobile.open {
  opacity: 1;
  visibility: visible;
}

.nav-mobile a {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-heading);
  padding: 12px 24px;
  border-radius: 8px;
  transition: color 0.3s, background-color 0.3s;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--primary-light);
  background-color: var(--primary-tint);
}

.nav-mobile .mobile-lang {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  font-size: 1.5rem;
}

.nav-mobile .mobile-lang a {
  font-size: 1.5rem;
  padding: 8px;
}

@media (max-width: 900px) {
  .nav-desktop,
  .header-right .lang-selector {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-hero-overlay);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 16px;
  color: #f1f5f9;
}

.hero-content p {
  font-size: 1.25rem;
  color: #cbd5e1;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-content .hero-tagline {
  font-size: 1rem;
  color: #94a3b8;
  margin-bottom: 32px;
  font-style: italic;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--btn-text);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--btn-text);
}

.btn-outline {
  background-color: transparent;
  color: #f1f5f9;
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  background-color: rgba(255,255,255,0.1);
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--bg-subtle);
  color: var(--text-heading);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--border);
}

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

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s, border-color 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.card-body p {
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.card-body .btn {
  font-size: 0.875rem;
  padding: 8px 20px;
}

/* --- Intro / Content Sections --- */
.content-block {
  max-width: 800px;
  margin: 0 auto;
}

.content-block h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.content-block p {
  margin-bottom: 16px;
  font-size: 1.0625rem;
}

.content-block ul {
  margin-bottom: 16px;
  padding-left: 0;
}

.content-block ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 1.0625rem;
  color: var(--text-body);
}

.content-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-light);
}

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.two-col--reverse {
  direction: rtl;
}

.two-col--reverse > * {
  direction: ltr;
}

.two-col-image {
  border-radius: 8px;
  width: 100%;
  height: auto;
  box-shadow: var(--shadow-lg);
}

/* --- Service Area / Cities --- */
.cities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}

.city-badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--badge-bg);
  color: var(--badge-text);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s;
}

/* --- Partner --- */
.partner-section {
  text-align: center;
}

.partner-logo {
  max-width: 200px;
  margin: 0 auto 16px;
  border-radius: 8px;
}

.partner-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.partner-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 80px 24px;
  background-color: var(--bg-alt);
  transition: background-color 0.3s;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.cta-section p {
  margin-bottom: 32px;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Contact Info --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-tint);
  border-radius: 8px;
  color: var(--primary-light);
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
}

.contact-info-item strong {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.contact-info-item span,
.contact-info-item a {
  font-size: 1rem;
  color: var(--text-heading);
}

.contact-info-item a:hover {
  color: var(--primary-light);
}

/* --- Forms --- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-heading);
  margin-bottom: 6px;
  transition: color 0.3s;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text-heading);
  background-color: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-disclaimer {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.form-feedback {
  padding: 12px 16px;
  border-radius: 6px;
  margin-top: 16px;
  display: none;
  font-size: 0.9375rem;
}

.form-feedback.success {
  display: block;
  background-color: var(--success-bg);
  color: var(--success-text);
  border: 1px solid var(--success-border);
}

.form-feedback.error {
  display: block;
  background-color: var(--error-bg);
  color: var(--error-text);
  border: 1px solid var(--error-border);
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* --- Multi-step form (devis) --- */
.devis-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow);
  transition: background-color 0.3s, border-color 0.3s;
}

.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  gap: 0;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 0;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  background-color: var(--step-inactive-bg);
  color: var(--step-inactive-text);
  transition: background-color 0.3s, color 0.3s;
  flex-shrink: 0;
}

.step-circle.active,
.step-circle.completed {
  background-color: var(--primary);
  color: var(--btn-text);
}

.step-line {
  width: 40px;
  height: 2px;
  background-color: var(--progress-bg);
  transition: background-color 0.3s;
}

.step-line.active {
  background-color: var(--primary);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.step-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
  text-align: center;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background-color: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s;
}

.radio-option:hover {
  border-color: var(--primary-light);
}

.radio-option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.radio-option span {
  font-size: 1rem;
  color: var(--text-heading);
  font-weight: 500;
}

.radio-option input[type="radio"]:checked + span {
  color: var(--primary-light);
}

.step-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  gap: 16px;
}

.step-buttons .btn {
  min-width: 120px;
}

/* Review step */
.review-block {
  margin-bottom: 20px;
  padding: 16px;
  background-color: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: background-color 0.3s, border-color 0.3s;
}

.review-block h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.review-block p {
  color: var(--text-heading);
  font-size: 1rem;
}

/* --- Map --- */
.map-container {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 48px;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--bg-footer);
  border-top: 1px solid var(--border);
  padding: 60px 0 24px;
  transition: background-color 0.3s, border-color 0.3s;
}

/* Footer always uses dark style for readability */
.site-footer {
  color: #cbd5e1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 1.25rem;
  color: #f1f5f9;
  margin-bottom: 12px;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #f1f5f9;
  margin-bottom: 16px;
}

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

.footer-links a {
  color: #94a3b8;
  font-size: 0.9375rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #60a5fa;
}

.footer-contact p,
.footer-contact a {
  color: #94a3b8;
  font-size: 0.9375rem;
  margin-bottom: 8px;
  display: block;
}

.footer-contact a:hover {
  color: #60a5fa;
}

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

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #1e293b;
  border-radius: 8px;
  color: #94a3b8;
  transition: color 0.3s, background-color 0.3s;
}

.footer-social a:hover {
  color: #60a5fa;
  background-color: #334155;
}

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

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: #64748b;
  font-size: 0.8125rem;
}

/* --- Page-specific: Features list --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: background-color 0.3s, border-color 0.3s;
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-tint);
  border-radius: 8px;
  color: var(--primary-light);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-item h3 {
  font-size: 1.0625rem;
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.feature-item p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .two-col--reverse {
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero-content p {
    font-size: 1.0625rem;
  }

  .section {
    padding: 56px 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .devis-form-wrapper {
    padding: 24px;
  }

  .step-line {
    width: 24px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 400px;
    padding: 100px 16px 60px;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

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

  .container {
    padding: 0 16px;
  }

  .header-inner {
    padding: 0 16px;
  }
}

/* ============================================================
   BLOG STYLES
   ============================================================ */

/* --- CSS variables for blog categories --- */
:root {
  --cat-tendances-mois: #34d399;
  --cat-tendances-mois-bg: rgba(52,211,153,0.12);
  --cat-tendances: #60a5fa;
  --cat-tendances-bg: rgba(96,165,250,0.12);
  --cat-materiaux: #f59e0b;
  --cat-materiaux-bg: rgba(245,158,11,0.12);
  --cat-sdb: #22d3ee;
  --cat-sdb-bg: rgba(34,211,238,0.12);
  --cat-cuisine: #a78bfa;
  --cat-cuisine-bg: rgba(167,139,250,0.12);
  --cat-couleurs: #f472b6;
  --cat-couleurs-bg: rgba(244,114,182,0.12);
}

[data-theme="light"] {
  --cat-tendances-mois-bg: rgba(5,150,105,0.1);
  --cat-tendances-bg: rgba(37,99,235,0.1);
  --cat-materiaux-bg: rgba(217,119,6,0.1);
  --cat-sdb-bg: rgba(8,145,178,0.1);
  --cat-cuisine-bg: rgba(109,40,217,0.1);
  --cat-couleurs-bg: rgba(219,39,119,0.1);
}

/* --- Blog listing grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}

/* --- Blog card --- */
.blog-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.blog-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image {
  transform: scale(1.03);
}

.blog-card-image-wrap {
  overflow: hidden;
  flex-shrink: 0;
}

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

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.blog-card-body h2 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  line-height: 1.35;
  transition: color 0.3s;
}

.blog-card-body h2 a {
  color: var(--text-heading);
  text-decoration: none;
  transition: color 0.3s;
}

.blog-card-body h2 a:hover {
  color: var(--primary-light);
}

.blog-card-excerpt {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}

.blog-card-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-light);
  text-decoration: none;
  margin-top: auto;
  transition: gap 0.2s, color 0.3s;
}

.blog-card-read:hover {
  color: var(--primary);
  gap: 10px;
}

.blog-card-read svg {
  width: 16px;
  height: 16px;
}

/* --- Featured blog card (full width, spans 2 cols) --- */
.blog-card-featured {
  grid-column: 1 / -1;
  flex-direction: row;
}

.blog-card-featured .blog-card-image-wrap {
  flex: 0 0 45%;
  max-width: 45%;
}

.blog-card-featured .blog-card-image {
  height: 100%;
  min-height: 300px;
}

.blog-card-featured .blog-card-body {
  padding: 36px;
}

.blog-card-featured .blog-card-body h2 {
  font-size: 1.625rem;
}

.blog-card-featured .blog-card-excerpt {
  font-size: 1rem;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #f59e0b;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.3);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* --- Category badge --- */
.blog-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
}

.blog-category--tendances-mois {
  color: var(--cat-tendances-mois);
  background-color: var(--cat-tendances-mois-bg);
}

.blog-category--tendances {
  color: var(--cat-tendances);
  background-color: var(--cat-tendances-bg);
}

.blog-category--materiaux {
  color: var(--cat-materiaux);
  background-color: var(--cat-materiaux-bg);
}

.blog-category--sdb {
  color: var(--cat-sdb);
  background-color: var(--cat-sdb-bg);
}

.blog-category--cuisine {
  color: var(--cat-cuisine);
  background-color: var(--cat-cuisine-bg);
}

.blog-category--couleurs {
  color: var(--cat-couleurs);
  background-color: var(--cat-couleurs-bg);
}

/* --- Date --- */
.blog-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* --- Blog article page layout --- */
.blog-article {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

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

.breadcrumb-sep {
  color: var(--border-emphasis);
}

.breadcrumb-current {
  color: var(--text-body);
  font-weight: 500;
}

/* Article header */
.blog-article-header {
  margin-bottom: 40px;
}

.blog-article-header .blog-cat-date {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.blog-article-header h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-heading);
}

.blog-article-header .article-intro {
  font-size: 1.1875rem;
  color: var(--text-body);
  line-height: 1.75;
  border-left: 3px solid var(--primary-light);
  padding-left: 20px;
  margin-top: 20px;
}

.blog-article-hero {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-lg);
}

/* Article content typography */
.blog-article-content {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text-body);
}

.blog-article-content h2 {
  font-size: 1.625rem;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text-heading);
}

.blog-article-content h3 {
  font-size: 1.25rem;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text-heading);
}

.blog-article-content p {
  margin-bottom: 20px;
}

.blog-article-content ul,
.blog-article-content ol {
  margin-bottom: 20px;
  padding-left: 0;
  list-style: none;
}

.blog-article-content ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--text-body);
}

.blog-article-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-light);
}

.blog-article-content ol {
  counter-reset: article-counter;
}

.blog-article-content ol li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 12px;
  counter-increment: article-counter;
}

.blog-article-content ol li::before {
  content: counter(article-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--primary-tint);
  color: var(--primary-light);
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
}

.blog-article-content blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  background-color: var(--bg-alt);
  border-left: 4px solid var(--primary-light);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 1.125rem;
  color: var(--text-heading);
  line-height: 1.7;
  transition: background-color 0.3s;
}

.blog-article-content strong {
  color: var(--text-heading);
  font-weight: 600;
}

.blog-article-content a {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
}

.blog-article-content a:hover {
  color: var(--primary);
}

/* Tip / info box */
.blog-tip {
  background-color: var(--primary-tint);
  border: 1px solid var(--primary-light);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 28px 0;
  font-size: 0.9375rem;
  color: var(--text-body);
  transition: background-color 0.3s, border-color 0.3s;
}

.blog-tip strong {
  display: block;
  color: var(--primary-light);
  margin-bottom: 6px;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Blog CTA at end of article --- */
.blog-article-cta {
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  margin-top: 56px;
  transition: background-color 0.3s, border-color 0.3s;
}

.blog-article-cta h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.blog-article-cta p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 1rem;
}

/* --- Related articles --- */
.related-articles {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.related-articles h3 {
  font-size: 1.5rem;
  margin-bottom: 28px;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.related-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.related-card-body {
  padding: 16px;
}

.related-card-body .blog-date {
  display: block;
  margin-bottom: 6px;
}

.related-card-body h4 {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 10px;
}

.related-card-body h4 a {
  color: var(--text-heading);
  text-decoration: none;
  transition: color 0.3s;
}

.related-card-body h4 a:hover {
  color: var(--primary-light);
}

/* --- Blog nav (prev/next) --- */
.blog-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.blog-nav-prev,
.blog-nav-next {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 48%;
  text-decoration: none;
  padding: 16px 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.3s, background-color 0.3s, transform 0.2s;
}

.blog-nav-next {
  text-align: right;
  margin-left: auto;
}

.blog-nav-prev:hover,
.blog-nav-next:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.blog-nav-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.blog-nav-title {
  font-size: 0.9375rem;
  color: var(--text-heading);
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

/* --- Blog share section --- */
.blog-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.blog-share-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text-body);
  background-color: var(--bg-card);
  transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}

.blog-share-btn:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
  background-color: var(--primary-tint);
}

/* --- Blog page hero --- */
.blog-hero {
  padding: 120px 24px 72px;
  text-align: center;
  background-color: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s, border-color 0.3s;
}

.blog-hero h1 {
  font-size: 2.75rem;
  margin-bottom: 16px;
}

.blog-hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Blog section container --- */
.blog-section {
  padding: 64px 0 96px;
}

/* --- Responsive blog --- */
@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card-featured {
    flex-direction: column;
  }

  .blog-card-featured .blog-card-image-wrap {
    flex: none;
    max-width: 100%;
  }

  .blog-card-featured .blog-card-image {
    height: 240px;
    min-height: unset;
  }

  .blog-article-header h1 {
    font-size: 1.875rem;
  }

  .blog-article-hero {
    height: 260px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .blog-nav-prev,
  .blog-nav-next {
    max-width: 100%;
    width: 100%;
  }

  .blog-hero h1 {
    font-size: 1.875rem;
  }
}

@media (max-width: 480px) {
  .blog-article-header h1 {
    font-size: 1.5rem;
  }

  .blog-article-content h2 {
    font-size: 1.375rem;
  }

  .blog-article-cta {
    padding: 28px 20px;
  }

  .blog-hero {
    padding: 100px 16px 56px;
  }
}
