/*
Theme Name: Astra Child - Utilitaires.com
Theme URI: https://utilitaires.com
Description: Thème enfant Astra optimisé SEO pour le magazine des véhicules utilitaires professionnels
Author: SW Development
Author URI: https://utilitaires.com
Template: astra
Version: 3.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child-utilitaires
*/

/* ==========================================================================
   VARIABLES CSS GLOBALES
   ========================================================================== */
:root {
    --ut-primary: #003d7a;
    --ut-secondary: #ff6b00;
    --ut-dark: #1a1a1a;
    --ut-gray: #666666;
    --ut-light: #f5f5f5;
    --ut-border: #e0e0e0;
    --ut-white: #ffffff;
    --ut-radius: 8px;
    --ut-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --ut-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --ut-transition: all 0.3s ease;
    --ut-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ut-font-title: 'Poppins', sans-serif;
}

/* ==========================================================================
   RESET & BASE - OVERRIDE ASTRA
   ========================================================================== */
.ut-single-wrapper,
.ut-home-wrapper {
    font-family: var(--ut-font) !important;
    line-height: 1.6;
    color: var(--ut-dark);
}

.ut-single-wrapper *,
.ut-home-wrapper * {
    box-sizing: border-box;
}

/* ==========================================================================
   CONTAINER
   ========================================================================== */
.ut-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   SINGLE POST LAYOUT
   ========================================================================== */
.ut-single-wrapper {
    background: var(--ut-white);
    padding-bottom: 60px;
}

/* Breadcrumbs */
.ut-breadcrumbs {
    padding: 15px 0;
    font-size: 14px;
    color: var(--ut-gray);
    border-bottom: 1px solid var(--ut-border);
    margin-bottom: 30px;
}

.ut-breadcrumbs a {
    color: var(--ut-primary);
    text-decoration: none;
}

.ut-breadcrumbs a:hover {
    text-decoration: underline;
}

.ut-breadcrumbs .ut-sep {
    margin: 0 10px;
    color: #ccc;
}

.ut-breadcrumbs .ut-current {
    color: var(--ut-gray);
}

/* Main Layout Grid */
.ut-single-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.ut-single-layout.ut-no-sidebar {
    grid-template-columns: 1fr;
    max-width: 800px;
}

/* Main Content Area */
.ut-single-main {
    min-width: 0;
}

/* ==========================================================================
   ARTICLE STYLES
   ========================================================================== */
.ut-article {
    background: var(--ut-white);
}

/* Article Header */
.ut-article-header {
    margin-bottom: 30px;
}

.ut-article-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.ut-cat-badge {
    display: inline-block;
    background: var(--ut-primary);
    color: var(--ut-white) !important;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    transition: var(--ut-transition);
}

.ut-cat-badge:hover {
    background: var(--ut-secondary);
}

/* Article Title - FIXED SIZE */
.ut-article-title {
    font-family: var(--ut-font-title) !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: var(--ut-dark) !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
}

/* Article Meta */
.ut-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--ut-gray);
    font-size: 14px;
}

.ut-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ut-meta-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Featured Image */
.ut-featured-image {
    margin: 0 0 30px 0;
    border-radius: var(--ut-radius);
    overflow: hidden;
    background: var(--ut-light);
}

.ut-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Body Content */
.ut-article-body {
    font-size: 17px;
    line-height: 1.8;
    color: var(--ut-dark);
}

.ut-article-body p {
    margin-bottom: 20px;
}

.ut-article-body h2 {
    font-family: var(--ut-font-title);
    font-size: 24px;
    font-weight: 600;
    margin: 40px 0 20px;
    color: var(--ut-dark);
}

.ut-article-body h3 {
    font-family: var(--ut-font-title);
    font-size: 20px;
    font-weight: 600;
    margin: 30px 0 15px;
    color: var(--ut-dark);
}

.ut-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--ut-radius);
    margin: 25px 0;
}

.ut-article-body ul,
.ut-article-body ol {
    margin: 20px 0;
    padding-left: 25px;
}

.ut-article-body li {
    margin-bottom: 10px;
}

.ut-article-body blockquote {
    border-left: 4px solid var(--ut-primary);
    padding: 15px 20px;
    margin: 25px 0;
    background: var(--ut-light);
    font-style: italic;
    border-radius: 0 var(--ut-radius) var(--ut-radius) 0;
}

/* ==========================================================================
   SHARE SECTION
   ========================================================================== */
.ut-share-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--ut-border);
}

.ut-share-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--ut-dark);
}

.ut-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ut-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid var(--ut-border);
    border-radius: var(--ut-radius);
    background: var(--ut-white);
    color: var(--ut-dark);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--ut-transition);
}

