/*
Theme Name: TotalDepannage Theme
Description: Theme custom total-depannage.com - Dark Orange 2026
Version: 1.0
Author: TotalDepannage
*/


:root {
    --primary-gradient: linear-gradient(135deg, #f97316, #ea580c);
    --bg-deep: #0f172a;
    --bg-card: #1e293b;
    --text-pure: #FFFFFF;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --accent: #f97316;
    --accent-hover: #ea6c00;
    --glass-bg: rgba(15, 23, 42, 0.88);
    --glass-border: rgba(255, 255, 255, 0.08);
    --header-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-deep);
    color: var(--text-main);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
img { max-width: 100%; display: block; }

/* --- HEADER --- */
#site-header-wrapper {
    position: sticky;
    top: 16px;
    z-index: 9999;
    padding: 0 20px;
    max-width: 1440px;
    margin: 0 auto;
}

#site-header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 36px;
    box-shadow: var(--header-shadow);
}

.logo {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    display: flex;
    flex-direction: column;
}
.logo span:first-child { color: #FFFFFF; }
.logo span:last-child {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#site-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
}

#site-nav ul li a {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f1f5f9;
    opacity: 0.85;
    position: relative;
    padding-bottom: 4px;
}

#site-nav ul li a:hover { opacity: 1; transform: translateY(-2px); }

#site-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}
#site-nav ul li a:hover::after { width: 100%; }

.cta-button {
    background: var(--primary-gradient);
    color: #FFFFFF !important;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.3);
}
.cta-button:hover { transform: scale(1.04); box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4); }

/* --- MAIN --- */
#main {
    max-width: 1300px;
    margin: 60px auto;
    padding: 0 5%;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.card {
    background: var(--bg-card);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}
.card:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.15);
    transform: translateY(-4px);
}

.card-thumb { display: block; overflow: hidden; aspect-ratio: 16/9; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-thumb img { transform: scale(1.04); }

.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }

.card-cat {
    display: inline-block;
    background: rgba(249, 115, 22, 0.12);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
    border: 1px solid rgba(249, 115, 22, 0.25);
}

.card-title {
    font-family: 'Syne', sans-serif;
    color: var(--text-pure);
    margin-bottom: 12px;
    font-size: 1.2rem;
    line-height: 1.35;
}
.card-title a { color: inherit; }
.card-title a:hover { color: var(--accent); }

.card-excerpt { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; flex: 1; }

.card-meta {
    margin-top: 18px;
    font-size: 0.78rem;
    color: var(--text-muted);
    padding-top: 14px;
    border-top: 1px solid var(--glass-border);
}

/* --- PAGINATION --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}
.pagination a, .pagination span {
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-weight: 600;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
}

/* --- SINGLE --- */
.single-wrap { max-width: 860px; margin: 0 auto 80px; padding: 0 5%; }
.single-thumb { width: 100%; height: auto; border-radius: 20px; margin-bottom: 36px; }
.single-cat { margin-bottom: 18px; display: inline-block; }
.single-title {
    font-family: 'Syne', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--text-pure);
}
.single-meta {
    color: var(--text-muted);
    margin-bottom: 36px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 18px;
    font-size: 0.88rem;
}
.single-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-main);
}
.single-content h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-pure);
    margin: 40px 0 16px;
}
.single-content h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-pure);
    margin: 30px 0 12px;
}
.single-content p { margin-bottom: 20px; }
.single-content a { color: var(--accent); }
.single-content a:hover { color: var(--accent-hover); }
.single-content strong { color: var(--text-pure); }
.single-content ul, .single-content ol {
    padding-left: 24px;
    margin-bottom: 20px;
}
.single-content li { margin-bottom: 8px; }
.single-content em { color: var(--text-muted); }

/* --- FOOTER --- */
#site-footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--glass-border);
    padding: 72px 0 28px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr;
    gap: 40px;
}

