/*
Theme Name: Global Diagnostic
Theme URI: https://globaldiagnostic.fr
Author: Global Diagnostic
Author URI: https://globaldiagnostic.fr
Description: Thème sur-mesure pour Global Diagnostic, spécialiste des diagnostics immobiliers à Paris et en Île-de-France.
Version: 1.0.0
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: globaldiagnostic-fr
*/

:root {
  --gd-primary: #2e5f92;
  --gd-primary-dark: #1e4267;
  --gd-primary-light: #3f79b7;
  --gd-secondary: #0e95db;
  --gd-secondary-dark: #0a79b3;
  --gd-accent: #fbd022;
  --gd-accent-hover: #f59e0b;
  --gd-dark: #1e293b;
  --gd-text: #334155;
  --gd-text-light: #64748b;
  --gd-bg-light: #f8fafc;
  --gd-bg-white: #ffffff;
  --gd-border: #e2e8f0;
  --gd-border-light: #f1f5f9;
  --gd-radius-sm: 6px;
  --gd-radius-md: 10px;
  --gd-radius-lg: 16px;
  --gd-radius-xl: 24px;
  --gd-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --gd-shadow-md: 0 4px 12px rgba(46,95,146,0.08);
  --gd-shadow-lg: 0 10px 25px rgba(46,95,146,0.12);
  --gd-shadow-hover: 0 14px 30px rgba(14,149,219,0.18);
  --gd-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --gd-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: var(--gd-font-sans);
  color: var(--gd-text);
  background-color: var(--gd-bg-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--gd-secondary);
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* TOPBAR */
.gd-topbar {
  background: linear-gradient(90deg, var(--gd-primary-dark) 0%, var(--gd-primary) 100%);
  color: #ffffff;
  font-size: 0.85rem;
  padding: 8px 0;
}

.gd-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.gd-topbar-badges {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
}

.gd-topbar-badges li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gd-badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--gd-accent);
  border-radius: 50%;
  display: inline-block;
}

/* HEADER */
.gd-header {
  background: #ffffff;
  border-bottom: 1px solid var(--gd-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--gd-shadow-sm);
  transition: var(--gd-transition);
}

.gd-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.gd-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gd-logo-img {
  height: 52px;
  width: auto;
}

.gd-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.gd-menu > li {
  position: relative;
}

.gd-menu > li > a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gd-dark);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.gd-menu > li > a:hover,
.gd-menu > li.current-menu-item > a {
  color: var(--gd-secondary);
}

/* Dropdown */
.gd-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #ffffff;
  border: 1px solid var(--gd-border);
  border-radius: var(--gd-radius-md);
  box-shadow: var(--gd-shadow-lg);
  padding: 10px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--gd-transition);
  z-index: 100;
}

.gd-menu > li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gd-menu .sub-menu li a {
  padding: 9px 18px;
  display: block;
  font-size: 0.9rem;
  color: var(--gd-text);
  font-weight: 500;
}

.gd-menu .sub-menu li a:hover {
  background-color: var(--gd-bg-light);
  color: var(--gd-primary);
  padding-left: 22px;
}

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

.gd-btn-primary {
  background: var(--gd-primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(46,95,146,0.25);
}

.gd-btn-primary:hover {
  background: var(--gd-primary-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(46,95,146,0.35);
}

.gd-btn-accent {
  background: var(--gd-accent);
  color: var(--gd-dark);
  box-shadow: 0 4px 10px rgba(251,208,34,0.3);
}

.gd-btn-accent:hover {
  background: var(--gd-accent-hover);
  color: var(--gd-dark);
  transform: translateY(-2px);
}

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

.gd-btn-outline:hover {
  background: var(--gd-primary);
  color: #ffffff;
}

/* Mobile Toggle */
.gd-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.gd-mobile-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--gd-primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--gd-transition);
}