.ut-share-btn:hover {
    border-color: var(--ut-primary);
    color: var(--ut-primary);
}

.ut-share-fb:hover { border-color: #1877F2; color: #1877F2; }
.ut-share-tw:hover { border-color: #1DA1F2; color: #1DA1F2; }
.ut-share-li:hover { border-color: #0A66C2; color: #0A66C2; }

/* ==========================================================================
   TAGS SECTION
   ========================================================================== */
.ut-tags-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--ut-border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.ut-tags-section strong {
    font-size: 14px;
    color: var(--ut-dark);
}

.ut-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ut-tags-list a {
    display: inline-block;
    padding: 5px 12px;
    background: var(--ut-light);
    border-radius: 20px;
    font-size: 13px;
    color: var(--ut-dark);
    text-decoration: none;
    transition: var(--ut-transition);
}

.ut-tags-list a:hover {
    background: var(--ut-primary);
    color: var(--ut-white);
}

/* ==========================================================================
   RELATED POSTS
   ========================================================================== */
.ut-related-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--ut-border);
}

.ut-related-section h2 {
    font-family: var(--ut-font-title);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--ut-dark);
}

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

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.ut-single-sidebar,
.ut-home-sidebar {
    position: sticky;
    top: 100px;
}

.ut-sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Widget Styles */
.ut-sidebar-inner .widget,
.ut-sidebar-inner .sidebar-widget {
    background: var(--ut-white);
    border: 1px solid var(--ut-border);
    border-radius: var(--ut-radius);
    padding: 20px;
}

.ut-sidebar-inner .widget-title,
.ut-sidebar-inner h3 {
    font-family: var(--ut-font-title);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ut-primary);
    color: var(--ut-dark);
}

.ut-sidebar-inner ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ut-sidebar-inner li {
    padding: 12px 0;
    border-bottom: 1px solid var(--ut-light);
}

.ut-sidebar-inner li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ut-sidebar-inner li a {
    color: var(--ut-dark);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    display: block;
    transition: var(--ut-transition);
}

.ut-sidebar-inner li a:hover {
    color: var(--ut-primary);
}

/* ==========================================================================
   PROGRESS BAR
   ========================================================================== */
.ut-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.ut-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ut-primary), var(--ut-secondary));
    width: 0;
    transition: width 0.1s ease;
}

/* ==========================================================================
   ARTICLE CARDS (for related posts & homepage)
   ========================================================================== */
.article-card {
    background: var(--ut-white);
    border-radius: var(--ut-radius);
    overflow: hidden;
    box-shadow: var(--ut-shadow);
    transition: var(--ut-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--ut-border);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ut-shadow-hover);
}

.article-card-image {
    position: relative;
    padding-bottom: 60%;
    overflow: hidden;
    background: var(--ut-light);
}

.article-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--ut-transition);
}

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

.article-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card .article-category {
    display: inline-block;
    background: var(--ut-primary);
    color: var(--ut-white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
    align-self: flex-start;
}

.article-card .article-title {
    font-family: var(--ut-font-title);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    flex: 1;
}

.article-card .article-title a {
    color: var(--ut-dark);
    text-decoration: none;
}

.article-card .article-title a:hover {
    color: var(--ut-primary);
}

.article-card .article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--ut-light);
    font-size: 13px;
    color: var(--ut-gray);
}

/* ==========================================================================
   HOMEPAGE LAYOUT
   ========================================================================== */
.ut-home-wrapper {
    background: var(--ut-white);
}

/* Hero Section */
.ut-hero {
    background: linear-gradient(135deg, var(--ut-primary) 0%, #002554 100%);
    color: var(--ut-white);
    padding: 60px 0;
    text-align: center;
}

.ut-hero-title {
    font-family: var(--ut-font-title);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--ut-white);
}

.ut-hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Hero Search */
.ut-hero-search {
    max-width: 600px;
    margin: 0 auto;
    background: var(--ut-white);
    padding: 10px;
    border-radius: var(--ut-radius);
    display: flex;
    gap: 10px;
}

.ut-hero-search input {
    flex: 1;
    border: none;
    padding: 15px;
    font-size: 16px;
    border-radius: var(--ut-radius);
}

.ut-hero-search input:focus {
    outline: none;
}

