/*
 Theme Name: MitoSlate – Astra Child
 Theme URI: https://mitosaldaite.fr
 Template: astra
 Description: Thème enfant Astra pour MitoSlate — concours SEO mitosaldaite 2026
 Author: MitoSlate
 Author URI: https://mitosaldaite.fr
 Version: 1.0.0
 Text Domain: mitoslate
*/

/* ==========================================================================
   1. CSS VARIABLES
   ========================================================================== */

:root {
  --color-bg: #0a0a0a;
  --color-surface: #111111;
  --color-surface-2: #161616;
  --color-border: #1e1e1e;
  --color-gold: #c9a84c;
  --color-gold-light: #e8c97a;
  --color-ardoise: #2d3748;
  --color-text: #f0f0f0;
  --color-muted: #888888;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ==========================================================================
   2. GLOBAL RESET & BASE
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

ul,
ol {
  list-style: none;
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 0.5em;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.2rem;
  position: relative;
  display: inline-block;
}

h3 {
  font-size: 1.6rem;
}

h4 {
  font-size: 1.3rem;
}

h5 {
  font-size: 1.1rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1em;
  color: var(--color-text);
  line-height: 1.8;
}

strong {
  font-weight: 700;
}

em {
  font-style: italic;
}

/* H2 decorative gold line */
h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-gold);
  margin-top: 12px;
  transition: width 0.4s ease;
}

h2:hover::after {
  width: 120px;
}

/* Centered section titles */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  display: inline-block;
}

.section-title h2::after {
  margin-left: auto;
  margin-right: auto;
}

.section-title p {
  color: var(--color-muted);
  max-width: 600px;
  margin: 16px auto 0;
  font-size: 1.05rem;
}

/* ==========================================================================
   4. LAYOUT UTILITIES
   ========================================================================== */

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

.section-padding {
  padding: 100px 0;
}

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

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ==========================================================================
   5. UTILITY CLASSES
   ========================================================================== */

.text-gold {
  color: var(--color-gold);
}

.text-muted {
  color: var(--color-muted);
}

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

.bg-surface-2 {
  background-color: var(--color-surface-2);
}

.btn-gold {
  display: inline-block;
  background-color: var(--color-gold);
  color: #000;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 36px;
  border: 2px solid var(--color-gold);
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.btn-gold:hover {
  background-color: #b8963f;
  color: #000;
  transform: translateY(-2px);
}

.btn-gold-outline {
  display: inline-block;
  background-color: transparent;
  color: var(--color-gold);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 36px;
  border: 2px solid var(--color-gold);
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.btn-gold-outline:hover {
  background-color: var(--color-gold);
  color: #000;
  transform: translateY(-2px);
}

.badge-gold {
  display: inline-block;
  background-color: rgba(201, 168, 76, 0.15);
  color: var(--color-gold);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 1px solid rgba(201, 168, 76, 0.3);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   6. HEADER (Override Astra)
   ========================================================================== */

.ast-primary-header,
.site-header,
#masthead {
  background-color: var(--color-bg) !important;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3) !important;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.ast-primary-header .ast-builder-layout-element,
.site-header .ast-container {
  background-color: transparent !important;
}

/* Logo text styling */
.site-logo-text,
.mitoslate-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
}

.site-logo-text .dot,
.mitoslate-logo .dot {
  color: var(--color-gold);
}

.site-title a,
.ast-site-identity .site-title a {
  font-family: var(--font-display) !important;
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  color: var(--color-text) !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
}

/* Nav links */
.ast-header-break-point .main-header-menu a,
.main-navigation a,
.ast-nav-menu a,
.main-header-menu > .menu-item > a,
.ast-header-sections-navigation .menu-item > a {
  font-family: var(--font-body) !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  color: var(--color-text) !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  padding: 10px 18px !important;
  transition: color 0.3s ease !important;
}

.main-header-menu > .menu-item > a:hover,
.main-navigation a:hover,
.ast-nav-menu a:hover,
.ast-header-sections-navigation .menu-item > a:hover {
  color: var(--color-gold) !important;
}

.main-header-menu > .current-menu-item > a,
.main-navigation .current-menu-item > a,
.ast-nav-menu .current-menu-item > a {
  color: var(--color-gold) !important;
}

/* CTA button in header */
.header-cta,
.ast-custom-button,
.menu-item.cta-button > a,
.ast-header-button a {
  background-color: var(--color-gold) !important;
  color: #000 !important;
  font-family: var(--font-body) !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  padding: 10px 24px !important;
  border-radius: 4px !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  border: 2px solid var(--color-gold) !important;
  transition: background-color 0.3s ease !important;
}

.header-cta:hover,
.ast-custom-button:hover,
.menu-item.cta-button > a:hover,
.ast-header-button a:hover {
  background-color: #b8963f !important;
  border-color: #b8963f !important;
  color: #000 !important;
}

/* Mobile menu toggle */
.ast-mobile-menu-trigger-minimal,
.ast-button-wrap .menu-toggle {
  color: var(--color-text) !important;
}

/* Submenu */
.ast-nav-menu .sub-menu,
.main-header-menu .sub-menu {
  background-color: var(--color-surface) !important;
  border: 1px solid var(--color-border) !important;
  border-top: 2px solid var(--color-gold) !important;
}

.ast-nav-menu .sub-menu a,
.main-header-menu .sub-menu a {
  color: var(--color-text) !important;
  font-size: 0.82rem !important;
}

.ast-nav-menu .sub-menu a:hover,
.main-header-menu .sub-menu a:hover {
  color: var(--color-gold) !important;
  background-color: var(--color-surface-2) !important;
}

/* ==========================================================================
   7. FOOTER (Override Astra)
   ========================================================================== */

.site-footer,
.ast-footer,
footer.site-footer {
  background-color: #050505 !important;
  border-top: 2px solid var(--color-gold) !important;
  color: var(--color-text) !important;
}

.footer-main {
  padding: 80px 0 40px;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Footer column 1: Logo + tagline */
.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 16px;
}

.footer-brand .footer-logo .dot {
  color: var(--color-gold);
}

.footer-brand .footer-tagline {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 300px;
}

/* Footer column 2: Navigation */
.footer-nav-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-gold);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.footer-nav ul li a {
  color: var(--color-muted);
  font-size: 0.9rem;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-nav ul li a:hover {
  color: var(--color-gold);
  padding-left: 6px;
}

/* Footer column 3: SEO phrase */
.footer-seo-phrase {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--color-text);
  font-style: italic;
}

