/* =============================================
   TUNISIE DENTISTE - DESIGN SYSTEM
   ============================================= */

:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --primary-light: #e8f0fe;
    --primary-lighter: #f0f6ff;
    --secondary: #34a853;
    --secondary-dark: #2d9249;
    --secondary-light: #e6f4ea;
    --accent: #ea4335;
    --accent-light: #fce8e6;
    --warning: #fbbc04;
    --warning-light: #fef7e0;
    --info: #4285f4;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-dark: #202124;
    --bg-darker: #171717;
    --text-dark: #202124;
    --text-gray: #5f6368;
    --text-light: #80868b;
    --border: #e0e0e0;
    --border-light: #f0f0f0;
    --shadow: 0 1px 6px rgba(32,33,36,.28);
    --shadow-md: 0 4px 15px rgba(32,33,36,.25);
    --shadow-lg: 0 8px 30px rgba(32,33,36,.12);
    --shadow-hover: 0 6px 20px rgba(32,33,36,.25);
    --shadow-card: 0 2px 8px rgba(32,33,36,.08);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', 'Inter', sans-serif;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* =============================================
   CONTAINER
   ============================================= */
.td-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   HERO SECTION
   ============================================= */
.td-hero {
    position: relative;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 50%, #1557b0 100%);
    padding: 100px 0 80px;
    text-align: center;
    overflow: hidden;
}

.td-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="80" r="1.5" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 100px 100px;
}

.td-hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    position: relative;
}
.td-hero-title span {
    color: #8ab4f8;
}

.td-hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 40px;
    position: relative;
}

/* Hero Search Bar */
.td-hero-search {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.td-hero-search-fields {
    display: flex;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    padding: 8px;
    gap: 4px;
}

.td-search-field {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: var(--radius);
    background: var(--bg-light);
}

.td-search-field i {
    color: var(--text-light);
    margin-right: 10px;
    font-size: 1rem;
}

.td-search-field select,
.td-search-field input {
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    width: 100%;
    outline: none;
    cursor: pointer;
}

.td-btn-hero {
    flex-shrink: 0;
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: var(--radius);
}

/* =============================================
   BUTTONS
   ============================================= */
.td-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}
.td-btn:hover { transform: translateY(-1px); }

.td-btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.td-btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    box-shadow: 0 4px 12px rgba(26,115,232,0.4);
}

.td-btn-success {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
}
.td-btn-success:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: #fff;
    box-shadow: 0 4px 12px rgba(52,168,83,0.4);
}

.td-btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.td-btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.td-btn-white {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}
.td-btn-white:hover {
    background: rgba(255,255,255,0.9);
    color: var(--primary-dark);
}

.td-btn-sm { padding: 7px 14px; font-size: 0.82rem; }
.td-btn-lg { padding: 14px 28px; font-size: 1rem; }
.td-btn-block { width: 100%; }
.td-mt-10 { margin-top: 10px; }
.td-mt-40 { margin-top: 40px; }

/* =============================================
   STATS SECTION
   ============================================= */
.td-stats {
    background: var(--bg-white);
    padding: 50px 0;
    border-bottom: 1px solid var(--border-light);
}

.td-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.td-stat-item {
    padding: 20px;
}

