/* =============================================
   MAXPATRIE — Design Stitch by Florian
   Palette : Warm Beige / Terracotta / Deep Navy
   Typo  : Playfair Display (headings) + Source Sans 3 (body)
   ============================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

/* =============================================
   CSS VARIABLES — Stitch Palette Exact
   ============================================= */
:root {
  /* === Fond principal — Beige (Stitch exact) === */
  --bg-beige:           #fbfbe2;
  --bg-beige-light:     #fdfded;
  --bg-beige-dark:      #f0f0d0;

  /* === Surfaces === */
  --bg-white:           #ffffff;
  --bg-card:            #ffffff;

  /* === Navy — Accents & headers intérieurs === */
  --navy:               #001626;
  --navy-dark:          #000d14;
  --navy-light:         #002644;

  /* === Terracotta — CTA, liens, accents === */
  --terracotta:         #924b26;
  --terracotta-dark:    #6e381c;
  --terracotta-light:   #f5e1d8;
  --terracotta-ghost:   rgba(146, 75, 38, 0.10);

  /* === Texte - Contraste WCAG AA renforce (>= 4.5:1 sur #fbfbe2) === */
  --text:               #1a1a1a;
  --text-light:         #2d2d2d;
  --text-muted:         #4a4a4a;

  /* === Legacy aliases — pour compatibilité HTML inline styles === */
  --cream:              var(--bg-beige);
  --cream-light:        var(--bg-beige-light);
  --cream-dark:         var(--bg-beige-dark);
  --saffron:            var(--terracotta);
  --saffron-dark:       var(--terracotta-dark);
  --saffron-light:      var(--terracotta-light);
  --saffron-ghost:      var(--terracotta-ghost);
  --spain-red:          var(--terracotta);
  --spain-red-dark:     var(--terracotta-dark);
  --spain-red-ghost:    var(--terracotta-ghost);
  --med-blue:           var(--navy);
  --med-blue-dark:      var(--navy);
  --med-blue-deep:      var(--navy-dark);
  --med-blue-ghost:     rgba(0, 22, 38, 0.07);
  --slate:              var(--navy);
  --slate-deep:         var(--navy-dark);
  --slate-light:        var(--navy-light);
  --slate-surface:      #0a3550;
  --accent:             var(--terracotta);
  --accent-dark:        var(--terracotta-dark);
  --accent-light:       var(--terracotta-ghost);
  --golden:             var(--terracotta);
  --golden-dark:        var(--terracotta-dark);
  --charcoal:           var(--text);
  --charcoal-light:     var(--text-light);
  --red-soft:           var(--terracotta);
  --white:              #ffffff;
  --red:                var(--terracotta);

  /* === Surfaces utilitaires === */
  --bg-main:            var(--bg-beige);
  --surface:            var(--bg-beige-dark);
  --surface-alt:        #f0ede6;
  --sand:               #f0ede6;
  --sand-dark:          #e4dbcf;
  --card-bg:            var(--bg-white);
  --section-alt:        #f0ede6;

  /* === Typographie === */
  --font-heading: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  --font-body:    'Source Sans 3', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'SF Mono', 'Fira Code', 'Cousine', monospace;

  /* === Espacements === */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  2rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --max-width:        1100px;
  --max-width-narrow: 750px;

  /* === Easing === */
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);

  /* === Transitions === */
  --transition-fast: 150ms var(--ease-out);
  --transition-base: 300ms var(--ease-out);
  --transition-slow: 500ms var(--ease-out);
}

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

html {
  scroll-behavior: smooth;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-beige);
  line-height: 1.75;
  overflow-x: hidden;
  position: relative;
}

/* Selection Styling (Stitch Palette - Terracotta + Beige) */
::selection {
  background-color: var(--terracotta);
  color: var(--bg-beige);
}

::-moz-selection {
  background-color: var(--terracotta);
  color: var(--bg-beige);
}

/* Reading Progress Bar (US-04.5 / US-09) */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--terracotta);
  transform-origin: 0% 50%;
  transform: scaleX(0);
  z-index: 10001;
  pointer-events: none;
  transition: transform 0.1s linear;
}

@supports (animation-timeline: scroll()) {
  .reading-progress {
    animation: readingProgressAnim linear both;
    animation-timeline: scroll();
    transition: none;
  }

  @keyframes readingProgressAnim {
    from {
      transform: scaleX(0);
    }
    to {
      transform: scaleX(1);
    }
  }
}

/* Subtitle subtle grain noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* =============================================
   TYPOGRAPHIE
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.5rem);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h4 {
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
}

p {
  margin-bottom: var(--space-md);
  text-wrap: pretty;
}

.content-body p,
.article-body p,
.editorial-intro p {
  max-width: 68ch;
  text-wrap: pretty;
}

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

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

/* Skip link (WCAG AA - US-07) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--navy);
  color: #ffffff !important;
  padding: 0.6rem 1.2rem;
  z-index: 10000;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 6px;
  text-decoration: none;
  transition: top 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}

/* Active page link styling */
.nav-links a[aria-current="page"] {
  color: var(--terracotta) !important;
  font-weight: 700;
}

.nav-links a[aria-current="page"]::after {
  width: 100% !important;
}

/* Accessible focus ring on all interactive elements (WCAG AA) */
:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

/* Micro-interactions: active states */
.btn:active, .filter-btn:active, .budget-subnav-chip:active, button:active {
  transform: scale(0.98);
}

/* Tabular nums for clean numeric alignment (US-08) */
.tabular-nums, .calc-value, .epargne-chiffre, .kpi-card-amount, .quartier-price, .countdown-value, .resto-price-badge, table td {
  font-variant-numeric: tabular-nums;
}

strong {
  color: var(--text);
  font-weight: 600;
}

/* Labels — uppercase, letter-spacing (Stitch spec) */
label, .label, .badge {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =============================================
   LAYOUT
   ============================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: 2.5rem 0;
}

/* Alternance : fond légèrement contrasté */
.section-alt {
  background: var(--section-alt);
  color: var(--text);
}

.section-alt h1,
.section-alt h2,
.section-alt h3,
.section-alt h4 {
  color: var(--text);
}

.section-alt p {
  color: var(--text-light);
}

.section-alt strong {
  color: var(--text);
}

/* =============================================
   MOTIF AZULEJOS TEXTURE — CSS pur
   Fond géométrique répétable style carreaux
   ============================================= */
.azulejos-bg {
  background-color: var(--navy);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 38px,
      rgba(255, 255, 255, 0.06) 38px,
      rgba(255, 255, 255, 0.06) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 38px,
      rgba(255, 255, 255, 0.06) 38px,
      rgba(255, 255, 255, 0.06) 40px
    ),
    repeating-conic-gradient(
      rgba(196, 115, 75, 0.12) 0% 12.5%,
      transparent 12.5% 25%
    ) 10px 10px,
    repeating-conic-gradient(
      rgba(196, 115, 75, 0.12) 0% 12.5%,
      transparent 12.5% 25%
    ) 10px 10px;
  background-size:
    40px 40px,
    40px 40px,
    80px 80px,
    80px 80px;
}

.azulejos-subtle {
  background-color: var(--navy-dark);
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      rgba(255, 255, 255, 0.02) 20px,
      rgba(255, 255, 255, 0.02) 22px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 20px,
      rgba(196, 115, 75, 0.03) 20px,
      rgba(196, 115, 75, 0.03) 22px
    );
}