.footer-seo-phrase strong {
  color: var(--color-gold);
}

/* Copyright bar */
.footer-copyright {
  border-top: 1px solid var(--color-border);
  padding: 24px 0;
  text-align: center;
  max-width: 1200px;
  margin: 40px auto 0;
}

.footer-copyright p {
  color: var(--color-muted);
  font-size: 0.82rem;
  margin: 0;
}

/* Override Astra footer widgets */
.ast-footer-overlay,
.site-footer .ast-container {
  background-color: transparent !important;
}

.site-footer .widget-title {
  color: var(--color-gold) !important;
  font-family: var(--font-display) !important;
}

.site-footer a {
  color: var(--color-muted) !important;
}

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

/* ==========================================================================
   8. HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--color-bg);
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, transparent 0%, var(--color-bg) 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 24px;
}

.hero .badge-gold {
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 110px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--color-text);
  margin-bottom: 24px;
  letter-spacing: -2px;
}

.hero h1::after {
  display: none;
}

.hero h1 .text-gold {
  color: var(--color-gold);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

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

/* Stats bar */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

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

.hero-stat-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat-label {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ==========================================================================
   9. PILLAR CARDS (3 Pillars)
   ========================================================================== */

.pillar-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pillar-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.pillar-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.pillar-card:hover::before {
  transform: scaleX(1);
}

.pillar-card-icon {
  width: 56px;
  height: 56px;
  background-color: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
  color: var(--color-gold);
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--color-text);
}

.pillar-card p {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.pillar-card-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease;
}

.pillar-card-link:hover {
  gap: 14px;
  color: var(--color-gold-light);
}

.pillar-card-link::after {
  content: '\2192';
  font-size: 1.1rem;
}

/* ==========================================================================
   10. PRODUCT CARDS / CAROUSEL
   ========================================================================== */

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

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

.product-card:hover {
  border-color: rgba(201, 168, 76, 0.4);
  transform: translateY(-4px);
}

.product-card-image {
  width: 100%;
  height: 260px;
  background-color: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.product-card-body {
  padding: 24px;
}

.product-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-text);
  margin-bottom: 8px;
}

.product-card-price {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 12px;
}

.product-card-specs {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* Color swatches */
.color-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
  position: relative;
}

.color-swatch:hover {
  transform: scale(1.15);
}

.color-swatch.active {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-gold);
}

