/* ==========================================================================
   TROUVER-NOTAIRE.COM - DESIGN SYSTEM & STYLESHEET
   Aesthetics: Modern French Legal Portal (Deep Navy, Gold Accents, Clean White Cards)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

:root {
  --primary: #0F2942;
  --primary-light: #183B5E;
  --primary-dark: #0A1C2E;
  --accent: #C29B38;
  --accent-light: #DFBC63;
  --accent-dark: #9E7C24;
  --accent-subtle: #FDF9EE;
  
  --success: #10B981;
  --warning: #F59E0B;
  --info: #3B82F6;
  
  --bg-main: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-subtle: #F1F5F9;
  
  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-white: #FFFFFF;
  
  --border-light: #E2E8F0;
  --border-focus: #C29B38;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(15, 41, 66, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(15, 41, 66, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 35px -5px rgba(15, 41, 66, 0.16), 0 8px 16px -4px rgba(0, 0, 0, 0.06);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Container - Contained width with generous side padding */
.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

.container-narrow {
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: 2.25rem; letter-spacing: -0.02em; }
h2 { font-size: 1.75rem; letter-spacing: -0.01em; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; }

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

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

/* Top Disclaimer Ribbon */
.top-disclaimer-ribbon {
  background: var(--primary-dark);
  color: #94A3B8;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Disclaimer Banner Box */
.disclaimer-banner {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-left: 4px solid var(--warning);
  color: #92400E;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.disclaimer-banner a {
  color: #B45309;
  font-weight: 700;
  text-decoration: underline;
}

/* Header & Navigation */
.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

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

.brand-logo img {
  height: 48px;
  width: auto;
  display: block;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.brand-name span {
  color: var(--accent);
}

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

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
  background: var(--accent-subtle);
}

.btn-calc-nav {
  background: var(--primary);
  color: #FFF !important;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.btn-calc-nav:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #FFF;
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(194, 155, 56, 0.2);
  border: 1px solid var(--accent);
  color: var(--accent-light);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: 2.75rem;
  color: #FFF;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.hero-title span {
  color: var(--accent-light);
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

.hero-desc {
  font-size: 1.15rem;
  color: #CBD5E1;
  margin-bottom: 2.25rem;
}

/* Search Box Container */
.search-box-wrapper {
  background: #FFF;
  padding: 8px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.search-input-group {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 0 12px;
}

.search-icon {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-right: 10px;
}

.search-input {
  width: 100%;
  border: none;
  font-size: 1.05rem;
  padding: 0.75rem 0;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
}

.btn-search {
  background: var(--accent);
  color: #FFF;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-search:hover {
  background: var(--accent-dark);
}

/* Autocomplete suggestions dropdown */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #FFF;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  margin-top: 8px;
  max-height: 320px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  border: 1px solid var(--border-light);
  text-align: left;
}

.suggestion-item {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}

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

.suggestion-item:hover {
  background: var(--accent-subtle);
  color: var(--primary);
}

.suggestion-badge {
  font-size: 0.75rem;
  background: var(--bg-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
}

/* Trust Stats Bar */
.trust-bar {
  background: #FFF;
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-item {
  padding: 0.5rem;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Breadcrumbs */
.breadcrumbs {
  background: var(--bg-subtle);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.875rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  gap: 8px;
}

.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
  color: var(--text-light);
}

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

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs .active {
  color: var(--primary);
  font-weight: 600;
}

/* Section Spacing */
.section {
  padding: 3.5rem 0;
}

.section-title-wrap {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.section-tag {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.5rem;
}

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

/* Cities Grid */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.city-card {
  background: #FFF;
  border: 1px solid var(--border-light);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
}

.city-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.city-card-name {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.city-card-count {
  font-size: 0.825rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.city-card-arrow {
  color: var(--accent);
  font-weight: 800;
}

/* Notaires Cards & List */
.notaires-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.notaire-card {
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  transition: var(--transition);
}

.notaire-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.notaire-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.notaire-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.notaire-title {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.notaire-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ECFDF5;
  color: #065F46;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.notaire-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.notaire-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 180px;
}

.btn-phone {
  background: #FFF;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-phone:hover {
  background: var(--bg-subtle);
}

.btn-rdv {
  background: var(--accent);
  color: #FFF !important;
  font-weight: 700;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-rdv:hover {
  background: var(--accent-dark);
}

/* Notaire Profile Details Page */
.profile-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

.profile-card-main {
  background: #FFF;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background: #FFF;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.specialty-item {
  background: var(--bg-subtle);
  padding: 1rem;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent);
}

.specialty-item strong {
  display: block;
  color: var(--primary);
  margin-bottom: 4px;
}

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

/* Calculator Page & Layout */
.container-calculator {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

/* Multi-Act Selector Grid & Buttons */
.act-selector-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 2rem;
}

.act-btn {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 14px 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  outline: none;
  font-family: inherit;
  min-height: 100px;
  user-select: none;
}

.act-btn:hover {
  border-color: var(--accent);
  background: #FAFCFE;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 41, 66, 0.08);
}

.act-btn.active {
  background: linear-gradient(135deg, #0F2942 0%, #1A3E61 100%);
  border-color: #0F2942;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -2px rgba(15, 41, 66, 0.25);
}

.act-btn .act-icon {
  font-size: 1.5rem;
  line-height: 1;
  display: inline-block;
  transition: transform 0.2s ease;
}

.act-btn:hover .act-icon {
  transform: scale(1.1);
}

.act-btn .act-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.act-btn.active .act-name {
  color: #FFFFFF;
}

.act-btn .act-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.act-btn.active .act-sub {
  color: #CBD5E1;
}

/* Calculator Section & Widget */
.calc-box {
  background: #FFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  padding: 2.25rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.calc-form-group {
  margin-bottom: 1.25rem;
}

.calc-form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.calc-input, .calc-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  background: #FFFFFF;
  color: var(--text-main);
  transition: var(--transition);
}

.calc-input:focus, .calc-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194, 155, 56, 0.15);
}

.calc-results-card {
  background: linear-gradient(145deg, #0F2942 0%, #183B5E 100%);
  color: #FFF;
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.calc-total-wrap {
  text-align: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.calc-total-label {
  font-size: 0.82rem;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.calc-total-val {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent-light);
  margin-top: 0.35rem;
  letter-spacing: -0.02em;
}

.calc-breakdown-list {
  list-style: none;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.calc-breakdown-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #E2E8F0;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.calc-breakdown-item:last-child {
  border-bottom: none;
}

.calc-breakdown-item strong {
  color: #FFF;
  font-weight: 700;
}

/* Articles / Guides Grid */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.guide-card {
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.guide-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.guide-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.guide-card-tag {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.guide-card-title {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.guide-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex: 1;
}

.guide-card-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Article Single View */
.article-container {
  max-width: 880px;
  margin: 2rem auto 4rem;
  background: #FFF;
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.article-editorial-header {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.article-badge-icon {
  display: inline-block;
  background: #FFF;
  border: 1px solid var(--border-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.article-lead {
  font-size: 1.2rem !important;
  line-height: 1.75;
  color: var(--primary);
  font-weight: 500;
  background: #FDF9EE;
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 2rem !important;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
}

.article-content h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--accent-subtle);
  padding-bottom: 0.5rem;
}

.article-content h3 {
  font-size: 1.2rem;
  color: var(--primary-light);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content ul {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

/* FAQ Accordion */
.faq-wrap {
  max-width: 840px;
  margin: 0 auto;
}

.faq-item {
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* Modal Popup (Rendez-vous) */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 41, 66, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-content {
  background: #FFF;
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  padding: 2.25rem;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: modalFadeIn 0.3s ease;
}

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

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--primary);
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: #CBD5E1;
  padding: 4rem 0 2rem;
  border-top: 3px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #FFF;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

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

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-light);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #64748B;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .container, .container-narrow, .container-calculator {
    max-width: 100%;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .act-selector-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .notaire-card {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 1.5rem;
  }
  .notaire-avatar {
    margin-bottom: 0.5rem;
  }
  .profile-grid, .calc-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-container {
    padding: 2rem 1.25rem;
    margin: 1.5rem auto 3rem;
  }
}

@media (max-width: 768px) {
  /* Fluid edge-to-edge layout on mobile for clean AdSense integration */
  .container, .container-narrow, .container-calculator {
    padding-left: 12px;
    padding-right: 12px;
  }
  
  .section {
    padding: 1.75rem 0;
  }

  /* Unbox article container on mobile so ads and content span fluidly without nested borders */
  .article-container {
    padding: 1rem 0.25rem;
    border: none;
    box-shadow: none;
    background: transparent;
    margin: 0 auto 2rem;
  }

  /* Unbox cards and boxes on small screens */
  .profile-card-main, .sidebar-card, .calc-box {
    padding: 1.25rem 0.85rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
  }

  .notaire-card {
    padding: 1.25rem 0.85rem;
    gap: 0.85rem;
  }

  .notaire-actions {
    min-width: 100%;
    width: 100%;
  }

  .btn-phone, .btn-rdv {
    width: 100%;
    box-sizing: border-box;
  }

  .act-selector-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .act-btn {
    padding: 8px 6px;
    min-height: 64px;
  }

  .act-btn .act-icon {
    font-size: 1.25rem;
  }

  .act-btn .act-name {
    font-size: 0.8rem;
  }

  .act-btn .act-sub {
    display: none;
  }

  .header-inner {
    height: 70px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #FFF;
    flex-direction: column;
    padding: 1.25rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-light);
  }
  .nav-links.show {
    display: flex;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .search-box-wrapper {
    flex-direction: column;
    padding: 8px;
  }
  .search-input-group {
    width: 100%;
    margin-bottom: 8px;
  }
  .btn-search {
    width: 100%;
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  /* Responsive table with scroll to avoid breaking mobile width */
  .article-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
}

/* Article Featured Image Styling */
.article-featured-image-wrapper {
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--primary);
  border: 1px solid var(--border-light);
}

.article-featured-image-wrapper img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  display: block;
  object-fit: cover;
}

/* AdSense Slot Integration Classes */
.ad-slot-container {
  width: 100%;
  max-width: 100%;
  margin: 1.5rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  clear: both;
}