.td-stat-icon {
    width: 60px; height: 60px;
    margin: 0 auto 16px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.td-stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.td-stat-label {
    display: block;
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-top: 4px;
}

/* =============================================
   SECTIONS
   ============================================= */
.td-section {
    padding: 60px 0;
}

.td-bg-light {
    background: var(--bg-light);
}

.td-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.td-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.td-section-title span {
    color: var(--primary);
}

.td-section-subtitle {
    color: var(--text-gray);
    font-size: 1.05rem;
}

.td-section-cta {
    text-align: center;
    margin-top: 40px;
}

/* =============================================
   GRIDS
   ============================================= */
.td-grid {
    display: grid;
    gap: 20px;
}

.td-grid-gouvernorats {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.td-grid-villes {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.td-grid-specialites {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.td-grid-blog {
    grid-template-columns: repeat(3, 1fr);
}

.td-dentistes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* =============================================
   CARDS - BASE
   ============================================= */
.td-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    overflow: hidden;
}
.td-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: var(--border);
}

/* Fade-in animation */
.td-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.td-fade-in.td-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   CARD DENTISTE
   ============================================= */
.td-card-dentiste {
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.td-card-premium {
    border-color: var(--warning);
    box-shadow: 0 0 0 1px var(--warning);
}

.td-badge-premium {
    position: absolute;
    top: 12px; right: 12px;
    background: linear-gradient(135deg, #fbbc04, #f9a825);
    color: #fff;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.td-card-header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.td-card-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.td-card-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.td-avatar-placeholder {
    width: 60px; height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.4rem;
}
.td-avatar-lg {
    width: 120px; height: 120px;
    font-size: 2.5rem;
}

.td-card-name {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.3;
}
.td-card-name a {
    color: var(--text-dark);
}
.td-card-name a:hover {
    color: var(--primary);
}

.td-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 500;
}
.td-badge-specialite {
    background: var(--primary-light);
    color: var(--primary);
}
.td-badge-lg {
    padding: 6px 16px;
    font-size: 0.9rem;
}

.td-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.td-card-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-gray);
}
.td-card-info i {
    color: var(--primary);
    width: 16px;
    text-align: center;
    margin-top: 3px;
    flex-shrink: 0;
}

.td-phone-link {
    color: var(--secondary);
    font-weight: 500;
}
.td-phone-link:hover {
    color: var(--secondary-dark);
}

/* Séparateur entre numéros multiples */
.td-phone-sep {
    color: var(--text-light);
    margin: 0 4px;
    font-size: 0.85em;
}

/* Badge "+1 n°" dans les cards */
.td-phone-more {
    display: inline-block;
    background: var(--secondary-light);
    color: var(--secondary);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: var(--radius-full);
    margin-left: 6px;
    vertical-align: middle;
}

.td-card-footer {
    display: flex;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}
.td-card-footer .td-btn {
    flex: 1;
}

/* =============================================
   CARD GOUVERNORAT
   ============================================= */
.td-card-gouvernorat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
}
.td-card-gouvernorat:hover {
    color: var(--primary);
}
.td-card-gouvernorat:hover .td-card-gouv-icon {
    background: var(--primary);
    color: #fff;
}

.td-card-gouv-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 12px;
    transition: var(--transition);
}

.td-card-gouv-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px;
}

.td-card-gouv-count {
    font-size: 0.82rem;
    color: var(--text-light);
}

/* =============================================
   CARD VILLE
   ============================================= */
.td-card-ville {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
}
.td-card-ville:hover { color: var(--primary); }
.td-card-ville:hover .td-card-ville-icon {
    background: var(--secondary);
    color: #fff;
}

.td-card-ville-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: #e6f4ea;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 10px;
    transition: var(--transition);
}

.td-card-ville h3 {
    font-size: 0.95rem;
    margin: 0 0 4px;
}

.td-card-ville-count {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* =============================================
   CARD SPÉCIALITÉ
   ============================================= */
.td-card-specialite {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
}
.td-card-specialite:hover { color: var(--primary); }
.td-card-specialite:hover .td-card-spec-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.td-card-spec-icon {
    width: 64px; height: 64px;
    border-radius: var(--radius);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 14px;
    transition: var(--transition);
}

.td-card-specialite h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 4px;
}

.td-card-spec-count {
    font-size: 0.82rem;
    color: var(--text-light);
}

/* =============================================
   CARD BLOG
   ============================================= */
.td-card-blog {
    overflow: hidden;
}

.td-card-blog-img {
    height: 200px;
    overflow: hidden;
}
.td-card-blog-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.td-card-blog:hover .td-card-blog-img img {
    transform: scale(1.05);
}