.swatch-anthracite { background-color: #2d2d2d; }
.swatch-gris-perle { background-color: #c0c0c0; }
.swatch-ardoise { background-color: #2d3748; }
.swatch-noir { background-color: #0a0a0a; border: 2px solid var(--color-border); }
.swatch-terracotta { background-color: #c7714a; }
.swatch-vert-mousse { background-color: #4a6741; }
.swatch-bleu-nuit { background-color: #1a365d; }
.swatch-blanc-casse { background-color: #f5f0e8; }

/* Product carousel controls */
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-border);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.carousel-dot.active,
.carousel-dot:hover {
  background-color: var(--color-gold);
  transform: scale(1.2);
}

/* ==========================================================================
   11. BLOG CARDS
   ========================================================================== */

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

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

.blog-card:hover {
  border-color: rgba(201, 168, 76, 0.3);
  transform: translateY(-4px);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  background-color: var(--color-surface-2);
  overflow: hidden;
}

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

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

.blog-card-body {
  padding: 24px;
}

.blog-card-category {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.blog-card-title a {
  color: var(--color-text);
  transition: color 0.3s ease;
}

.blog-card-title a:hover {
  color: var(--color-gold);
}

.blog-card-excerpt {
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-readmore {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s ease;
}

.blog-card-readmore:hover {
  gap: 12px;
}

.blog-card-readmore::after {
  content: '\2192';
}

/* ==========================================================================
   12. COMPARISON TABLE (Durabilite)
   ========================================================================== */

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.comparison-table thead th {
  background-color: var(--color-gold);
  color: #000;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 20px;
  text-align: left;
  white-space: nowrap;
}

.comparison-table thead th:first-child {
  border-radius: 7px 0 0 0;
}

.comparison-table thead th:last-child {
  border-radius: 0 7px 0 0;
}

.comparison-table tbody tr {
  transition: background-color 0.2s ease;
}

.comparison-table tbody tr:nth-child(odd) {
  background-color: var(--color-surface);
}

.comparison-table tbody tr:nth-child(even) {
  background-color: var(--color-surface-2);
}

.comparison-table tbody tr:hover {
  background-color: rgba(201, 168, 76, 0.05);
}

.comparison-table td {
  padding: 14px 20px;
  font-size: 0.92rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--color-text);
}

.comparison-table .highlight-cell {
  color: var(--color-gold);
  font-weight: 700;
}

/* ==========================================================================
   13. COLOR PALETTE GRID (Esthetique)
   ========================================================================== */

.palette-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.palette-swatch {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.palette-swatch:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.palette-swatch-color {
  height: 140px;
  position: relative;
}

.palette-swatch-color::after {
  content: attr(data-color-name);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.palette-swatch:hover .palette-swatch-color::after {
  opacity: 1;
  transform: translateY(0);
}

.palette-swatch-label {
  padding: 14px 16px;
  background-color: var(--color-surface);
}

.palette-swatch-name {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
}

.palette-swatch-hex {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--color-muted);
  text-transform: uppercase;
}

/* ==========================================================================
   14. REALISATIONS GALLERY
   ========================================================================== */

.realisations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.realisation-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 380px;
  cursor: pointer;
}

.realisation-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.realisation-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.realisation-card:hover .realisation-overlay {
  transform: translateY(0);
  opacity: 1;
}

.realisation-overlay h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 10px;
}

.realisation-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.realisation-badge {
  display: inline-block;
  background-color: rgba(201, 168, 76, 0.2);
  color: var(--color-gold);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   15. DEVIS FORM (Quote Request)
   ========================================================================== */

/* Stepper */
.form-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 48px;
  position: relative;
}

.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}

.stepper-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.stepper-step.active .stepper-circle {
  border-color: var(--color-gold);
  color: var(--color-gold);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.15);
}

.stepper-step.completed .stepper-circle {
  border-color: var(--color-gold);
  background-color: var(--color-gold);
  color: #000;
}

.stepper-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stepper-step.active .stepper-label {
  color: var(--color-gold);
}

.stepper-line {
  flex: 1;
  height: 2px;
  background-color: var(--color-border);
  margin: 0 16px;
  margin-bottom: 26px;
  position: relative;
}

.stepper-line.completed {
  background-color: var(--color-gold);
}

/* Form fields */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-muted);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888888' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

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

/* Range slider */
.range-group {
  margin-bottom: 24px;
}

.range-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.range-value {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-gold);
}

.form-range {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--color-border);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-gold);
  cursor: pointer;
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-gold);
  transition: transform 0.2s ease;
}

.form-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.form-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-gold);
  cursor: pointer;
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-gold);
}

/* Form submit */
.form-submit {
  text-align: center;
  margin-top: 40px;
}

