/*
Theme Name: Traccar Vitrine
Theme URI: https://traccar.site/traccar/
Description: Thème vitrine officiel et responsive pour AutoPixel GPS.
Author: Adolfo De Mattos
Version: 1.1
*/

/* --- RESET & GLOBALS --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f9fafb;
    color: #1f2937;
    line-height: 1.6;
}

/* --- HEADER & NAVIGATION --- */
.site-header {
    background-color: #111827;
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 22px;
    font-weight: 700;
    color: #10b981;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.brand-logo:hover {
    color: #34d399;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Style des menus générés par WordPress */
.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-menu a {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a {
    color: #10b981;
}

/* Action Buttons (App Links) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease;
}

.btn-link:hover {
    color: #10b981;
}

.btn-primary {
    background-color: #10b981;
    color: #ffffff;
    border: 1px solid #d1d5db;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #059669;
    border-color: #9ca3af;
}

/* Burger Menu Toggle (Caché sur PC) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
}

/* --- HERO & MAIN CONTENT --- */
.main-hero {
    padding: 80px 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 40px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 35px;
}

.hero-cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    background-color: #ffffff;
    color: #1f2937;
    border: 1px solid #d1d5db;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

/* --- FOOTER --- */
.site-footer {
    text-align: center;
    padding: 25px 20px;
    background-color: #1f2937;
    color: #9ca3af;
    font-size: 14px;
    margin-top: 60px;
}

/* --- RESPONSIVE DESIGN (MOBILE & TABLETTE) --- */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #111827;
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        border-top: 1px solid #1f2937;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    /* Affiche le menu déroulant en mobile lorsque la classe is-open est présente */
    .main-navigation.is-open {
        display: flex !important;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .btn-link, .btn-primary .btn-secondary{
        width: 100%;
        text-align: center;
        display: block;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-description {
        font-size: 16px;
    }
}

/* --- DYNAMIC CONTENT STYLES --- */
.main-content {
    padding: 50px 20px;
    min-height: 60vh;
}

.content-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 25px;
    border-bottom: 2px solid #10b981;
    padding-bottom: 10px;
}

.entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content h2, 
.entry-content h3 {
    color: #1f2937;
    margin: 30px 0 15px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .content-container {
        padding: 20px;
    }
    
    .page-title {
        font-size: 24px;
    }
}
/* --- CONTACT PAGE STYLES --- */
.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    margin-top: 30px;
    align-items: start;
}

.contact-info {
    background: #1f2937;
    color: #ffffff;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
    color: #10b981;
    font-size: 24px;
    margin-bottom: 15px;
}

.contact-info p {
    color: #d1d5db;
    font-size: 15px;
    margin-bottom: 30px;
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 15px;
}

.contact-details i {
    color: #10b981;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.app-direct-links {
    border-top: 1px solid #374151;
    padding-top: 20px;
}

.app-direct-links p {
    margin-bottom: 10px;
    font-size: 13px;
    color: #9ca3af;
}

.contact-form-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.custom-contact-form .form-group {
    margin-bottom: 20px;
}

.custom-contact-form label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
}

.custom-contact-form input,
.custom-contact-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #1f2937;
    background-color: #f9fafb;
    transition: border-color 0.2s;
}

.custom-contact-form input:focus,
.custom-contact-form textarea:focus {
    border-color: #10b981;
    background-color: #ffffff;
    outline: none;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}
/* --- MODAL CONFIRMATION STYLES --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 35px 30px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-icon {
    font-size: 55px;
    color: #10b981;
    margin-bottom: 15px;
}

.modal-card h2 {
    font-size: 22px;
    color: #1f2937;
    margin-bottom: 12px;
}

.modal-card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 25px;
}

.modal-card button {
    width: 100%;
    padding: 12px;
    font-size: 15px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
/* --- ABOUT PAGE STYLES --- */
.about-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    margin-top: 30px;
    align-items: start;
}

/* Style de la colonne de contenu dynamique */
.about-main-content {
    background: #ffffff;
    padding: 35px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

/* Sidebar / Carte latérale */
.about-card {
    background: #1f2937;
    color: #ffffff;
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 90px;
}

.about-card-icon {
    font-size: 36px;
    color: #10b981;
    margin-bottom: 15px;
}

.about-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
}

.about-card-subtitle {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.4;
}

.about-divider {
    border: 0;
    border-top: 1px solid #374151;
    margin: 20px 0;
}

.about-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.about-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
}

.about-features-list li i {
    color: #10b981;
    font-size: 18px;
    margin-top: 3px;
}

.about-features-list li strong {
    display: block;
    font-size: 14px;
    color: #f3f4f6;
}

.about-features-list li span {
    display: block;
    font-size: 13px;
    color: #9ca3af;
}

.about-cta-box {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
}

.about-cta-box p {
    font-size: 13px;
    color: #d1d5db;
    margin-bottom: 12px;
}

.about-cta-box .btn-primary {
    display: block;
    width: 100%;
    text-align: center;
}

/* Responsivité Mobile & Tablette */
@media (max-width: 868px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-card {
        position: static;
    }
}
/* --- HERO TWO COLUMNS WITH GRADIENT & IMAGE --- */
.hero-section {
    background: linear-gradient(135deg, #ffffff 40%, #e6f4ed 70%, #c6f6d5 100%);
    padding: 80px 20px;
    display: flex;
    align-items: center;
    min-height: 520px;
}

.hero-container-two-columns {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
    width: 100%;
}

/* Colonne Gauche */
.hero-content-left {
    text-align: left;
}

.hero-content-left .hero-title {
    font-size: 42px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content-left .hero-description {
    font-size: 18px;
    color: #4b5563;
    margin-bottom: 35px;
    line-height: 1.6;
}

.hero-content-left .hero-cta-group {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* Colonne Droite (Image) */
.hero-media-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

/* Responsive Tablette & Mobile */
@media (max-width: 992px) {
    .hero-container-two-columns {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content-left {
        text-align: center;
    }

    .hero-content-left .hero-cta-group {
        justify-content: center;
    }

    .hero-content-left .hero-title {
        font-size: 32px;
    }
}
/* --- ERROR 404 PAGE STYLES --- */
.error-404-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.error-404-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.error-code {
    font-size: 80px;
    font-weight: 900;
    color: #10b981;
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -2px;
}

.error-icon {
    font-size: 42px;
    color: #1f2937;
    margin-bottom: 15px;
}

.error-title {
    font-size: 26px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.error-description {
    font-size: 16px;
    color: #6b7280;
    max-width: 500px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .error-404-card {
        padding: 35px 20px;
    }
    .error-code {
        font-size: 60px;
    }
    .error-title {
        font-size: 22px;
    }
}