/* =============================================
   NAVBAR — Default: fond BEIGE, texte foncé (Home)
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  background: var(--bg-beige);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(251, 251, 226, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

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

/* --- Navbar Navy Variant — Pages intérieures (budget, etc.) --- */
.navbar.navbar-navy {
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.navbar.navbar-navy.scrolled {
  background: rgba(0, 22, 38, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.20);
}

.navbar.navbar-navy .nav-logo {
  color: #ffffff;
}

.navbar.navbar-navy .nav-links a {
  color: rgba(255, 255, 255, 0.75);
}

.navbar.navbar-navy .nav-links a:hover {
  color: #ffffff;
}

.navbar.navbar-navy .nav-links a::after {
  background: var(--terracotta);
}

.navbar.navbar-navy .nav-cta {
  background: var(--terracotta);
  color: #ffffff !important;
}

.navbar.navbar-navy .nav-toggle span {
  background: #ffffff;
}

.navbar.navbar-navy .nav-search input {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.20);
  color: #ffffff;
}

.navbar.navbar-navy .nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.navbar.navbar-navy .nav-search input:focus {
  border-color: var(--terracotta);
}

/* --- Nav Logo --- */
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-logo .emoji,
.nav-logo .flag {
  font-size: 1.6rem;
}

/* --- Nav Links --- */
.nav-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 400;
  font-family: var(--font-body);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
  border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a:focus::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* --- Nav Search --- */
.nav-search {
  display: flex;
  align-items: center;
  margin-left: var(--space-md);
}

.nav-search input {
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  background: var(--bg-beige-light);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition-fast);
  width: 160px;
}

.nav-search input:focus {
  border-color: var(--terracotta);
}

.nav-search input::placeholder {
  color: var(--text-light);
  opacity: 0.6;
}

/* --- Nav CTA --- */
.nav-cta {
  background: var(--terracotta);
  color: var(--bg-white) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background var(--transition-fast) !important;
}

.nav-cta:hover {
  background: var(--terracotta-dark);
  color: var(--bg-white) !important;
}

.nav-cta::after {
  display: none !important;
}

/* --- Mobile Nav Toggle --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all var(--transition-base);
}

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

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

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

/* =============================================
   HERO — Dégradé rose → jaune/orangé (Stitch)
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  clip-path: inset(0);
  background: linear-gradient(165deg, #e8b4b8 0%, #e8a098 20%, #e09860 42%, #e8a850 60%, #f0c060 78%, #fdf0c8 100%);
}

/* Texture subtile sur le hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 50% at 75% 30%, rgba(255, 255, 255, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 25% 70%, rgba(232, 168, 80, 0.12) 0%, transparent 60%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 30px,
      rgba(255, 255, 255, 0.04) 30px,
      rgba(255, 255, 255, 0.04) 32px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 30px,
      rgba(255, 255, 255, 0.04) 30px,
      rgba(255, 255, 255, 0.04) 32px
    );
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.12) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  color: var(--text);
}

.hero-content h1,
.hero-content p,
.hero-content .hero-subtitle {
  color: var(--text);
}

.hero-content h1 {
  margin-bottom: var(--space-md);
  line-height: 1.05;
  font-size: clamp(2.6rem, 7vw, 5rem);
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.30);
}

.hero h1 .highlight {
  color: var(--terracotta);
}

/* Hero lead */
.hero-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: var(--space-md);
  opacity: 0.85;
  max-width: 560px;
  font-weight: 300;
  color: var(--text);
}

/* Hero context */
.hero-context {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  opacity: 0.75;
  max-width: 540px;
  color: var(--text);
}

/* Hero countdown */
.hero-countdown {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.countdown-label {
  font-size: 0.78rem;
  color: var(--text-light);
  text-transform: none;
  letter-spacing: 0;
}

.countdown-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--terracotta);
  line-height: 1;
  letter-spacing: -0.03em;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: var(--space-lg);
  letter-spacing: 0;
  text-transform: none;
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 520px;
  opacity: 0.82;
  color: var(--text);
}

.hero-stats {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

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

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: var(--space-xs);
  text-transform: none;
  letter-spacing: 0;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* =============================================
   BUTTONS — Terracotta (Stitch)
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.7rem 1.8rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  font-family: var(--font-body);
  border-radius: 8px;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--bg-white);
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  color: var(--bg-white);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid rgba(0, 22, 38, 0.35);
}

.btn-outline:hover {
  background: rgba(0, 22, 38, 0.06);
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.7rem 1.8rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-body);
  transition: all var(--transition-base);
}

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

.section:not(.section-alt) .btn-outline,
body > .section .btn-outline,
section:not(.section-alt) .btn-outline {
  color: var(--navy);
  border-color: var(--navy);
}

.section:not(.section-alt) .btn-outline:hover,
section:not(.section-alt) .btn-outline:hover {
  background: var(--navy);
  color: var(--bg-white);
  border-color: var(--navy);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

/* =============================================
   HERO VALENCIA - Split Éditorial (COR-01)
   ============================================= */
.hero-valencia {
  position: relative;
  background: var(--bg-beige);
  color: var(--text);
  padding: 4.5rem 0 2.5rem;
  overflow: hidden;
}

.hero-split-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  min-height: 580px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  z-index: 2;
}

.hero-valencia .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(146, 75, 38, 0.08);
  border: 1px solid rgba(146, 75, 38, 0.18);
  color: var(--terracotta);
  padding: 0.35rem 1.1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}

.hero-valencia h1 {
  font-size: clamp(2.8rem, 5.2vw, 4.6rem);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.08;
  margin-bottom: 0.6rem;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero-emphasis {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  color: var(--terracotta);
}

.hero-valencia .hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--navy);
  font-weight: 400;
  margin-bottom: 1.1rem;
  font-style: italic;
  line-height: 1.45;
}

.hero-valencia .hero-lead {
  font-size: 1.02rem;
  color: var(--text-light);
  max-width: 580px;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-weight: 400;
}

.hero-valencia .hero-countdown {
  margin-bottom: 1.8rem;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  background: rgba(0, 22, 38, 0.04);
  border: 1px solid rgba(0, 22, 38, 0.08);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.88rem;
}

.hero-valencia .countdown-label {
  color: var(--text-muted);
  font-weight: 500;
}

.hero-valencia .countdown-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--terracotta);
  font-variant-numeric: tabular-nums;
  margin: 0 0.15rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-valencia .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--terracotta);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(146, 75, 38, 0.25);
}

.hero-valencia .btn-primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(146, 75, 38, 0.35);
  color: #ffffff;
}

.hero-link-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.hero-link-secondary::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--terracotta);
  transform: scaleX(0.4);
  transform-origin: left;
  transition: transform 0.25s ease, background-color 0.2s ease;
}

.hero-link-secondary:hover {
  color: var(--terracotta);
}

.hero-link-secondary:hover::after {
  transform: scaleX(1);
}

.hero-media-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
  max-height: 620px;
  border-radius: 16px 0 0 16px;
  overflow: hidden;
  box-shadow: -8px 12px 32px rgba(0, 22, 38, 0.10);
}

.hero-split-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  transform-origin: center center;
  animation: heroPhotoZoom 5s cubic-bezier(0.2, 0.8, 0.25, 1) forwards;
}

@keyframes heroPhotoZoom {
  0% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-split-photo {
    animation: none !important;
    transform: none !important;
  }
}

/* Secondary Editorial Links (COR-03) */
.link-editorial {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--terracotta);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition-fast);
}

.link-editorial::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--terracotta);
  transform: scaleX(1);
  transform-origin: left;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.link-editorial:hover {
  color: var(--terracotta-dark);
}