.ut-hero-search button {
    background: var(--ut-secondary);
    color: var(--ut-white);
    border: none;
    padding: 15px 25px;
    border-radius: var(--ut-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--ut-transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ut-hero-search button:hover {
    background: #e55f00;
}

/* Homepage Grid Layout */
.ut-home-layout {
    padding: 50px 0;
}

.ut-home-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.ut-home-grid.ut-no-sidebar {
    grid-template-columns: 1fr;
}

.ut-home-main {
    min-width: 0;
}

/* Homepage Sections */
.ut-section {
    margin-bottom: 50px;
}

.ut-section:last-child {
    margin-bottom: 0;
}

.ut-section-header {
    margin-bottom: 25px;
}

.ut-section-title {
    font-family: var(--ut-font-title);
    font-size: 24px;
    font-weight: 600;
    color: var(--ut-dark);
    margin-bottom: 8px;
}

.ut-section-subtitle {
    color: var(--ut-gray);
    font-size: 15px;
}

.ut-section-footer {
    text-align: center;
    margin-top: 30px;
}

/* Content Grid */
.ut-content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* ==========================================================================
   FULL WIDTH SECTIONS
   ========================================================================== */
.ut-full-section {
    padding: 60px 0;
}

.ut-full-section:nth-child(even) {
    background: var(--ut-light);
}

/* Annuaire Section */
.ut-annuaire-section {
    background: linear-gradient(135deg, var(--ut-light) 0%, #e8e8e8 100%) !important;
}

.ut-annuaire-cta {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.ut-annuaire-search {
    background: var(--ut-white);
    padding: 20px;
    border-radius: var(--ut-radius);
    box-shadow: var(--ut-shadow);
    display: flex;
    gap: 10px;
}

.ut-annuaire-search input {
    flex: 1;
    padding: 15px;
    border: 2px solid var(--ut-light);
    border-radius: var(--ut-radius);
    font-size: 16px;
}

.ut-annuaire-search input:focus {
    border-color: var(--ut-primary);
    outline: none;
}

.ut-category-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 25px;
}

.ut-category-badge {
    display: inline-block;
    padding: 10px 20px;
    background: var(--ut-white);
    color: var(--ut-primary);
    border: 2px solid var(--ut-primary);
    border-radius: var(--ut-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--ut-transition);
}

.ut-category-badge:hover {
    background: var(--ut-primary);
    color: var(--ut-white);
}

/* Magazine Section */
.ut-magazine-section {
    background: linear-gradient(135deg, var(--ut-primary) 0%, #002554 100%) !important;
    color: var(--ut-white);
    text-align: center;
}

.ut-magazine-section .ut-section-title,
.ut-magazine-section .ut-section-subtitle {
    color: var(--ut-white);
}

/* Newsletter Section */
.ut-newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.ut-newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.ut-newsletter-form input {
    flex: 1;
    padding: 15px;
    border: 2px solid var(--ut-border);
    border-radius: var(--ut-radius);
    font-size: 16px;
}

.ut-newsletter-form button {
    background: var(--ut-secondary);
    color: var(--ut-white);
    border: none;
    padding: 15px 25px;
    border-radius: var(--ut-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--ut-transition);
}

.ut-newsletter-form button:hover {
    background: #e55f00;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.ut-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--ut-radius);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--ut-transition);
    border: 2px solid transparent;
}

.ut-btn-primary {
    background: var(--ut-primary);
    color: var(--ut-white) !important;
    border-color: var(--ut-primary);
}

.ut-btn-primary:hover {
    background: var(--ut-secondary);
    border-color: var(--ut-secondary);
}

.ut-btn-secondary {
    background: var(--ut-white);
    color: var(--ut-primary) !important;
    border-color: var(--ut-primary);
}

.ut-btn-secondary:hover {
    background: var(--ut-primary);
    color: var(--ut-white) !important;
}

/* Legacy button classes */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--ut-primary);
    color: var(--ut-white) !important;
    border-radius: var(--ut-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--ut-transition);
    border: 2px solid var(--ut-primary);
}

.btn-primary:hover {
    background: var(--ut-secondary);
    border-color: var(--ut-secondary);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--ut-white);
    color: var(--ut-primary) !important;
    border: 2px solid var(--ut-primary);
    border-radius: var(--ut-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--ut-transition);
}

.btn-secondary:hover {
    background: var(--ut-primary);
    color: var(--ut-white) !important;
}

/* ==========================================================================
   ANNUAIRE PROFILE
   ========================================================================== */
.ut-annuaire-wrapper { padding-bottom: 60px; }

.ut-company-header {
    background: var(--ut-white); border: 1px solid var(--ut-border);
    border-radius: var(--ut-radius); padding: 30px; margin-bottom: 30px;
}
.ut-company-header-top {
    display: flex; gap: 25px; align-items: flex-start; margin-bottom: 25px;
}
.ut-company-logo {
    flex-shrink: 0; width: 120px; height: 120px; border: 1px solid var(--ut-border);
    border-radius: var(--ut-radius); overflow: hidden; display: flex;
    align-items: center; justify-content: center; background: var(--ut-light);
}
.ut-company-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ut-company-info { flex: 1; min-width: 0; }
.ut-company-name {
    font-family: var(--ut-font-title) !important; font-size: 28px !important;
    font-weight: 700 !important; color: var(--ut-dark) !important;
    margin: 0 0 10px 0 !important; line-height: 1.3 !important;
}
.ut-company-sector {
    display: inline-block; background: var(--ut-primary); color: var(--ut-white);
    padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px;
}
.ut-company-address {
    display: flex; align-items: center; gap: 8px;
    color: var(--ut-gray); font-size: 14px; margin-top: 8px;
}
.ut-company-actions {
    display: flex; flex-wrap: wrap; gap: 10px;
    padding-top: 20px; border-top: 1px solid var(--ut-border);
}
.ut-company-description { margin-bottom: 30px; }
.ut-company-description h2,
.ut-company-map h2,
.ut-company-contact h2 {
    font-family: var(--ut-font-title); font-size: 22px; font-weight: 600;
    color: var(--ut-dark); margin-bottom: 20px; padding-bottom: 12px;
    border-bottom: 2px solid var(--ut-primary);
}
.ut-company-map { margin-bottom: 30px; }
.ut-map-container { border-radius: var(--ut-radius); overflow: hidden; }
.ut-map-address {
    display: flex; align-items: center; gap: 6px;
    margin-top: 10px; font-size: 14px; color: var(--ut-gray);
}
.ut-company-contact {
    background: var(--ut-light); padding: 30px;
    border-radius: var(--ut-radius); margin-bottom: 30px;
}
.ut-form-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px;
}
.ut-form-group label {
    display: block; font-size: 14px; font-weight: 600;
    color: var(--ut-dark); margin-bottom: 5px;
}
.ut-form-group input,
.ut-form-group textarea {
    width: 100%; padding: 12px; border: 2px solid var(--ut-border);
    border-radius: var(--ut-radius); font-size: 15px; font-family: var(--ut-font);
    transition: var(--ut-transition);
}
.ut-form-group input:focus,
.ut-form-group textarea:focus { border-color: var(--ut-primary); outline: none; }
.ut-form-full { margin-bottom: 20px; }