/* HERO SECTION */
.gd-hero {
  position: relative;
  background: linear-gradient(135deg, #0f2744 0%, var(--gd-primary) 60%, var(--gd-secondary) 100%);
  color: #ffffff;
  padding: 80px 0 90px;
  overflow: hidden;
}

.gd-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 85% 20%, rgba(251, 208, 34, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 15% 80%, rgba(14, 149, 219, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

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

.gd-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gd-accent);
  margin-bottom: 20px;
}

.gd-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

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

.gd-hero-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  opacity: 0.92;
  margin-bottom: 34px;
  max-width: 720px;
}

.gd-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* TRUST BAR */
.gd-trust-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--gd-border);
  padding: 30px 0;
  box-shadow: var(--gd-shadow-sm);
}

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

.gd-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gd-trust-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--gd-radius-md);
  background: rgba(14, 149, 219, 0.1);
  color: var(--gd-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
}

.gd-trust-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gd-dark);
  margin-bottom: 2px;
}

.gd-trust-text p {
  font-size: 0.82rem;
  color: var(--gd-text-light);
  line-height: 1.3;
}

/* SECTIONS COMMON */
.gd-section {
  padding: 70px 0;
}

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

.gd-section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 50px;
}

.gd-section-badge {
  display: inline-block;
  color: var(--gd-primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.gd-section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gd-dark);
  margin-bottom: 14px;
  line-height: 1.25;
}

.gd-section-header p {
  font-size: 1.05rem;
  color: var(--gd-text-light);
}

/* CARDS GRID */
.gd-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.gd-card {
  background: #ffffff;
  border: 1px solid var(--gd-border);
  border-radius: var(--gd-radius-lg);
  padding: 28px;
  transition: var(--gd-transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.gd-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gd-primary), var(--gd-secondary));
  opacity: 0;
  transition: var(--gd-transition);
}

.gd-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--gd-shadow-hover);
  border-color: rgba(14, 149, 219, 0.3);
}

.gd-card:hover::after {
  opacity: 1;
}

.gd-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--gd-radius-md);
  background: rgba(46, 95, 146, 0.08);
  color: var(--gd-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.gd-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gd-secondary);
  margin-bottom: 6px;
}

.gd-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gd-dark);
  margin-bottom: 12px;
  line-height: 1.35;
}

.gd-card p {
  font-size: 0.92rem;
  color: var(--gd-text-light);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.gd-card-link svg {
  transition: transform 0.2s ease;
}

.gd-card-link:hover svg {
  transform: translateX(4px);
}

/* OBLIGATIONS SECTION */
.gd-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.gd-split-card {
  background: #ffffff;
  border: 1px solid var(--gd-border);
  border-radius: var(--gd-radius-lg);
  padding: 36px;
  box-shadow: var(--gd-shadow-md);
}

.gd-split-card.gd-accent-border {
  border-top: 5px solid var(--gd-accent);
}

.gd-split-card.gd-blue-border {
  border-top: 5px solid var(--gd-secondary);
}

.gd-split-card h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--gd-dark);
  margin-bottom: 16px;
}

.gd-checklist {
  list-style: none;
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gd-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--gd-text);
}

.gd-check-icon {
  width: 20px;
  height: 20px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  margin-top: 2px;
}

/* ZONES SECTION */
.gd-zones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.gd-zone-chip {
  background: #ffffff;
  border: 1px solid var(--gd-border);
  border-radius: var(--gd-radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gd-dark);
  transition: var(--gd-transition);
}

.gd-zone-chip:hover {
  background: var(--gd-primary);
  border-color: var(--gd-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--gd-shadow-sm);
}

.gd-zone-chip span {
  font-size: 0.75rem;
  background: rgba(46, 95, 146, 0.08);
  color: var(--gd-primary);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.gd-zone-chip:hover span {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* SEO CONTENT BOX */
.gd-seo-box {
  background: #ffffff;
  border-radius: var(--gd-radius-lg);
  border: 1px solid var(--gd-border);
  padding: 40px;
  box-shadow: var(--gd-shadow-sm);
  margin-top: 40px;
}

.gd-seo-box h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gd-dark);
  margin-bottom: 18px;
}