.link-editorial:hover::after {
  transform: scaleX(1.05);
  background: var(--terracotta-dark);
}

/* Hero Stagger Cascade (US-02.1 - Gated by .js class) */
@keyframes heroCascadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html.js .hero-reveal-1 { animation: heroCascadeIn 0.65s var(--ease-out) 0.05s both; }
html.js .hero-reveal-2 { animation: heroCascadeIn 0.70s var(--ease-out) 0.14s both; }
html.js .hero-reveal-3 { animation: heroCascadeIn 0.70s var(--ease-out) 0.23s both; }
html.js .hero-reveal-4 { animation: heroCascadeIn 0.75s var(--ease-out) 0.32s both; }
html.js .hero-reveal-5 { animation: heroCascadeIn 0.75s var(--ease-out) 0.41s both; }
html.js .hero-reveal-6 { animation: heroCascadeIn 0.80s var(--ease-out) 0.50s both; }

.culture-card-img,
.heritage-card-img,
.tradition-card-img,
.banner-photo img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  display: block;
  transition: transform 0.5s var(--ease-out);
}

.culture-card:hover .culture-card-img,
.culture-card-featured:hover .culture-card-img,
.heritage-card:hover .heritage-card-img,
.heritage-featured-banner:hover .heritage-card-img,
.tradition-card:hover .tradition-card-img,
.tradition-card-hero:hover .tradition-card-img,
.quartier-card:hover .card-img,
.banner-photo:hover img {
  transform: scale(1.04);
}

/* =============================================
   PULL-QUOTES & EDITORIAL BREAKS (US-05)
   ============================================= */
.pull-quote {
  position: relative;
  margin: 3.5rem auto;
  padding: 1.8rem 2.2rem 1.8rem 2.4rem;
  background: rgba(146, 75, 38, 0.04);
  border-left: 3.5px solid var(--terracotta);
  border-radius: 0 10px 10px 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.15rem, 2.3vw, 1.45rem);
  line-height: 1.65;
  color: var(--navy);
  max-width: 780px;
  box-shadow: 0 4px 20px rgba(146, 75, 38, 0.04);
}

.pull-quote p {
  margin: 0;
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--navy);
}

.pull-quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--terracotta);
  margin-top: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-pause-editorial {
  background: var(--navy);
  color: var(--bg-beige);
  padding: 3.5rem 2rem;
  margin: 3.5rem 0;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 22, 38, 0.18);
}

.section-pause-editorial h3 {
  color: var(--bg-beige);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.section-pause-editorial p {
  color: rgba(251, 251, 226, 0.88);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.75;
}

/* =============================================
   BACK TO TOP BUTTON (US-08)
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--bg-beige);
  border: 1.5px solid rgba(146, 75, 38, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 6px 18px rgba(0, 22, 38, 0.22);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: var(--terracotta);
  color: #ffffff;
  border-color: var(--terracotta);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(146, 75, 38, 0.38);
}

.back-to-top:active {
  transform: translateY(-1px) scale(0.96);
}

/* =============================================
   CARDS - Fond blanc, bordure fine, ombre teintée (COR-03)
   ============================================= */
.card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: var(--space-lg);
  transition: transform var(--transition-fast), box-shadow var(--transition-base);
  border: 1px solid rgba(0, 22, 38, 0.06);
  box-shadow: 0 2px 10px rgba(0, 22, 38, 0.04);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(146, 75, 38, 0.10);
}

/* Variation par position dans grid-3 */
.grid-3 > .card:nth-child(3n+1) {
  border-left: none;
}

.grid-3 > .card:nth-child(3n+2) {
  border-radius: 12px;
}

.grid-3 > .card:nth-child(3n) {
  background: var(--bg-beige-dark);
  border-color: transparent;
  box-shadow: none;
}

.grid-3 > .card:nth-child(3n):hover {
  background: var(--surface-alt);
}

/* Cartes dans section-alt */
.section-alt .card {
  background: var(--bg-white);
  border-color: rgba(0, 0, 0, 0.06);
  color: var(--text);
}

.section-alt .card:hover {
  background: var(--bg-beige-light);
}

.section-alt .card h3 {
  color: var(--text);
}

.section-alt .card p {
  color: var(--text-light);
}

.section-alt .grid-3 > .card:nth-child(3n) {
  background: var(--bg-beige-dark);
  border-color: transparent;
}

/* Card icon */
.card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  line-height: 1;
  width: auto;
  height: auto;
  border-radius: 0;
  display: block;
  background: none !important;
}

.card-icon.terracotta,
.card-icon.blue,
.card-icon.golden,
.card-icon.olive {
  background: none;
}

.card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
}

.card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* =============================================
   GRIDS — 2/3/4 colonnes responsives
   ============================================= */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--space-lg);
}

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header {
  text-align: left;
  margin-bottom: var(--space-xl);
}

.section-header .badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--terracotta);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: none;
  padding: 0;
  border-radius: 0;
}

.section-alt .section-header .badge {
  color: var(--terracotta);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  color: var(--text-light);
  max-width: 560px;
  margin: 0;
}

.section-alt .section-header p {
  color: var(--text-light);
}

.badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: none;
  padding: 0;
  border-radius: 0;
  margin-bottom: var(--space-sm);
}

/* =============================================
   TIMELINE
   ============================================= */
.timeline {
  position: relative;
  padding: var(--space-xl) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(3, 43, 68, 0.20);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-xl);
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-content {
  width: 45%;
  padding: var(--space-lg);
  background: var(--bg-white);
  border-radius: 8px;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.timeline-content h3 {
  color: var(--text);
}

.timeline-content p {
  color: var(--text-light);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 2rem;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: var(--terracotta);
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(196, 115, 75, 0.20);
}

.timeline-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

/* =============================================
   BUDGET CALCULATOR
   ============================================= */
.calculator {
  background: var(--bg-white);
  border-radius: 12px;
  padding: var(--space-xl);
  border: 1px solid rgba(0, 22, 38, 0.08);
  box-shadow: 0 2px 12px rgba(0, 22, 38, 0.05);
}

.section-alt .calculator {
  background: var(--bg-white);
  border-color: rgba(0, 22, 38, 0.08);
  color: var(--text);
}

.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.calc-total-row {
  border-bottom: none;
  font-weight: 700;
  font-size: 1.15rem;
  border-top: 2px solid var(--terracotta);
  margin-top: var(--space-sm);
  padding-top: var(--space-md);
}

.section-alt .calc-row {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.section-alt .calc-total-row {
  border-top-color: var(--terracotta);
}

.calc-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.calc-value {
  font-weight: 600;
  color: var(--terracotta);
}

.section-alt .calc-value {
  color: var(--terracotta);
}

.calc-scenario {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.calc-scenario button {
  flex: 1;
  padding: 0.55rem;
  border: 1.5px solid rgba(0, 0, 0, 0.10);
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.82rem;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
}

.section-alt .calc-scenario button {
  border-color: rgba(0, 0, 0, 0.10);
  color: var(--text-light);
}

.calc-scenario button.active {
  border-color: var(--terracotta);
  background: var(--terracotta);
  color: var(--bg-white);
}

.section-alt .calc-scenario button.active {
  border-color: var(--terracotta);
  background: var(--terracotta);
}

/* =============================================
   BUDGET PAGE LAYOUT
   ============================================= */
.budget-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.budget-epargne {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.epargne-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: var(--space-xl);
  border: 1px solid rgba(0, 22, 38, 0.08);
  box-shadow: 0 2px 12px rgba(0, 22, 38, 0.05);
  text-align: center;
}

.epargne-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.epargne-chiffre {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
}

.epargne-detail {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

.budget-note {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 0;
}

.budget-note a {
  color: var(--terracotta);
  font-weight: 600;
}

/* =============================================
   KPI CARDS — Scénarios Budget (Fold)
   ============================================= */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.kpi-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: var(--space-lg);
  border: 1px solid rgba(0, 22, 38, 0.08);
  box-shadow: 0 2px 12px rgba(0, 22, 38, 0.05);
  text-align: center;
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(146, 75, 38, 0.12);
  background: var(--bg-beige-light);
}

.kpi-card.featured {
  border: 2px solid var(--terracotta);
  box-shadow: 0 4px 20px rgba(146, 75, 38, 0.14);
}

.kpi-card-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  margin-bottom: var(--space-sm);
  background: var(--terracotta-ghost);
  color: var(--terracotta);
}

.kpi-card.featured .kpi-card-badge {
  background: var(--terracotta);
  color: var(--bg-white);
}

.kpi-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-xs);
}