.td-card-blog-content {
    padding: 20px;
}

.td-card-blog-date {
    font-size: 0.82rem;
    color: var(--text-light);
}

.td-card-blog-content h3 {
    font-size: 1.05rem;
    margin: 10px 0;
}
.td-card-blog-content h3 a {
    color: var(--text-dark);
}
.td-card-blog-content h3 a:hover {
    color: var(--primary);
}

.td-card-blog-content p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.td-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
}
.td-link:hover {
    color: var(--primary-dark);
}

/* =============================================
   PAGE HEADERS
   ============================================= */
.td-page-header {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    padding: 40px 0 30px;
    color: #fff;
}

.td-page-title {
    color: #fff;
    font-size: 1.8rem;
    margin: 10px 0;
}
.td-page-title i {
    margin-right: 10px;
    opacity: 0.8;
}

.td-page-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    margin: 0;
}

.td-page-desc {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    margin-top: 8px;
}

/* =============================================
   BREADCRUMBS
   ============================================= */
.td-breadcrumbs {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
}
.td-breadcrumbs a {
    color: rgba(255,255,255,0.8);
}
.td-breadcrumbs a:hover {
    color: #fff;
}
.td-breadcrumbs i.fa-chevron-right {
    font-size: 0.65rem;
    margin: 0 8px;
    opacity: 0.6;
}
.td-breadcrumbs .current {
    color: #fff;
    font-weight: 500;
}

/* =============================================
   ARCHIVE LAYOUT (sidebar + content)
   ============================================= */
.td-archive-layout {
    padding: 40px 0;
    background: var(--bg-light);
}

.td-archive-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Sidebar filtres */
.td-archive-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.td-filter-form {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.td-filter-group {
    margin-bottom: 20px;
}
.td-filter-group h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}
.td-filter-group h3 i {
    color: var(--primary);
    margin-right: 6px;
}

.td-filter-select,
.td-filter-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: var(--transition);
    outline: none;
}
.td-filter-select:focus,
.td-filter-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,115,232,0.15);
}

/* =============================================
   SINGLE DENTISTE
   ============================================= */
.td-single-dentiste {
    padding: 40px 0;
    background: var(--bg-light);
}

.td-single-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

.td-dentiste-header {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    position: relative;
}
.td-premium {
    border: 2px solid var(--warning);
}

.td-dentiste-identity {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 20px;
}

.td-dentiste-avatar {
    width: 120px; height: 120px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.td-dentiste-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.td-dentiste-name {
    font-size: 1.6rem;
    margin: 0 0 8px;
    color: var(--text-dark);
}

.td-dentiste-location {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-top: 8px;
}
.td-dentiste-location i {
    color: var(--accent);
    margin-right: 6px;
}

.td-dentiste-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Info cards */
.td-info-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.td-info-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
}
.td-info-title i {
    color: var(--primary);
    margin-right: 8px;
}

.td-info-grid {
    display: grid;
    gap: 16px;
}

.td-info-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.td-info-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.td-info-item strong {
    display: block;
    font-size: 0.82rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 2px;
}
.td-info-item p {
    margin: 0;
    font-size: 0.95rem;
}
.td-info-item a {
    color: var(--primary);
}

.td-horaires {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.td-map-container {
    border-radius: var(--radius);
    overflow: hidden;
}

/* Sidebar single */
.td-sidebar-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.td-sidebar-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 16px;
}
.td-sidebar-card h3 i {
    color: var(--primary);
    margin-right: 6px;
}

.td-quick-contact .td-btn {
    margin-bottom: 10px;
}

.td-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.td-tag {
    display: inline-block;
    padding: 5px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 500;
}
.td-tag:hover {
    background: var(--primary);
    color: #fff;
}