.footer-col h4 {
    color: var(--text-pure);
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 22px;
}
.footer-col p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links li a { color: var(--text-muted); font-size: 0.92rem; transition: 0.3s; }
.footer-links li a:hover { color: var(--accent); padding-left: 5px; }

.social-links { display: flex; gap: 12px; margin-top: 22px; }
.social-icon {
    width: 40px; height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 700;
    color: var(--text-pure);
    transition: 0.3s;
}
.social-icon:hover { background: var(--primary-gradient); border-color: transparent; transform: translateY(-3px); }

.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 12px 16px;
    color: #fff;
    outline: none;
    font-size: 0.9rem;
}
.newsletter-form input::placeholder { color: var(--text-muted); }
.newsletter-form button {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}
.newsletter-form button:hover { filter: brightness(1.1); }

.footer-bottom {
    max-width: 1300px;
    margin: 50px auto 0;
    padding: 24px 5% 0;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: var(--text-muted); }
.footer-bottom-links a:hover { color: var(--accent); }

/* --- MOBILE MENU --- */
.menu-toggle { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.menu-toggle span { width: 28px; height: 2px; background: #fff; border-radius: 2px; }

#mobile-overlay {
    position: fixed;
    top: 0; right: -100%;
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.98);
    z-index: 999999;
    transition: 0.35s ease;
    padding: 100px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}
#mobile-overlay.active { right: 0; }
#mobile-overlay a { font-size: 1.25rem; font-weight: 700; color: #fff; }
#mobile-overlay a:hover { color: var(--accent); }

@media (max-width: 1100px) {
    #site-nav, .cta-button { display: none; }
    .menu-toggle { display: flex; }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-container { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 700px) {
    .posts-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .single-title { font-size: 2rem; }
    #site-header { padding: 0 20px; }
}
@media (max-width: 480px) {
    .footer-container { grid-template-columns: 1fr; }
}

/* === HERO SECTION === */
.hero-section {
    position: relative;
    min-height: 62vh;
    background-size: cover;
    background-position: center 30%;
    background-color: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 48px;
    display: flex;
    align-items: flex-end;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,15,28,0.96) 0%, rgba(10,15,28,0.55) 55%, rgba(10,15,28,0.1) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 48px 52px;
    max-width: 760px;
}
.hero-cat {
    display: inline-block;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 18px;
}
.hero-title {
    font-family: 'Syne', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 16px;
}
.hero-title a { color: inherit; }
.hero-title a:hover { color: var(--accent); }
.hero-excerpt {
    color: rgba(241,245,249,0.8);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}
.hero-meta {
    display: flex;
    gap: 10px;
    font-size: 0.82rem;
    color: rgba(241,245,249,0.55);
    margin-bottom: 24px;
}
.hero-cta {
    display: inline-block;
    background: var(--primary-gradient);
    color: #fff;
    padding: 13px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 6px 20px rgba(249,115,22,0.35);
    transition: all 0.3s ease;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(249,115,22,0.45); }

/* === CAT QUICKLINKS === */
.cat-quicklinks {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.cat-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.25s ease;
}
.cat-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(249,115,22,0.15);
}
.cat-chip-icon { font-size: 1.1rem; }

/* === SECTION HEADER === */
.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}
.section-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-pure);
    white-space: nowrap;
}
.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--accent), transparent);
}

/* === RESPONSIVE HERO === */
@media (max-width: 768px) {
    .hero-section { min-height: 50vh; }
    .hero-content { padding: 32px 28px; }
    .hero-title { font-size: 1.7rem; }
    .cat-quicklinks { gap: 10px; }
    .cat-chip { padding: 10px 16px; font-size: 0.82rem; }
}
@media (max-width: 480px) {
    .hero-section { min-height: 38vh; border-radius: 16px; }
    .hero-title { font-size: 1.4rem; }
    .hero-excerpt { display: none; }
}