.kpi-card-amount {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--terracotta);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.kpi-card-period {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

.kpi-card-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.55;
  margin-bottom: 0;
}

/* =============================================
   CONTENT PHOTOS & FIGURES
   ============================================= */
.content-photo {
  margin: var(--space-xl) 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 22, 38, 0.06);
  background: var(--bg-beige-dark);
  border: 1px solid rgba(0, 22, 38, 0.06);
}

.content-photo img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  background-color: var(--bg-beige-dark);
  transition: transform 500ms var(--ease-out);
}

.content-photo:hover img {
  transform: scale(1.015);
}

.content-photo figcaption {
  padding: 0.75rem 1.2rem;
  font-size: 0.82rem;
  color: var(--text-light);
  background: var(--bg-white);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* =============================================
   QUARTIER CARDS
   ============================================= */
.quartier-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: var(--space-lg);
  border: 1px solid rgba(0, 22, 38, 0.08);
  box-shadow: 0 2px 12px rgba(0, 22, 38, 0.05);
  transition: transform var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base), border-color var(--transition-base);
}

.quartier-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(146, 75, 38, 0.12);
  background: var(--bg-beige-light);
}

.quartier-card.featured {
  border: 2px solid var(--terracotta);
  background: #fdfdf5;
  box-shadow: 0 4px 20px rgba(146, 75, 38, 0.14);
  position: relative;
}

.section-alt .quartier-card {
  background: var(--bg-white);
  border-color: rgba(0, 22, 38, 0.08);
  color: var(--text);
  box-shadow: 0 2px 12px rgba(0, 22, 38, 0.05);
}

.section-alt .quartier-card:hover {
  box-shadow: 0 8px 24px rgba(146, 75, 38, 0.12);
  background: var(--bg-beige-light);
}

.section-alt .quartier-card.featured {
  border: 2px solid var(--terracotta);
  background: #fdfdf5;
  box-shadow: 0 4px 20px rgba(146, 75, 38, 0.14);
}

.quartier-card h3 {
  margin-bottom: var(--space-xs);
  font-family: var(--font-heading);
  color: var(--navy);
}

.section-alt .quartier-card h3 {
  color: var(--navy);
}

.quartier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xs);
}

.quartier-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--terracotta);
  background: var(--terracotta-ghost);
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid rgba(146, 75, 38, 0.20);
}

.section-alt .quartier-badge {
  color: var(--terracotta);
  background: var(--terracotta-ghost);
}

.quartier-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-light);
  margin-bottom: var(--space-md);
}

.section-alt .quartier-desc {
  color: var(--text-light);
}

.quartier-filter {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.quartier-filter button {
  padding: 0.5rem 1.2rem;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  background: var(--bg-white);
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
  color: var(--text-light);
}

.quartier-filter button:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  background: var(--bg-beige-light);
}

.section-alt .quartier-filter button {
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--text-light);
}

.quartier-filter button.active {
  border-color: var(--terracotta);
  background: var(--terracotta) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(146, 75, 38, 0.25);
}

.filter-btn {
  padding: 0.55rem 1.3rem;
  border: 1.5px solid rgba(0, 22, 38, 0.15);
  background: var(--bg-white);
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  font-family: var(--font-body);
  color: var(--text-light);
  transition: all 0.25s var(--ease-out);
}

.filter-btn:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  background: var(--bg-beige-light);
}

.filter-btn.active {
  border-color: var(--terracotta);
  background: var(--terracotta) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(146, 75, 38, 0.25);
}

.quartiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--space-lg);
}

.quartier-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: var(--space-md);
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.section-alt .quartier-price {
  color: var(--terracotta);
}

.quartier-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.meta-tag {
  background: var(--bg-beige-dark);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #2b2b2b;
  text-transform: none;
  letter-spacing: 0;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.section-alt .meta-tag {
  background: var(--bg-beige-dark);
  color: #2b2b2b;
}

.meta-tag.good {
  background: rgba(45, 102, 32, 0.12);
  color: #2d6620;
  border-color: rgba(45, 102, 32, 0.20);
}

.meta-tag.warn {
  background: var(--terracotta-ghost);
  color: var(--terracotta-dark);
  border-color: rgba(146, 75, 38, 0.20);
}

.quartier-score {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.score-item {
  text-align: center;
  flex: 1;
}

.score-value {
  font-weight: 700;
  font-size: 1.05rem;
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.score-value.green {
  color: #2d6620 !important;
}

.score-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.section-alt .score-label {
  color: var(--text-muted);
}

/* =============================================
   BUDGET STICKY SUBNAV (US-01)
   ============================================= */
.budget-subnav {
  position: sticky;
  top: 56px;
  z-index: 950;
  background: rgba(251, 251, 226, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 22, 38, 0.10);
  padding: 0.55rem 0;
  transition: top var(--transition-fast);
}

.budget-subnav .container {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.budget-subnav .container::-webkit-scrollbar {
  display: none;
}

.budget-subnav-track {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  white-space: nowrap;
  scroll-snap-type: x mandatory;
}

.budget-subnav-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--navy);
  background: transparent;
  border: 1px solid rgba(0, 22, 38, 0.25);
  border-radius: 50px;
  text-decoration: none;
  scroll-snap-align: start;
  transition: all var(--transition-fast);
}

.budget-subnav-chip:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  background: var(--bg-beige-light);
}

.budget-subnav-chip.active {
  background: var(--terracotta) !important;
  color: #ffffff !important;
  border-color: var(--terracotta);
  box-shadow: 0 2px 8px rgba(146, 75, 38, 0.25);
}

#loyer, #manger-dehors, #scenarios, #installation, #salaires, #restos {
  scroll-margin-top: 120px;
}

/* =============================================
   ÉCOLES CARDS (US-02)
   ============================================= */
.ecoles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2.5rem;
}

.ecole-card {
  background: var(--bg-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1.4rem 1.3rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out), border-color 250ms var(--ease-out);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ecole-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(146, 75, 38, 0.10);
  border-color: rgba(146, 75, 38, 0.35);
}

.ecole-card-header {
  margin-bottom: 0.6rem;
}

.ecole-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.ecole-card-street {
  font-size: 0.84rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ecole-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.6rem 0 0.85rem;
}

.ecole-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ecole-badge.navy {
  background: rgba(0, 22, 38, 0.08);
  color: var(--navy);
}

.ecole-badge.terracotta {
  background: var(--terracotta-ghost);
  color: var(--terracotta-dark);
}

.ecole-badge.sage {
  background: rgba(45, 102, 32, 0.12);
  color: #2d6620;
}

.ecole-card-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