.form-submit .btn-gold {
  padding: 18px 56px;
  font-size: 1rem;
}

/* ==========================================================================
   16. FAQ ACCORDION
   ========================================================================== */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  transition: border-color 0.3s ease;
}

.faq-item.active {
  border-bottom-color: var(--color-gold);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  cursor: pointer;
  user-select: none;
}

.faq-question h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-text);
  margin-bottom: 0;
  flex: 1;
  padding-right: 20px;
  transition: color 0.3s ease;
}

.faq-item.active .faq-question h3 {
  color: var(--color-gold);
}

.faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background-color: transparent;
  color: var(--color-muted);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  cursor: pointer;
  line-height: 1;
}

.faq-item.active .faq-toggle {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background-color: rgba(201, 168, 76, 0.1);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 24px;
}

.faq-answer p {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ==========================================================================
   17. BLOG LIST (Actualite Page)
   ========================================================================== */

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
}

.blog-sidebar {
  position: sticky;
  top: 120px;
  align-self: start;
}

.sidebar-widget {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 24px;
}

.sidebar-widget-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-gold);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-pillar-link {
  display: block;
  padding: 10px 0;
  color: var(--color-text);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.sidebar-pillar-link:last-child {
  border-bottom: none;
}

.sidebar-pillar-link:hover {
  color: var(--color-gold);
  padding-left: 8px;
}

/* ==========================================================================
   18. SINGLE ARTICLE
   ========================================================================== */

.article-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 64px;
  max-width: 1100px;
  margin: 0 auto;
}

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

.article-content h1 {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.article-content h1::after {
  display: none;
}

.article-meta {
  display: flex;
  gap: 20px;
  color: var(--color-muted);
  font-size: 0.85rem;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.article-content h2 {
  margin-top: 48px;
  margin-bottom: 20px;
}

.article-content h3 {
  margin-top: 32px;
  margin-bottom: 16px;
}

.article-content p {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 1.4em;
}

.article-content ul,
.article-content ol {
  padding-left: 24px;
  margin-bottom: 1.4em;
}

.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  margin-bottom: 8px;
  line-height: 1.7;
  color: var(--color-text);
}

/* Drop cap */
.article-content > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  float: left;
  line-height: 0.8;
  margin-right: 12px;
  margin-top: 6px;
  color: var(--color-gold);
}

/* Blockquote */
.article-content blockquote {
  border-left: 4px solid var(--color-gold);
  padding: 20px 28px;
  margin: 32px 0;
  background-color: var(--color-surface);
  border-radius: 0 8px 8px 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.7;
}

.article-content blockquote p {
  margin-bottom: 0;
}

/* Table of contents (sticky sidebar) */
.toc-sidebar {
  position: sticky;
  top: 120px;
  align-self: start;
}

.toc-widget {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px;
}

.toc-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-gold);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.toc-list {
  list-style: none;
}

.toc-list li {
  margin-bottom: 8px;
}

.toc-list a {
  font-size: 0.85rem;
  color: var(--color-muted);
  display: block;
  padding: 4px 0;
  border-left: 2px solid transparent;
  padding-left: 12px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.toc-list a:hover,
.toc-list a.active {
  color: var(--color-gold);
  border-left-color: var(--color-gold);
}

.toc-list .toc-h3 {
  padding-left: 24px;
  font-size: 0.8rem;
}

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

.related-articles h2::after {
  margin-left: 0;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

/* ==========================================================================
   19. ANIMATIONS
   ========================================================================== */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 {
  transition-delay: 0.1s;
}

.fade-in-delay-2 {
  transition-delay: 0.2s;
}

.fade-in-delay-3 {
  transition-delay: 0.3s;
}

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

@keyframes goldLineExpand {
  from {
    width: 0;
  }
  to {
    width: 60px;
  }
}

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

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(201, 168, 76, 0);
  }
}

.animate-counter {
  animation: counterUp 0.8s ease forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* ==========================================================================
   20. ASTRA OVERRIDES (General)
   ========================================================================== */

/* Page background */
.ast-separate-container,
.ast-page-builder-template .entry-content > .wp-block-group,
.ast-plain-container {
  background-color: var(--color-bg) !important;
}

.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post {
  background-color: transparent !important;
  padding: 0 !important;
}

.ast-separate-container .entry-content {
  background-color: transparent !important;
}

/* Remove Astra default margins/paddings that conflict */
.entry-content > *:not(.alignwide):not(.alignfull):not(.wp-block-image) {
  max-width: 100%;
}

/* WooCommerce / Astra button overrides */
.ast-button,
.button,
input[type="submit"],
button[type="submit"] {
  background-color: var(--color-gold) !important;
  color: #000 !important;
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  border: 2px solid var(--color-gold) !important;
  border-radius: 4px !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  transition: background-color 0.3s ease !important;
}

.ast-button:hover,
.button:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  background-color: #b8963f !important;
  border-color: #b8963f !important;
}