.gd-seo-box p {
  margin-bottom: 16px;
  font-size: 0.98rem;
  color: var(--gd-text);
  line-height: 1.7;
}

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

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

.gd-breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gd-text-light);
}

.gd-breadcrumbs li a {
  color: var(--gd-text-light);
}

.gd-breadcrumbs li a:hover {
  color: var(--gd-primary);
}

.gd-breadcrumbs li.current {
  color: var(--gd-dark);
  font-weight: 600;
}

/* SINGLE ARTICLE */
.gd-single-header {
  background: linear-gradient(135deg, #0f2744 0%, var(--gd-primary) 100%);
  color: #ffffff;
  padding: 50px 0 60px;
}

.gd-single-header .gd-category-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  color: var(--gd-accent);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.gd-single-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.gd-single-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.88rem;
  opacity: 0.85;
}

.gd-single-content {
  padding: 60px 0 80px;
}

.gd-single-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.gd-article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #273746;
}

.gd-article-body p {
  margin-bottom: 22px;
}

.gd-article-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gd-dark);
  margin: 40px 0 16px;
  line-height: 1.3;
}

.gd-article-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gd-primary);
  margin: 30px 0 14px;
}

.gd-article-body ul, 
.gd-article-body ol {
  margin: 20px 0 24px 28px;
}

.gd-article-body li {
  margin-bottom: 8px;
}

.gd-article-body strong {
  color: var(--gd-dark);
}

.gd-article-body blockquote {
  border-left: 4px solid var(--gd-secondary);
  padding: 16px 24px;
  background: var(--gd-bg-light);
  border-radius: 0 var(--gd-radius-md) var(--gd-radius-md) 0;
  margin: 30px 0;
  font-style: italic;
  color: var(--gd-dark);
}

/* SIDEBAR WIDGETS */
.gd-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 104px;
}

.gd-widget {
  background: #ffffff;
  border: 1px solid var(--gd-border);
  border-radius: var(--gd-radius-lg);
  padding: 28px;
  box-shadow: var(--gd-shadow-sm);
}

.gd-widget h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gd-dark);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gd-border);
  position: relative;
}

.gd-widget h4::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--gd-secondary);
}

.gd-widget-cta {
  background: linear-gradient(135deg, var(--gd-primary-dark) 0%, var(--gd-primary) 100%);
  color: #ffffff;
  border: none;
}

.gd-widget-cta h4 {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.gd-widget-cta h4::after {
  background: var(--gd-accent);
}

.gd-widget-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.gd-widget-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gd-widget-links li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--gd-bg-light);
  border-radius: var(--gd-radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gd-text);
}

.gd-widget-links li a:hover {
  background: var(--gd-secondary);
  color: #ffffff;
  padding-left: 16px;
}

/* FOOTER */
.gd-footer {
  background: #0f1d2e;
  color: #94a3b8;
  padding: 70px 0 0;
  font-size: 0.92rem;
}

.gd-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gd-footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.gd-footer-col p {
  line-height: 1.6;
  margin-bottom: 16px;
}

.gd-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gd-footer-links li a {
  color: #94a3b8;
  transition: var(--gd-transition);
}

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

.gd-footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

.gd-footer-bottom a {
  color: #cbd5e1;
}

.gd-footer-bottom a:hover {
  color: var(--gd-accent);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .gd-trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gd-split-grid {
    grid-template-columns: 1fr;
  }
  .gd-single-grid {
    grid-template-columns: 1fr;
  }
  .gd-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .gd-hero h1 {
    font-size: 2.1rem;
  }
  .gd-mobile-toggle {
    display: block;
  }
  .gd-nav {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--gd-transition);
  }
  .gd-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .gd-menu {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 16px;
  }
  .gd-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    background: transparent;
  }
  .gd-trust-grid {
    grid-template-columns: 1fr;
  }
  .gd-footer-grid {
    grid-template-columns: 1fr;
  }
  .gd-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