/* =============================================
   RESTOS SCANNABLE CARDS (US-05)
   ============================================= */
.restos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.25rem;
  margin: 1.8rem 0 2.5rem;
}

.resto-card {
  background: var(--bg-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1.3rem 1.3rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out), border-color 250ms var(--ease-out);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.resto-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(146, 75, 38, 0.09);
  border-color: rgba(146, 75, 38, 0.30);
}

.resto-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.resto-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
}

.resto-price-badge {
  display: inline-flex;
  align-items: center;
  background: var(--terracotta-ghost);
  color: var(--terracotta-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  border: 1px solid rgba(146, 75, 38, 0.20);
}

.resto-card-address {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.resto-card-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 0;
}

/* =============================================
   ÉDITORIAL — Page d'accueil, style magazine
   ============================================= */
.editorial-intro {
  max-width: 700px;
  margin: 0 auto var(--space-xl);
  text-align: center;
}

.editorial-intro h2 {
  margin-bottom: var(--space-md);
}

.editorial-intro p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 0;
}

.editorial-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.editorial-col h3 {
  margin-bottom: var(--space-md);
  color: var(--terracotta);
}

.editorial-col p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-light);
}

.editorial-full-bleed {
  background: var(--bg-beige-dark);
  padding: var(--space-xl) 0;
  border-radius: 8px;
  margin-top: var(--space-lg);
}

.editorial-quote {
  border: none;
  padding: 0;
  margin: 0;
  background: none;
  font-style: italic;
}

.editorial-quote p {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: var(--space-sm);
  font-weight: 400;
}

.editorial-quote-attribution {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* =============================================
   GUIDE CARDS — Page d'accueil section guide
   ============================================= */
.guide-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.guide-row {
  display: grid;
  gap: var(--space-lg);
}

.guide-featured {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.guide-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: var(--space-xl) var(--space-lg);
  border: 1px solid rgba(0, 22, 38, 0.08);
  transition: all var(--transition-base);
  display: block;
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0, 22, 38, 0.04);
}

.guide-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(146, 75, 38, 0.12);
  border-color: var(--terracotta);
  color: var(--text);
}

.guide-card h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.guide-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.guide-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--terracotta);
  transition: color var(--transition-fast);
}

.guide-card:hover .guide-link {
  color: var(--terracotta-dark);
}

/* Guide list */
.guide-list {
  background: var(--bg-white);
  border-radius: 12px;
  border: 1px solid rgba(0, 22, 38, 0.08);
  box-shadow: 0 2px 12px rgba(0, 22, 38, 0.04);
  overflow: hidden;
}

.guide-list-header {
  padding: var(--space-lg) var(--space-lg) var(--space-sm);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.guide-list-header h3 {
  margin-bottom: var(--space-xs);
}

.guide-list-header p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.guide-list-items {
  display: flex;
  flex-direction: column;
}

.guide-list-item {
  display: flex;
  flex-direction: column;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background var(--transition-fast);
  text-decoration: none;
  color: var(--text);
}

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

.guide-list-item:hover {
  background: var(--bg-beige-light);
  color: var(--text);
}

.guide-list-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.guide-list-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* Guide mini grid */
.guide-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--space-lg);
}

.guide-card--mini {
  text-align: center;
  padding: var(--space-lg);
}

.guide-card--mini h3 {
  font-size: 1.1rem;
}

/* =============================================
   SECTION CTA — Final call-to-action
   ============================================= */
.section-cta {
  background: var(--bg-beige-dark);
  color: var(--text);
  text-align: center;
  padding: var(--space-xl) 0;
}

.section-cta h2 {
  color: var(--text);
  margin-bottom: var(--space-md);
}

.cta-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-light);
  max-width: 580px;
  margin: 0 auto var(--space-xl);
}

.section-cta .btn-primary {
  background: var(--terracotta);
  color: var(--bg-white);
}

.section-cta .btn-primary:hover {
  background: var(--terracotta-dark);
}

/* =============================================
   FOOTER — Fond BEIGE (#fbfbe2), texte foncé (Stitch)
   ============================================= */
.footer {
  background-color: var(--bg-beige);
  color: var(--text-light);
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer h4 {
  color: var(--text);
  margin-bottom: var(--space-md);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer a {
  color: var(--text-light);
  font-size: 0.82rem;
  display: inline-block;
  margin-bottom: 0.25rem;
}

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

.footer p {
  color: var(--text-light);
  font-size: 0.82rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-brand p {
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-light);
}

.footer-map-reference {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-map-reference span {
  font-size: 1.5rem;
  display: inline-block;
  margin-right: 0.4rem;
}

/* =============================================
   CONTENT PAGES — Pages intérieures
   ============================================= */
.content-page {
  padding-top: 100px;
}

.content-header {
  background: var(--bg-beige-dark);
  padding: var(--space-xl) 0 var(--space-lg);
  margin-bottom: var(--space-xl);
  color: var(--text);
}

.content-header h1 {
  color: var(--text);
}

.content-header p {
  color: var(--text-light);
}

.content-header .badge {
  color: var(--terracotta);
}

.content-body {
  font-size: 1rem;
  line-height: 1.85;
}

.content-body h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  padding-bottom: 0;
  border-bottom: none;
  color: var(--text);
}

.content-body h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--terracotta);
}

.content-body ul,
.content-body ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.content-body li {
  margin-bottom: var(--space-xs);
}

.content-body blockquote {
  border-left: none;
  border: 1px solid rgba(196, 115, 75, 0.12);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  background: var(--terracotta-ghost);
  border-radius: 12px;
  font-style: italic;
}

.content-body .highlight-box,
.highlight-box {
  background: var(--bg-white);
  border-radius: 12px;
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  border: 1px solid rgba(0, 22, 38, 0.12);
  border-left: 4px solid var(--navy);
  box-shadow: 0 2px 10px rgba(0, 22, 38, 0.04);
  color: var(--text);
}

.highlight-box-alert,
.highlight-box--alert {
  background: #fdf2ed;
  border: 1px solid rgba(146, 75, 38, 0.25);
  border-left: 4px solid var(--terracotta);
  border-radius: 12px;
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  box-shadow: 0 2px 10px rgba(146, 75, 38, 0.05);
  color: var(--text);
}

.highlight-box-advice,
.highlight-box--advice {
  background: #edf3f8;
  border: 1px solid rgba(0, 22, 38, 0.2);
  border-left: 4px solid var(--navy);
  border-radius: 12px;
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  box-shadow: 0 2px 10px rgba(0, 22, 38, 0.05);
  color: var(--text);
}

.highlight-box-info,
.highlight-box--info {
  background: var(--bg-white);
  border: 1px solid rgba(0, 22, 38, 0.1);
  border-left: 4px solid var(--terracotta);
  border-radius: 12px;
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  box-shadow: 0 2px 10px rgba(0, 22, 38, 0.04);
  color: var(--text);
}

.highlight-box-success,
.highlight-box--success {
  background: #edf6ee;
  border: 1px solid rgba(46, 125, 50, 0.2);
  border-left: 4px solid #2e7d32;
  border-radius: 12px;
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  box-shadow: 0 2px 10px rgba(46, 125, 50, 0.05);
  color: var(--text);
}

/* =============================================
   GUIDE BANNER PHOTO & HERO (US-07)
   ============================================= */
.banner-photo,
.guide-hero-banner {
  margin: 0 0 var(--space-xl) 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  background: var(--bg-beige-dark);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.banner-photo img,
.guide-hero-banner img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  background-color: var(--bg-beige-dark);
  transition: transform 500ms var(--ease-out);
}