.td-sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.td-sidebar-links li {
    margin-bottom: 8px;
}
.td-sidebar-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-gray);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.td-sidebar-links a:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.td-sidebar-links a i {
    color: var(--primary);
}

/* Related dentistes */
.td-related-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

/* =============================================
   FILTER PILLS (taxonomy pages)
   ============================================= */
.td-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.td-pill {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-gray);
    background: var(--bg-white);
    transition: var(--transition);
    text-decoration: none;
}
.td-pill:hover,
.td-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* =============================================
   PAGINATION
   ============================================= */
.td-pagination {
    margin-top: 40px;
    text-align: center;
}

.td-pagination .page-numbers {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.td-pagination .page-numbers li {
    display: inline;
}

.td-pagination .page-numbers a,
.td-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-gray);
    background: var(--bg-white);
    border: 1px solid var(--border);
    transition: var(--transition);
    text-decoration: none;
}

.td-pagination .page-numbers a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.td-pagination .page-numbers .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* =============================================
   NO RESULTS
   ============================================= */
.td-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    grid-column: 1 / -1;
}
.td-no-results i {
    color: var(--border);
    margin-bottom: 20px;
}
.td-no-results h2 {
    color: var(--text-gray);
    margin-bottom: 10px;
}

/* =============================================
   CTA SECTION
   ============================================= */
.td-cta-section {
    background: linear-gradient(135deg, var(--secondary) 0%, #1b8a3a 100%);
    padding: 60px 0;
    text-align: center;
}

.td-cta-content h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 12px;
}

.td-cta-content p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin-bottom: 28px;
}

/* =============================================
   SEARCH FORM (advanced)
   ============================================= */
.td-search-advanced {
    margin-bottom: 30px;
}

.td-search-form-grid {
    display: flex;
    gap: 10px;
    background: var(--bg-white);
    padding: 12px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.td-search-field-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.td-search-field-group label {
    color: var(--text-light);
}

.td-search-input,
.td-search-select {
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-dark);
    width: 100%;
    outline: none;
}

/* =============================================
   WIDGET SEARCH
   ============================================= */
.td-search-widget-form .td-sw-field {
    margin-bottom: 14px;
}

.td-search-widget-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-gray);
    margin-bottom: 6px;
}

.td-sw-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    background: var(--bg-white);
    outline: none;
}

/* =============================================
   WIDGET GENERIC
   ============================================= */