.ut-company-card {
    display: flex; gap: 15px; align-items: center; padding: 20px;
    background: var(--ut-white); border: 1px solid var(--ut-border);
    border-radius: var(--ut-radius); text-decoration: none; transition: var(--ut-transition);
}
.ut-company-card:hover { box-shadow: var(--ut-shadow-hover); transform: translateY(-3px); }
.ut-company-card-logo {
    flex-shrink: 0; width: 60px; height: 60px; border-radius: var(--ut-radius);
    overflow: hidden; background: var(--ut-light);
}
.ut-company-card-logo img { width: 100%; height: 100%; object-fit: contain; }
.ut-company-card-info h3 {
    font-family: var(--ut-font-title); font-size: 16px; font-weight: 600;
    color: var(--ut-dark); margin: 0 0 5px 0;
}
.ut-company-card-info .ut-company-sector { font-size: 10px; padding: 2px 8px; margin-bottom: 4px; }
.ut-company-card-info .ut-company-city { display: block; font-size: 13px; color: var(--ut-gray); }

/* Rating Stars */
.ut-rating-stars { display: inline-flex; gap: 2px; font-size: 18px; }
.ut-rating-stars .star.full { color: #f59e0b; }
.ut-rating-stars .star.half { color: #f59e0b; opacity: 0.6; }
.ut-rating-stars .star.empty { color: #d1d5db; }

/* ==========================================================================
   UT AD MANAGER COMPATIBILITY
   Plugin : UT Ad Manager (ut-admanager)
   Le plugin gère #page, .ast-container, .site-header via body.ut-adm-has-adwrap.
   Ici on s'assure que nos wrappers custom ne cassent pas le z-index stacking.
   ========================================================================== */
@media (min-width: 1240px) {
    body.ut-adm-has-adwrap .ut-home-wrapper,
    body.ut-adm-has-adwrap .ut-single-wrapper,
    body.ut-adm-has-adwrap .ut-annuaire-wrapper {
        position: relative;
        z-index: 1;
        background-color: var(--ut-white);
    }
    body.ut-adm-has-adwrap .ut-full-section,
    body.ut-adm-has-adwrap .ut-hero {
        position: relative;
        z-index: 1;
    }
}

/* ==========================================================================
   RESPONSIVE - TABLET (1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    .ut-container {
        padding: 0 20px;
    }
    
    /* Single layout - sidebar below */
    .ut-single-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .ut-single-sidebar {
        position: static;
    }
    
    .ut-sidebar-inner {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Homepage layout */
    .ut-home-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .ut-home-sidebar {
        position: static;
    }
    
    /* Related posts */
    .ut-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Annuaire */
    .ut-company-header-top { flex-direction: column; align-items: center; text-align: center; }
    .ut-company-actions { justify-content: center; }
    .ut-form-grid { grid-template-columns: 1fr; }
    
    /* Article title */
    .ut-article-title {
        font-size: 28px !important;
    }
}

/* ==========================================================================
   RESPONSIVE - MOBILE (768px)
   ========================================================================== */
@media (max-width: 768px) {
    .ut-container {
        padding: 0 15px;
    }
    
    /* Breadcrumbs */
    .ut-breadcrumbs {
        font-size: 13px;
        padding: 12px 0;
    }
    
    .ut-breadcrumbs .ut-current {
        display: none;
    }
    
    /* Article title */
    .ut-article-title {
        font-size: 24px !important;
    }
    
    /* Article meta */
    .ut-article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Article body */
    .ut-article-body {
        font-size: 16px;
    }
    
    .ut-article-body h2 {
        font-size: 20px;
    }
    
    .ut-article-body h3 {
        font-size: 18px;
    }
    
    /* Share buttons */
    .ut-share-buttons {
        flex-direction: column;
    }
    
    .ut-share-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Tags */
    .ut-tags-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* Related posts */
    .ut-related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Sidebar */
    .ut-sidebar-inner {
        grid-template-columns: 1fr;
    }
    
    /* Content grid */
    .ut-content-grid {
        grid-template-columns: 1fr;
    }
    
    /* Hero */
    .ut-hero {
        padding: 40px 0;
    }
    
    .ut-hero-title {
        font-size: 26px;
    }
    
    .ut-hero-subtitle {
        font-size: 16px;
    }
    
    .ut-hero-search {
        flex-direction: column;
    }
    
    .ut-hero-search button {
        width: 100%;
        justify-content: center;
    }
    
    /* Annuaire */
    .ut-annuaire-search {
        flex-direction: column;
    }
    
    .ut-category-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .ut-category-badge {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    /* Newsletter */
    .ut-newsletter-form {
        flex-direction: column;
    }
    
    .ut-newsletter-form button {
        width: 100%;
    }
    
    /* Buttons */
    .ut-btn,
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .ut-section-footer .ut-btn,
    .ut-section-footer .btn-primary,
    .ut-section-footer .btn-secondary,
    .section-footer .btn-primary,
    .section-footer .btn-secondary {
        max-width: 280px;
    }
}

/* ==========================================================================
   RESPONSIVE - SMALL MOBILE (480px)
   ========================================================================== */
@media (max-width: 480px) {
    .ut-container {
        padding: 0 12px;
    }
    
    .ut-article-title {
        font-size: 20px !important;
    }
    
    .ut-article-body {
        font-size: 15px;
    }
    
    .ut-share-btn span {
        display: none;
    }
    
    .ut-share-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .ut-share-btn {
        flex: 1;
        min-width: calc(50% - 5px);
        padding: 12px;
    }
    
    .ut-hero-title {
        font-size: 22px;
    }
    
    .ut-section-title {
        font-size: 20px;
    }
    
    .article-card-content {
        padding: 15px;
    }
    
    .article-card .article-title {
        font-size: 15px;
    }
}

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

*:focus-visible {
    outline: 2px solid var(--ut-primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .ut-single-sidebar,
    .ut-home-sidebar,
    .ut-share-section,
    .ut-related-section,
    .ut-progress-bar {
        display: none !important;
    }
}

/* ==========================================================================
   ASTRA OVERRIDES - FORCE OUR STYLES
   ========================================================================== */
body .ut-single-wrapper .entry-title,
body .ut-single-wrapper h1.entry-title {
    display: none !important;
}

body .ut-single-wrapper .ast-breadcrumbs-wrapper {
    display: none !important;
}

body .ut-single-wrapper .post-navigation {
    display: none !important;
}

body .ast-single-post .ut-article-title {
    font-size: 32px !important;
}

@media (max-width: 768px) {
    body .ast-single-post .ut-article-title {
        font-size: 24px !important;
    }
}

@media (max-width: 480px) {
    body .ast-single-post .ut-article-title {
        font-size: 20px !important;
    }
}