.banner-photo:hover img,
.guide-hero-banner:hover img {
  transform: scale(1.015);
}

.banner-photo figcaption,
.guide-hero-banner figcaption {
  padding: 0.85rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--bg-white);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* =============================================
   GUIDE TIMELINE & STEPPER (US-01, US-03, US-05)
   ============================================= */
.guide-timeline {
  position: relative;
  margin: var(--space-xl) 0;
  padding-left: 0;
}

.guide-timeline::before {
  content: '';
  position: absolute;
  top: 18px;
  bottom: 25px;
  left: 20px;
  width: 3px;
  background: linear-gradient(to bottom, var(--terracotta), var(--navy));
  border-radius: 2px;
}

.guide-step {
  position: relative;
  padding-left: 58px;
  margin-bottom: var(--space-lg);
}

.guide-step:last-child {
  margin-bottom: 0;
}

.guide-step-number {
  position: absolute;
  left: 3px;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--bg-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(146, 75, 38, 0.3);
  border: 2px solid var(--bg-beige);
  z-index: 2;
}

.guide-step-card {
  background: var(--bg-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.guide-step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  border-color: rgba(146, 75, 38, 0.3);
}

.guide-step-header {
  margin-bottom: 0.75rem;
}

.guide-step-card h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem 0;
  color: var(--navy);
}

.guide-step-card h4 {
  font-size: 1.05rem;
  margin: 0.75rem 0 0.4rem 0;
  color: var(--navy);
}

.guide-step-card p:last-child {
  margin-bottom: 0;
}

.guide-step-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.guide-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--terracotta-ghost);
  color: var(--terracotta);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  border: 1px solid rgba(146, 75, 38, 0.2);
}

.guide-step-badge--navy {
  background: rgba(0, 22, 38, 0.06);
  color: var(--navy);
  border-color: rgba(0, 22, 38, 0.15);
}

.guide-step-badge--success {
  background: rgba(46, 125, 50, 0.1);
  color: #2e7d32;
  border-color: rgba(46, 125, 50, 0.2);
}

/* Stepper vertical (Sante SIP & Scolarite) */
.guide-stepper {
  position: relative;
  margin: var(--space-lg) 0;
  padding-left: 0;
}

.guide-stepper::before {
  content: '';
  position: absolute;
  top: 18px;
  bottom: 25px;
  left: 20px;
  width: 3px;
  background: var(--navy);
  border-radius: 2px;
}

.guide-stepper .guide-step-number {
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(0, 22, 38, 0.25);
}

/* =============================================
   PLAN D'ACTION EMPLOI (US-02)
   ============================================= */
.guide-phases-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: var(--space-xl) 0;
  position: relative;
}

.guide-phase-card {
  background: var(--bg-white);
  border: 1px solid rgba(0, 22, 38, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 10px rgba(0, 22, 38, 0.04);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.guide-phase-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(146, 75, 38, 0.12);
  border-color: var(--terracotta);
}

.guide-phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--terracotta);
  color: var(--bg-white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  align-self: flex-start;
}

.guide-phase-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem 0;
  color: var(--navy);
}

.guide-phase-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 0;
}

/* Job sites grid */
.guide-job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin: var(--space-lg) 0;
}

.guide-job-card {
  background: var(--bg-white);
  border: 1px solid rgba(0, 22, 38, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  box-shadow: 0 2px 8px rgba(0, 22, 38, 0.04);
}

.guide-job-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(146, 75, 38, 0.12);
  border-color: var(--terracotta);
  color: var(--text);
}

.guide-job-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.guide-job-card h3 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--navy);
}

.guide-job-card-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: var(--terracotta-ghost);
  color: var(--terracotta);
}

.guide-job-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.55;
  margin: 0 0 0.5rem 0;
}

.guide-job-card-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--terracotta);
  margin-top: auto;
}

/* =============================================
   SANTE 3 PATHS GRID (US-03)
   ============================================= */
.guide-paths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: var(--space-xl) 0;
}

.guide-path-card {
  background: var(--bg-white);
  border: 1px solid rgba(0, 22, 38, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 22, 38, 0.04);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.guide-path-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(146, 75, 38, 0.12);
}

.guide-path-card.recommended {
  border: 2px solid var(--terracotta);
  background: #fffcf9;
  box-shadow: 0 4px 18px rgba(146, 75, 38, 0.14);
}

.guide-path-badge {
  position: absolute;
  top: -12px;
  right: 16px;
  background: var(--terracotta);
  color: var(--bg-white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(146, 75, 38, 0.3);
}

.guide-path-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem 0;
  color: var(--navy);
}

.guide-path-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

/* =============================================
   RESSOURCES THEMATIC CARD GRID (US-04)
   ============================================= */
.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: var(--space-xl) 0;
}

.guide-resource-card {
  background: var(--bg-white);
  border: 1px solid rgba(0, 22, 38, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 22, 38, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.guide-resource-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(146, 75, 38, 0.12);
  border-color: rgba(146, 75, 38, 0.3);
}

.guide-resource-card h3,
.guide-resource-card h2 {
  font-size: 1.18rem;
  margin: 0 0 0.85rem 0;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.guide-resource-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.guide-resource-card ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.guide-resource-card li {
  font-size: 0.88rem;
  color: var(--text);
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  line-height: 1.5;
}

.guide-resource-card li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.guide-resource-card a {
  color: var(--terracotta);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.guide-resource-card a:hover {
  color: var(--terracotta-dark);
  text-decoration: underline;
}

/* Emergency card */
.guide-emergency-card {
  grid-column: 1 / -1;
  background: var(--navy);
  color: var(--bg-white);
  border: none;
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: 0 4px 20px rgba(0, 22, 38, 0.25);
  margin: var(--space-xl) 0;
}

.guide-emergency-card h2,
.guide-emergency-card h3 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.guide-emergency-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.guide-emergency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.guide-emergency-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.guide-emergency-item strong {
  font-size: 1.2rem;
  color: #ffffff;
  font-family: var(--font-heading);
}

.guide-emergency-item span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

/* =============================================
   CHECKLISTS INTERACTIVES (US-05)
   ============================================= */
.checklist-group {
  background: var(--bg-white);
  border: 1px solid rgba(0, 22, 38, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
  margin: var(--space-lg) 0;
  box-shadow: 0 2px 10px rgba(0, 22, 38, 0.04);
}

.checklist-group h3,
.checklist-group h4 {
  font-size: 1.1rem;
  margin: 0 0 0.85rem 0;
  color: var(--navy);
}

.checklist-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  transition: background 0.15s ease;
  cursor: pointer;
}

.checklist-item:hover {
  background: var(--bg-beige-light);
}

.checklist-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--navy);
  border-radius: 4px;
  background: var(--bg-white);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 3px;
  position: relative;
  transition: all 0.2s ease;
}

.checklist-checkbox:checked {
  background: var(--terracotta);
  border-color: var(--terracotta);
}

.checklist-checkbox:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checklist-checkbox:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}

.checklist-label {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text);
  cursor: pointer;
  flex-grow: 1;
  transition: all 0.2s ease;
}

.checklist-item.checked .checklist-label,
.checklist-checkbox:checked + .checklist-label,
.checklist-checkbox:checked ~ .checklist-label {
  text-decoration: line-through;
  opacity: 0.65;
  color: var(--text-muted);
}

/* Subtle alternating sections (US-06) */
.guide-section-alt,
.section-alt-subtle {
  background-color: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  padding: var(--space-xl) 0;
  margin: var(--space-xl) 0;
  border-radius: 12px;
}