.td-widget {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.td-widget-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

/* =============================================
   GENERATEPRESS OVERRIDES - CRITICAL LAYOUT
   ============================================= */

/* ---- FULL WIDTH POUR NOS PAGES ---- */
.td-custom-page .site-content .content-area,
.td-custom-page.no-sidebar .site-content .content-area,
body.td-custom-page .content-area {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

/* Forcer le .site à 100% même avec grid-container */
body.td-custom-page .site.grid-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

/* ★ FIX CRITIQUE : GP met display:flex sur .site-content → les sections se mettent en colonnes */
body.td-custom-page .site-content {
    display: block !important;
}

/* Supprimer le content-area wrapper s'il existe */
body.td-custom-page .site-content > .content-area {
    width: 100% !important;
    float: none !important;
}

/* Supprimer les conteneurs séparés GP */
body.td-custom-page.separate-containers .inside-article,
body.td-custom-page.one-container .inside-article,
body.td-custom-page .inside-article {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
}

/* Sections full-width naturellement grâce à display:block sur .site-content */
body.td-custom-page .td-hero,
body.td-custom-page .td-stats,
body.td-custom-page .td-section,
body.td-custom-page .td-cta-section,
body.td-custom-page .td-page-header,
body.td-custom-page .td-archive-layout,
body.td-custom-page .td-single-dentiste {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Overflow-x uniquement sur body (pas sur les parents du header pour garder sticky) */
body.td-custom-page {
    overflow-x: hidden !important;
}

/* Supprimer padding/margin GP */
body.td-custom-page .one-container .site-content,
body.td-custom-page .separate-containers .site-content,
body.td-custom-page .site-content {
    margin: 0 !important;
    padding: 0 !important;
}

body.td-custom-page .paging-navigation,
body.td-custom-page .page-header {
    padding: 0 !important;
    background: transparent !important;
}

.td-custom-page .site {
    max-width: 100% !important;
    padding: 0 !important;
}

.td-custom-page .site-content {
    padding: 0 !important;
    margin: 0 !important;
}

.td-custom-page .inside-article {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

.td-custom-page .entry-content {
    padding: 0 !important;
    margin: 0 !important;
}

.td-custom-page .article-holder {
    padding: 0 !important;
}

/* Supprimer la sidebar sur nos pages */
.td-custom-page .is-right-sidebar,
.td-custom-page .is-left-sidebar,
.td-custom-page #right-sidebar,
.td-custom-page #left-sidebar {
    display: none !important;
}

/* ---- HEADER ---- */
.site-header {
    background: var(--bg-white) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.06) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}

/* Admin bar offset */
.admin-bar .site-header {
    top: 32px !important;
}

.inside-header {
    padding: 8px 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    min-height: 60px;
}

/* Logo / Titre du site */
.site-branding {
    flex-shrink: 0;
    max-width: 220px;
}

.main-title {
    font-family: var(--font-heading) !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

.main-title a {
    color: var(--primary) !important;
    text-decoration: none !important;
}

.site-description {
    display: none !important;
}

.site-logo img {
    max-height: 45px;
    width: auto;
}

/* ---- NAVIGATION ---- */
.main-navigation {
    font-family: var(--font-body) !important;
    flex: 1;
}

.inside-navigation {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (min-width: 769px) { .main-navigation .main-nav > ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
} }

.main-navigation .main-nav ul li a {
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    color: var(--text-dark) !important;
    transition: var(--transition) !important;
    padding: 8px 12px !important;
    white-space: nowrap !important;
    text-decoration: none !important;
}

.main-navigation .main-nav ul li a:hover {
    color: var(--primary) !important;
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a {
    color: var(--primary) !important;
    font-weight: 600 !important;
}

/* Le menu et le header sur la même ligne */
.site-header .inside-header {
    display: flex !important;
    align-items: center !important;
    gap: 20px;
}

#site-navigation {
    flex: 1;
}

/* Cacher le menu mobile toggle sur desktop */
@media (min-width: 769px) {
    #mobile-menu-control-wrapper {
        display: none !important;
    }
    #site-navigation {
        display: block !important;
    }
}

/* Dropdown styling */
.main-navigation ul ul {
    background: var(--bg-white) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: var(--shadow-md) !important;
    padding: 6px 0 !important;
    min-width: 220px !important;
}

.main-navigation ul ul li a {
    font-size: 0.84rem !important;
    padding: 8px 18px !important;
    border-bottom: none !important;
}

.main-navigation ul ul li a:hover {
    background: var(--primary-light) !important;
    color: var(--primary) !important;
}

/* Mega menu pour gouvernorats (afficher en colonnes) */
.main-navigation ul ul ul {
    left: 100% !important;
    top: 0 !important;
}

/* ---- CONTENU GLOBAL ---- */
.td-custom-page .site-main {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

.td-custom-page .one-container .site-main .paging-navigation {
    margin: 0 !important;
}

/* GeneratePress entry wrapper */
.td-custom-page .entry-header {
    display: none !important;
}

/* Supprimer les fonds blancs GP */
.td-custom-page.one-container .inside-article {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Supprimer le back-to-top de GP (on a le nôtre) */
a.generate-back-to-top {
    display: none !important;
}

/* =============================================
   FOOTER SOMBRE
   ============================================= */
.td-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
    font-size: 0.9rem;
}

.td-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.td-footer-col h4 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 20px;
    position: relative;
    padding-bottom: 12px;
}

.td-footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.td-footer-about p {
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 16px;
}

.td-footer-social {
    display: flex;
    gap: 10px;
}

.td-footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.9rem;
}