/* Breadcrumbs */
.ast-breadcrumbs,
.ast-breadcrumbs a {
  color: var(--color-muted) !important;
  font-size: 0.82rem !important;
}

.ast-breadcrumbs a:hover {
  color: var(--color-gold) !important;
}

/* Pagination */
.ast-pagination a,
.page-numbers {
  color: var(--color-text) !important;
  background-color: var(--color-surface) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 4px !important;
  padding: 8px 14px !important;
  transition: all 0.3s ease !important;
}

.ast-pagination a:hover,
.page-numbers:hover,
.page-numbers.current {
  background-color: var(--color-gold) !important;
  color: #000 !important;
  border-color: var(--color-gold) !important;
}

/* ==========================================================================
   21. RESPONSIVE - 1024px
   ========================================================================== */

@media (max-width: 1024px) {
  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  .hero h1 {
    font-size: 76px;
  }

  .hero-stats {
    gap: 40px;
  }

  .hero-stat-number {
    font-size: 2.2rem;
  }

  .section-padding {
    padding: 80px 0;
  }

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

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

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

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

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

  .blog-layout {
    grid-template-columns: 1fr 280px;
    gap: 32px;
  }

  .article-layout {
    grid-template-columns: 1fr 220px;
    gap: 40px;
  }

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

/* ==========================================================================
   22. RESPONSIVE - 768px
   ========================================================================== */

@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .hero h1 {
    font-size: 60px;
    letter-spacing: -1px;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }

  .hero-stat-number {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .section-padding {
    padding: 60px 0;
  }

  .container {
    padding: 0 20px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .pillar-cards {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .realisation-card {
    height: 280px;
  }

  .realisation-overlay {
    opacity: 1;
    transform: translateY(0);
  }

  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
    order: -1;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .toc-sidebar {
    position: static;
    margin-bottom: 32px;
  }

  .article-content h1 {
    font-size: 2rem;
  }

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

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer-brand .footer-tagline {
    max-width: 100%;
  }

  .footer-nav ul li a:hover {
    padding-left: 0;
  }

  /* Stepper responsive */
  .stepper-label {
    display: none;
  }

  .stepper-line {
    margin: 0 8px;
    margin-bottom: 0;
  }

  .stepper-circle {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  /* Mobile nav concept */
  .ast-header-break-point .main-header-menu {
    background-color: var(--color-surface) !important;
    border: 1px solid var(--color-border) !important;
  }

  .ast-header-break-point .main-header-menu a {
    border-bottom: 1px solid var(--color-border) !important;
    padding: 14px 20px !important;
  }
}

/* ==========================================================================
   23. RESPONSIVE - 480px
   ========================================================================== */

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-subtitle {
    font-size: 0.92rem;
  }

  .section-padding {
    padding: 48px 0;
  }

  .container {
    padding: 0 16px;
  }

  .btn-gold,
  .btn-gold-outline {
    padding: 12px 28px;
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
  }

  .pillar-card {
    padding: 28px 20px;
  }

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

  .palette-swatch-color {
    height: 100px;
  }

  .faq-question h3 {
    font-size: 1.05rem;
  }

  .article-content > p:first-of-type::first-letter {
    font-size: 3rem;
  }

  .comparison-table thead th,
  .comparison-table td {
    padding: 10px 14px;
    font-size: 0.82rem;
  }

  .form-stepper {
    margin-bottom: 32px;
  }

  .hero-stats {
    gap: 20px;
  }

  .product-card-image {
    height: 200px;
  }

  .realisation-card {
    height: 220px;
  }

  .footer-seo-phrase {
    font-size: 1.1rem;
  }

  .site-logo-text,
  .mitoslate-logo {
    font-size: 1.4rem;
    letter-spacing: 2px;
  }
}

/* ==========================================================================
   24. PRINT STYLES
   ========================================================================== */

@media print {
  body {
    background-color: #fff;
    color: #000;
  }

  .hero,
  .site-header,
  .site-footer,
  .form-stepper,
  .carousel-controls,
  .toc-sidebar,
  .blog-sidebar {
    display: none;
  }

  .article-content {
    max-width: 100%;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