/* =============================================
   ANIMATIONS — ease-out-quart only
   ============================================= */
.js .fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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

/* =============================================
   prefers-reduced-motion
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =============================================
   RESPONSIVE — 992 / 768 / 480
   ============================================= */
@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  }

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

  .timeline::before {
    left: 2rem;
  }

  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: row;
  }

  .timeline-content {
    width: calc(100% - 5rem);
    margin-left: 4rem;
  }

  .timeline-dot {
    left: 2rem;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 5vw, 3rem);
  }

  .editorial-split {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

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

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

  .guide-paths-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  .section {
    padding: 1.5rem 0;
  }

  .section-culture {
    padding: 1.5rem 0;
  }

  .section-heritage {
    padding: 1.5rem 0;
  }

  .section-magazine-break {
    padding: 1.75rem 1.25rem;
  }

  .culture-header {
    margin-bottom: 1.5rem;
  }

  .section-header {
    margin-bottom: 1.5rem;
  }

  .editorial-intro {
    margin-bottom: 1.5rem;
  }

  .content-photo {
    margin: 1.5rem 0;
  }

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

  .content-photo img,
  .banner-photo img,
  .guide-hero-banner img {
    height: 200px;
  }

  .guide-phases-timeline {
    grid-template-columns: 1fr;
  }

  .guide-timeline::before,
  .guide-stepper::before {
    left: 16px;
  }

  .guide-step {
    padding-left: 48px;
  }

  .guide-step-number {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
    left: 0;
  }

  .guide-step-card {
    padding: 1rem 1.15rem;
  }

  .guide-featured,
  .guide-mini-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-md);
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    justify-content: center;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .container-narrow {
    padding: 0 var(--space-md);
  }

  /* Mobile Nav */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    flex-direction: column;
    background: var(--bg-beige);
    padding: 6rem var(--space-lg) var(--space-lg);
    gap: var(--space-md);
    transition: right var(--transition-base);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.10);
    z-index: 999;
  }

  .navbar.navbar-navy .nav-links {
    background: var(--navy);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 998;
  }

  .nav-overlay.open {
    display: block;
  }

  .calc-scenario {
    flex-direction: column;
  }

  .calc-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .editorial-quote p {
    font-size: 1.1rem;
  }

  .hero-countdown {
    gap: 0.25rem;
  }

  .countdown-value {
    font-size: 1.5rem;
  }

  .nav-search {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: auto;
    padding: 120px 0 var(--space-xl);
  }

  .hero-badge {
    font-size: 0.8rem;
  }

  .hero-stats {
    gap: var(--space-md);
  }

  .hero-stat-value {
    font-size: 1.4rem;
  }

  .section-header {
    margin-bottom: 1.5rem;
  }

  .hero-lead {
    font-size: 0.95rem;
  }

  .hero-context {
    font-size: 0.82rem;
  }

  .epargne-chiffre {
    font-size: 2.2rem;
  }

  .guide-card {
    padding: var(--space-lg);
  }

  .editorial-intro h2 {
    font-size: 1.5rem;
  }
}

/* =============================================
   BANDEAU MOMENT MAGAZINE NAVY FULL-BLEED (COR-02)
   ============================================= */
.section-magazine-break {
  background: var(--navy);
  color: var(--bg-beige);
  width: 100%;
  padding: 3.5rem 1.5rem;
  margin: 0;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.magazine-break-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.magazine-break-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--terracotta-light);
  margin-bottom: 1.5rem;
}

.magazine-break-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.45rem, 3.2vw, 2.35rem);
  line-height: 1.45;
  color: var(--bg-beige);
  margin: 0 0 1.5rem 0;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.magazine-break-author {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(251, 251, 226, 0.80);
  letter-spacing: 0.04em;
}

/* =============================================
   HOME LAYOUT VARIATIONS & RHYTHM (US-06 / COR-03)
   ============================================= */
.culture-grid-asym {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.culture-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
  background: var(--bg-white);
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: 0 4px 20px rgba(146, 75, 38, 0.08);
  border: 1px solid rgba(146, 75, 38, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.culture-card-featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(146, 75, 38, 0.14);
}

.culture-card-featured .culture-card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0;
}

.culture-card-featured-body h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 0.8rem;
}

.culture-card-featured-body p {
  font-size: 1rem;
  color: #3d3d3d;
  line-height: 1.7;
}

.heritage-grid-asym {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.heritage-featured-banner {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--stitch-warm-cream);
  border-radius: 12px;
  padding: 1.8rem;
  border: 1px solid rgba(146, 75, 38, 0.18);
  box-shadow: 0 4px 20px rgba(0, 22, 38, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.heritage-featured-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(146, 75, 38, 0.12);
}

.heritage-featured-banner .heritage-card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0;
}

.heritage-featured-body h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 0.8rem;
}

.heritage-featured-body p {
  font-size: 1rem;
  color: #3d3d3d;
  line-height: 1.7;
}

.traditions-featured-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  grid-template-rows: auto auto;
  gap: 1.8rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.tradition-card-hero {
  grid-row: span 2;
  background: #ffffff;
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: 0 4px 20px rgba(146, 75, 38, 0.08);
  border-left: 5px solid var(--terracotta);
  border-top: 1px solid rgba(146, 75, 38, 0.10);
  border-right: 1px solid rgba(146, 75, 38, 0.10);
  border-bottom: 1px solid rgba(146, 75, 38, 0.10);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tradition-card-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(146, 75, 38, 0.14);
}

.tradition-card-hero .tradition-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1.2rem;
}

.tradition-card-hero h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: var(--navy);
  margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
  .culture-card-featured,
  .heritage-featured-banner {
    grid-template-columns: 1fr;
  }
  .culture-grid-asym,
  .heritage-grid-asym {
    grid-template-columns: 1fr;
  }
  .traditions-featured-grid {
    grid-template-columns: 1fr;
  }
  .tradition-card-hero {
    grid-row: auto;
  }
}

/* =============================================
   MOBILE HERO POLISH (COR-01 / US-09)
   ============================================= */
@media (max-width: 991px) {
  .hero-valencia {
    padding: 5rem 0 3rem;
  }
  .hero-split-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: auto;
    padding: 0 1.25rem;
  }
  .hero-media-wrapper {
    order: -1;
    height: 320px;
    min-height: 320px;
    max-height: 320px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 22, 38, 0.08);
  }
  .hero-content {
    align-items: flex-start;
    text-align: left;
  }
  .hero-cta-group {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }
  .hero-valencia .btn-primary {
    width: 100%;
    text-align: center;
  }
  .hero-link-secondary {
    justify-content: center;
    padding: 0.5rem 0;
  }
}

@media (max-width: 768px) {
  .section-magazine-break {
    padding: 1.75rem 1.25rem;
  }
  .magazine-break-quote {
    font-size: clamp(1.25rem, 5vw, 1.65rem);
    line-height: 1.45;
  }
}