.td-footer-social a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.td-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.td-footer-links li {
    margin-bottom: 10px;
}

.td-footer-links a {
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.td-footer-links a::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.6rem;
    opacity: 0.4;
    transition: var(--transition);
}

.td-footer-links a:hover {
    color: #fff;
    padding-left: 6px;
}

.td-footer-links a:hover::before {
    opacity: 1;
    color: var(--primary);
}

.td-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    color: rgba(255,255,255,0.6);
}

.td-footer-contact i {
    color: var(--primary);
    margin-top: 3px;
    width: 16px;
    text-align: center;
}

.td-footer-bottom {
    padding: 20px 0;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.82rem;
}

.td-footer-bottom a {
    color: rgba(255,255,255,0.5);
}

.td-footer-bottom a:hover {
    color: var(--primary);
}

/* Override GeneratePress footer */
.site-footer,
.site-info {
    display: none !important;
}

/* =============================================
   PULSE ANIMATION - BOUTON APPELER
   ============================================= */
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(52, 168, 83, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 168, 83, 0); }
}

@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(26, 115, 232, 0); }
    100% { box-shadow: 0 0 0 0 rgba(26, 115, 232, 0); }
}

.td-btn-success.td-btn-lg,
.td-quick-contact .td-btn-success {
    animation: pulse-green 2s infinite;
}

.td-btn-success.td-btn-lg:hover,
.td-quick-contact .td-btn-success:hover {
    animation: none;
}

/* =============================================
   BADGES SPÉCIALITÉ COLORÉS
   ============================================= */
.td-badge-specialite {
    background: var(--primary-light);
    color: var(--primary);
}

