/*
Theme Name: PRESTIGE_DEV
Theme URI: https://example.com/prestige-dev
Author: Antigravity AI
Author URI: https://example.com
Description: Un thème WordPress premium, moderne et ultra-rapide conçu pour accompagner une agence de location de voiture. Look 2026, optimisé pour le SEO et le GEO.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: prestige-dev
*/

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #ff3366;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --bg-light: #f1f5f9;
    --white: #ffffff;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --surface-glass: rgba(255, 255, 255, 0.8);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hide mobile tab bar by default */
.mobile-tab-bar {
    display: none;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

/* --- Navigation Pro --- */
.site-header {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-link-pro {
    font-weight: 600;
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link-pro:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.btn-client-pro {
    background: var(--primary-gradient);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

a:hover {
    color: var(--secondary-color);
}

/* WordPress Navigation Menu Styles */
.nav-links-primary {
    display: flex;
    list-style: none;
    gap: 15px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.menu-toggle {
    display: none;
    background: rgba(99, 102, 241, 0.1);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: var(--primary-gradient);
    color: white;
}

.nav-links-primary li {
    margin: 0;
    padding: 0;
    position: relative;
}

/* Apply nav-link-pro styles to all menu links */
.nav-links-primary a {
    text-decoration: none;
    font-weight: 600;
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: inline-block;
}

.nav-links-primary a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

/* Special styling for items with btn-client-pro class */
.nav-links-primary .btn-client-pro a,
.nav-links-primary a.btn-client-pro {
    background: var(--primary-gradient);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}

.nav-links-primary .btn-client-pro a:hover,
.nav-links-primary a.btn-client-pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.nav-links-primary .menu-item-btn {
    margin-left: 10px;
}

/* --- Responsive Navigation --- */
@media (max-width: 991px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links-primary {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        border-bottom: 2px solid var(--primary-color);
    }

    .nav-links-primary.active {
        transform: translateY(0);
    }

    .nav-links-primary li {
        width: 100%;
        text-align: center;
    }

    .nav-links-primary a {
        display: block;
        padding: 15px 20px !important;
        border-radius: 0;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-links-primary li:last-child a {
        border-bottom: none;
    }

    .nav-links-primary .menu-item-btn {
        margin-left: 0;
        margin-top: 15px;
        padding: 0 20px;
    }

    .nav-links-primary .btn-client-pro {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    /* Sub-menu on mobile */
    .nav-links-primary .sub-menu {
        position: static;
        box-shadow: none;
        background: #f8fafc;
        border-radius: 0;
        width: 100%;
        display: none;
        padding: 0;
    }

    .nav-links-primary li.toggled-on>.sub-menu {
        display: block;
    }

    .nav-links-primary .menu-item-has-children {
        position: relative;
    }

    .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        top: 2px;
        right: 10px;
        width: 45px;
        height: 45px;
    }

    .dropdown-toggle i {
        transition: transform 0.3s ease;
    }

    .toggled-on>.dropdown-toggle i {
        transform: rotate(180deg);
    }

    .nav-links-primary .sub-menu a {
        padding-left: 40px !important;
        font-size: 0.9rem;
        background: #f8fafc;
        border-bottom: 1px solid #eef2f6;
    }
}

/* Sub-menu support */
.nav-links-primary .sub-menu {
    display: none;
    position: absolute;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 10px 0;
    min-width: 200px;
    top: 100%;
    left: 0;
    z-index: 1000;
    list-style: none;
}

.nav-links-primary li:hover>.sub-menu {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-links-primary .sub-menu li {
    display: block;
    width: 100%;
}

.nav-links-primary .sub-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links-primary .sub-menu a:hover {
    background: rgba(99, 102, 241, 0.05);
    color: var(--primary-color);
}

.dropdown-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    color: var(--text-dark);
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 5px;
    z-index: 10;
}

/* --- Pinterest-style Masonry Layout --- */
.posts-grid {
    column-count: 3;
    column-gap: 24px;
    padding: 40px 0;
}

@media (max-width: 1024px) {
    .posts-grid {
        column-count: 2;
    }
}

@media (max-width: 640px) {
    .posts-grid {
        column-count: 1;
    }
}

.post-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 24px;
    break-inside: avoid;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
}

.post-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-xl);
}

.post-thumbnail {
    height: auto;
    overflow: hidden;
    position: relative;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 16px;
}

.post-category {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.post-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.post-title a {
    color: #111;
}

.post-excerpt {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* --- Hero & Headers --- */
.hero-section,
.single-post-header {
    padding: 160px 0 120px;
    background: #0f172a;
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
}

.hero-section::after,
.single-post-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content-pro {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-title-pro {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.hero-desc-pro {
    font-size: 1.4rem;
    color: #94a3b8;
    margin-bottom: 45px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

/* --- Stats Section --- */
.stats-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.stat-item-pro {
    background: white;
    padding: 40px 20px;
    border-radius: 32px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: 0.4s;
}

.stat-item-pro:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.15);
}

.stat-num {
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 5px;
}

.stat-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.single-post-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin: 40px auto;
}

.single-post-main {
    flex: 1;
    min-width: 0;
    background: white;
    padding: 40px;
    border-radius: 30px;
    box-shadow: var(--shadow-xl);
}

.single-post-sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}

/* --- Car Widget --- */
.car-mini-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    transition: 0.3s;
    text-align: center;
}

.car-mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.car-mini-img-wrap {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.car-mini-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.car-mini-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.car-mini-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.btn-book-mini {
    display: block;
    padding: 10px;
    background: var(--primary-gradient);
    color: white !important;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
}

/* --- Mobile Responsive --- */
@media (max-width: 991px) {
    .single-post-layout {
        flex-direction: column;
    }

    .single-post-sidebar {
        width: 100%;
        position: static;
    }
}

@media (max-width: 640px) {
    .mobile-tab-bar {
        position: fixed;
        bottom: 20px;
        left: 20px;
        right: 20px;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(15px);
        height: 65px;
        border-radius: 20px;
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 2000;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .tab-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #94a3b8;
        font-size: 0.7rem;
        font-weight: 600;
    }

    .tab-item i {
        font-size: 1.25rem;
    }

    .tab-item.active {
        color: #818cf8;
    }
}

/* --- Modern Pagination --- */
.navigation.pagination {
    margin: 60px 0;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.page-numbers {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--text-dark);
    border-radius: 14px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.page-numbers:hover:not(.current) {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-numbers.current {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    border: none;
}

.page-numbers.prev,
.page-numbers.next {
    width: auto;
    padding: 0 22px;
}

.page-numbers i {
    font-size: 0.9rem;
}

/* --- Web Stories Modern Archive --- */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    padding: 20px 0 60px;
}

.story-card {
    position: relative;
    aspect-ratio: 9/16;
    border-radius: 24px;
    overflow: hidden;
    background: #1e293b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.story-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.story-poster {
    width: 100%;
    height: 100%;
}

.story-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.story-card:hover .story-poster img {
    transform: scale(1.1);
}

.story-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.story-title {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.story-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}