@media (max-width: 480px) {
  .hero-valencia {
    padding: 4.5rem 0 2.5rem;
  }

  .hero-media-wrapper {
    height: 240px;
    min-height: 240px;
  }

  .hero-valencia .hero-badge {
    font-size: 0.78rem;
    padding: 0.35rem 0.9rem;
    margin-bottom: 0.8rem;
  }

  .hero-valencia h1 {
    font-size: clamp(2.3rem, 10vw, 3.2rem);
    margin-bottom: 0.4rem;
  }

  .hero-valencia .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
  }

  .hero-valencia .hero-lead {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }

  .hero-valencia .hero-countdown {
    margin-bottom: 1.4rem;
    padding: 0.3rem 0.85rem;
    font-size: 0.82rem;
  }

  .hero-valencia .countdown-label {
    font-size: 0.8rem;
  }

  .hero-valencia .countdown-value {
    font-size: 1.3rem;
  }

  .ecoles-grid,
  .restos-grid,
  .quartiers-grid {
    grid-template-columns: 1fr;
  }

  .banner-photo img,
  .guide-hero-banner img {
    height: 180px;
  }

  .guide-emergency-grid {
    grid-template-columns: 1fr;
  }

  .guide-card-grid {
    grid-template-columns: 1fr;
  }

  .guide-step {
    padding-left: 42px;
  }

  .guide-timeline::before,
  .guide-stepper::before {
    left: 14px;
  }

  .guide-step-number {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .guide-step-badges {
    gap: 0.35rem;
  }

  .guide-step-badge {
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
  }
}

/* =============================================
   ACCESSIBILITY & PREFERS-REDUCED-MOTION (US-08)
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  body::before {
    animation: none !important;
  }
}

/* =============================================
   BLOG & ARTICLES (US-01, US-02) - DESIGN STITCH
   ============================================= */
.blog-header-action {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.rss-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(146, 75, 38, 0.08);
  border: 1px solid rgba(146, 75, 38, 0.22);
  color: var(--terracotta);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.rss-btn:hover {
  background: var(--terracotta);
  color: #ffffff;
  border-color: var(--terracotta);
  transform: translateY(-1px);
}

.rss-btn svg {
  flex-shrink: 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}

.blog-card {
  background: var(--bg-white);
  border-radius: 12px;
  border: 1px solid rgba(0, 22, 38, 0.08);
  box-shadow: 0 4px 20px rgba(0, 22, 38, 0.04);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(146, 75, 38, 0.12);
}

.blog-card-media {
  position: relative;
  overflow: hidden;
  background: var(--bg-beige-dark);
  min-height: 280px;
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms var(--ease-out);
}

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

.blog-card-body {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.blog-card-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.blog-card-readtime {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.blog-card-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.blog-card-excerpt {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.blog-card-action {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--terracotta);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.blog-card-link:hover {
  color: var(--terracotta-dark);
  gap: 0.65rem;
}

.blog-card-author {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Article Detail Page --- */
.article-header {
  margin-bottom: var(--space-xl);
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.article-breadcrumb a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.article-breadcrumb a:hover {
  color: var(--terracotta);
}

.article-breadcrumb-sep {
  color: var(--text-muted);
  opacity: 0.5;
}

.article-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.015em;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(0, 22, 38, 0.08);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-body ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.article-nav-back {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- Responsive Blog & Article --- */
@media (max-width: 860px) {
  .blog-card {
    grid-template-columns: 1fr;
  }
  .blog-card-media {
    min-height: 220px;
    max-height: 260px;
  }
  .blog-card-body {
    padding: 1.5rem;
  }
}

/* =============================================
   ACTUALITÉS & SORTIES (Design Stitch)
   ============================================= */

/* --- Badges Catégories Sorties --- */
.actu-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.3;
}

.actu-badge--nature {
  background: #2d6a4f;
  color: #ffffff;
}

.actu-badge--culture {
  background: var(--navy);
  color: #ffffff;
}

.actu-badge--gastro {
  background: var(--terracotta);
  color: #ffffff;
}

.actu-badge--famille {
  background: #1d4e89;
  color: #ffffff;
}

/* --- Grille Page Actualités --- */
.actu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}

.actu-card {
  background: var(--bg-white);
  border-radius: 12px;
  border: 1px solid rgba(0, 22, 38, 0.08);
  box-shadow: 0 4px 20px rgba(0, 22, 38, 0.04);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.actu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(146, 75, 38, 0.12);
}

.actu-card-media {
  position: relative;
  overflow: hidden;
  background: var(--bg-beige-dark);
  min-height: 280px;
}

.actu-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms var(--ease-out);
}

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

.actu-card-body {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.actu-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.actu-meta-item {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.actu-card-title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.actu-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.actu-card-title a:hover {
  color: var(--terracotta);
}

.actu-card-excerpt {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 1.15rem;
}

/* Mini-ligne infos pratiques sur la card */
.actu-meta-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.55rem 0.85rem;
  background: var(--bg-beige);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(0, 22, 38, 0.06);
}

.actu-meta-info-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.actu-card-action {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.actu-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--terracotta);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.actu-card-link:hover {
  color: var(--terracotta-dark);
  gap: 0.65rem;
}

/* --- Section Teaser Actualités (Page d'accueil) --- */
.actu-teaser-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: var(--space-xl);
  margin-bottom: 2rem;
}

.actu-teaser-card {
  background: var(--bg-white);
  border-radius: 12px;
  border: 1px solid rgba(0, 22, 38, 0.08);
  box-shadow: 0 4px 16px rgba(0, 22, 38, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  text-decoration: none;
  color: var(--text);
}

.actu-teaser-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(146, 75, 38, 0.12);
}

.actu-teaser-media {
  position: relative;
  height: 170px;
  overflow: hidden;
  background: var(--bg-beige-dark);
}

.actu-teaser-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms var(--ease-out);
}

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

.actu-teaser-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.actu-teaser-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.actu-teaser-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 0.75rem;
  transition: color var(--transition-fast);
}

.actu-teaser-card:hover .actu-teaser-title {
  color: var(--terracotta);
}

.actu-teaser-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 22, 38, 0.06);
  margin-top: auto;
  font-weight: 500;
}

/* --- Photos Cards Quartiers (Page d'accueil) --- */
.quartier-card-media {
  margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-lg)) var(--space-md);
  overflow: hidden;
  height: 160px;
  border-radius: 10px 10px 0 0;
  background: var(--bg-beige-dark);
}

.quartier-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms var(--ease-out);
}

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

/* --- Bloc Infos Pratiques (Fiches d'activités) --- */
.info-pratiques {
  background: var(--bg-white);
  border-radius: 12px;
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
  border: 1px solid rgba(0, 22, 38, 0.12);
  border-left: 4px solid var(--terracotta);
  box-shadow: 0 4px 16px rgba(0, 22, 38, 0.04);
}

.info-pratiques-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 0;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-pratiques-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-pratiques-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: baseline;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(0, 22, 38, 0.06);
  font-size: 0.95rem;
  line-height: 1.6;
}

.info-pratiques-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-pratiques-label {
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.info-pratiques-value {
  color: var(--text);
}

.info-pratiques-value a {
  color: var(--terracotta);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.info-pratiques-value a:hover {
  color: var(--terracotta-dark);
}

/* --- Banner Photo & Figcaption Crédit Photo --- */
.banner-photo {
  margin: var(--space-lg) 0 var(--space-xl);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-beige-dark);
  box-shadow: 0 4px 20px rgba(0, 22, 38, 0.08);
}

.banner-photo img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.banner-photo figcaption,
.credit-photo {
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-white);
  border-top: 1px solid rgba(0, 22, 38, 0.06);
  font-style: italic;
}

/* --- Responsive Actualités & Teaser --- */
@media (max-width: 992px) {
  .actu-teaser-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .actu-card {
    grid-template-columns: 1fr;
  }
  .actu-card-media {
    min-height: 220px;
    max-height: 260px;
  }
  .actu-card-body {
    padding: 1.5rem;
  }
}

@media (max-width: 600px) {
  .actu-teaser-grid {
    grid-template-columns: 1fr;
  }
  .info-pratiques-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