/* Couleurs par spécialité basées sur le texte */
.td-badge-specialite[data-spec="orthodontiste"],
.td-card-dentiste:has(.td-badge-specialite:is([class*="ortho"])) .td-badge-specialite {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Via des classes CSS ajoutées par data attribute ou le contenu */
.td-badge-color-green { background: #e8f5e9; color: #2e7d32; }
.td-badge-color-blue { background: #e3f2fd; color: #1565c0; }
.td-badge-color-purple { background: #f3e5f5; color: #7b1fa2; }
.td-badge-color-orange { background: #fff3e0; color: #e65100; }
.td-badge-color-teal { background: #e0f2f1; color: #00695c; }
.td-badge-color-pink { background: #fce4ec; color: #c62828; }
.td-badge-color-indigo { background: #e8eaf6; color: #283593; }

/* =============================================
   CARD DENTISTE - AMÉLIORATIONS
   ============================================= */
.td-card-dentiste {
    box-shadow: var(--shadow-card);
}

.td-card-dentiste:hover {
    box-shadow: var(--shadow-hover);
}

/* Bordure gauche colorée pour premium */
.td-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--warning), #f9a825);
    border-radius: 4px 0 0 4px;
}

/* Avatar avec ring pour premium */
.td-card-premium .td-card-avatar,
.td-card-premium .td-avatar-placeholder {
    box-shadow: 0 0 0 3px var(--warning);
}

/* =============================================
   HERO - PATTERN DENTAIRE
   ============================================= */
.td-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-white);
    clip-path: ellipse(55% 100% at 50% 100%);
}

/* Tooth SVG floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.td-hero-tooth {
    position: absolute;
    opacity: 0.06;
    font-size: 80px;
    color: #fff;
    animation: float 6s ease-in-out infinite;
}

.td-hero-tooth:nth-child(1) { top: 15%; left: 8%; animation-delay: 0s; }
.td-hero-tooth:nth-child(2) { top: 60%; left: 5%; animation-delay: 1.5s; font-size: 50px; }
.td-hero-tooth:nth-child(3) { top: 20%; right: 8%; animation-delay: 3s; font-size: 60px; }
.td-hero-tooth:nth-child(4) { top: 65%; right: 12%; animation-delay: 4.5s; font-size: 40px; }

/* =============================================
   STATS SECTION - AMÉLIORATIONS
   ============================================= */
.td-stat-item {
    position: relative;
}

.td-stat-item::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: var(--border-light);
}

.td-stat-item:last-child::after {
    display: none;
}

.td-stat-icon {
    transition: var(--transition);
}

.td-stat-item:hover .td-stat-icon {
    transform: scale(1.1);
    background: var(--primary);
    color: #fff;
}

/* =============================================
   GOUVERNORAT CARDS - STAGGERED ANIMATION
   ============================================= */
.td-grid-gouvernorats .td-card:nth-child(1) { animation-delay: 0.05s; }
.td-grid-gouvernorats .td-card:nth-child(2) { animation-delay: 0.1s; }
.td-grid-gouvernorats .td-card:nth-child(3) { animation-delay: 0.15s; }
.td-grid-gouvernorats .td-card:nth-child(4) { animation-delay: 0.2s; }
.td-grid-gouvernorats .td-card:nth-child(5) { animation-delay: 0.25s; }
.td-grid-gouvernorats .td-card:nth-child(6) { animation-delay: 0.3s; }

.td-card-gouvernorat:hover {
    border-color: var(--primary);
}

.td-card-gouvernorat:hover .td-card-gouv-count {
    color: var(--primary);
}

/* =============================================
   SPECIALITE CARDS - ALTERNATE ICON COLORS
   ============================================= */
.td-grid-specialites .td-card:nth-child(3n+1) .td-card-spec-icon {
    background: var(--primary-light);
    color: var(--primary);
}

.td-grid-specialites .td-card:nth-child(3n+2) .td-card-spec-icon {
    background: var(--secondary-light);
    color: var(--secondary);
}

.td-grid-specialites .td-card:nth-child(3n+3) .td-card-spec-icon {
    background: var(--accent-light);
    color: var(--accent);
}

.td-grid-specialites .td-card:nth-child(3n+2):hover .td-card-spec-icon {
    background: var(--secondary);
    color: #fff;
}

.td-grid-specialites .td-card:nth-child(3n+3):hover .td-card-spec-icon {
    background: var(--accent);
    color: #fff;
}

/* =============================================
   SCROLL-TO-TOP BUTTON
   ============================================= */
.td-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    border: none;
}

.td-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.td-scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* =============================================
   LOADING SPINNER (AJAX)
   ============================================= */
.td-loading {
    text-align: center;
    padding: 40px;
}

.td-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-light);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =============================================
   TOOLTIP
   ============================================= */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    padding: 6px 12px;
    background: var(--bg-dark);
    color: #fff;
    font-size: 0.78rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    pointer-events: none;
    z-index: 10;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
}

/* =============================================
   SKELETON LOADING
   ============================================= */
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.td-skeleton {
    background: linear-gradient(90deg, var(--bg-light) 25%, #e8e8e8 50%, var(--bg-light) 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

/* =============================================
   CUSTOM SCROLLBAR
   ============================================= */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* =============================================
   AUTOCOMPLETE DROPDOWN
   ============================================= */
.td-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.td-autocomplete-dropdown.active {
    display: block;
}

.td-autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-fast);
}

.td-autocomplete-item:hover,
.td-autocomplete-item.hover {
    background: var(--primary-light);
    color: var(--primary);
}

.td-autocomplete-item i {
    color: var(--primary);
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.td-autocomplete-item div {
    flex: 1;
    min-width: 0;
}

.td-autocomplete-item strong {
    display: block;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.td-autocomplete-item strong mark {
    background: var(--warning-light);
    color: var(--text-dark);
    padding: 0 2px;
    border-radius: 2px;
}

.td-autocomplete-item small {
    display: block;
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 2px;
}

.td-autocomplete-empty {
    padding: 20px 16px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.88rem;
}

.td-autocomplete-empty i {
    margin-right: 8px;
    opacity: 0.5;
}

/* =============================================
   MOBILE FLOATING CALL BUTTON
   ============================================= */
.td-mobile-call-fab {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--secondary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 20px rgba(52, 168, 83, 0.5);
    z-index: 1000;
    animation: pulse-green 2s infinite;
    text-decoration: none;
}

.td-mobile-call-fab:hover {
    background: var(--secondary-dark);
    color: #fff;
    animation: none;
}

/* =============================================
   PHONE REVEALED (Desktop click-to-call)
   ============================================= */
.td-phone-revealed {
    background: #e8f5e9 !important;
    border-color: var(--secondary) !important;
    color: var(--secondary-dark) !important;
    font-size: 0.78rem !important;
}

/* =============================================
   HEADER HIDE/SHOW ON SCROLL
   ============================================= */
.td-header-scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,.1) !important;
}

.td-header-hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease !important;
}

.site-header {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

/* =============================================
   SELECTION STYLE
   ============================================= */
::selection {
    background: var(--primary);
    color: #fff;
}

/* =============================================
   ACCESSIBILITY - FOCUS STYLES
   ============================================= */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* =============================================
   PRINT STYLES
   ============================================= */
@media print {
    .td-hero, .td-cta-section, .td-footer,
    .td-archive-sidebar, .td-single-sidebar,
    .td-dentiste-actions, .td-scroll-top,
    .site-header, .td-breadcrumbs { display: none !important; }
    .td-single-grid { grid-template-columns: 1fr !important; }
    .td-card { box-shadow: none !important; border: 1px solid #ddd !important; break-inside: avoid; }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1200px) {
    .td-single-grid { grid-template-columns: 1fr 280px; }
}

@media (max-width: 992px) {
    .td-hero-title { font-size: 2.2rem; }
    .td-hero-search-fields { flex-wrap: wrap; }
    .td-search-field { flex: 1 1 45%; }
    .td-btn-hero { flex: 1 1 100%; }
    .td-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .td-stat-item::after { display: none; }
    .td-grid-blog { grid-template-columns: repeat(2, 1fr); }
    .td-archive-grid { grid-template-columns: 1fr; }
    .td-archive-sidebar { position: static; }
    .td-single-grid { grid-template-columns: 1fr; }
    .td-single-sidebar { order: -1; }
    .td-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .td-hero-tooth { display: none; }
}

@media (max-width: 768px) {
    .td-hero { padding: 60px 0 50px; }
    .td-hero-title { font-size: 1.8rem; }
    .td-hero-subtitle { font-size: 1rem; }
    .td-hero-search-fields { flex-direction: column; }
    .td-search-field { flex: 1 1 100%; }
    .td-section { padding: 40px 0; }
    .td-section-title { font-size: 1.5rem; }
    .td-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .td-stat-number { font-size: 1.8rem; }
    .td-grid-blog { grid-template-columns: 1fr; }
    .td-dentistes-grid { grid-template-columns: 1fr; }
    .td-dentiste-identity { flex-direction: column; text-align: center; }
    .td-dentiste-actions { justify-content: center; }
    .td-page-title { font-size: 1.4rem; }
    .td-search-form-grid { flex-direction: column; }
    .td-filter-pills { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 10px; }
}

@media (max-width: 576px) {
    .td-hero-title { font-size: 1.5rem; }
    .td-stat-number { font-size: 1.5rem; }
    .td-grid-gouvernorats { grid-template-columns: repeat(2, 1fr); }
    .td-grid-specialites { grid-template-columns: repeat(2, 1fr); }
    .td-card-footer { flex-direction: column; }
    .td-footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .td-footer { padding: 40px 0 0; }
    .td-scroll-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
    .td-cta-content h2 { font-size: 1.5rem; }
    .td-cta-content p { font-size: 0.95rem; }
}

