/*
Theme Name: Pneus QC
Theme URI:  https://pneusqc.com
Author:     Bola Badarou
Description: Thème Pneus recherche et achat de pneu premium
Version:    1.5
Text Domain: pneusqc
*/

:root {
    --primary: #e74c3c;
    --primary-dark: #c0392b;
    --secondary: #2c3e50;
    --light: #f8f8f8;
    --gray: #7f8c8d;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    background-color: var(--light);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.hero-content .btn:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
}

.logo span {
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary);
}

.header-icons a {
    margin-left: 20px;
    font-size: 18px;
}

/* Hero Section */
/* .hero {
    background: linear-gradient(rgb(0 0 0 / 70%), rgb(22 21 21 / 70%)), url(./assets/images/bola-slide.jpg);
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
} */

.hero {
    position: relative;
    height: 100vh; 
    overflow: hidden;
    width: 100vw;
}

.carousel-item {
    width: 100vw;
}

.hero .carousel-item img {
    height: 100vh;
    object-fit: cover; 
    object-position: center;
}

.hero .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* voile sombre */
  z-index: 1;
}

.hero-content {
    z-index: 10;
}

header {
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Filtres de pneus */
.filters {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin: 40px 0;
}

.filter-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--secondary);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.filter-group select, .filter-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Featured Products */
.section-title {
    text-align: center;
    margin: 60px 0 40px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--secondary);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-img {
    height: 200px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-img img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.product-spec {
    background-color: #f5f5f5;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
}

.product-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 15px;
}

/* Types de pneus */
.types {
    background-color: var(--secondary);
    color: var(--white);
    padding: 80px 0;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.type-card {
    background-color: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.type-card:hover {
    transform: translateY(-10px);
    background-color: rgba(231, 76, 60, 0.2);
}

.type-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--primary);
}

.type-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

/* Services */
.services {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.footer-column p {
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a:hover {
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Admin Panel */
.admin-panel {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin: 40px 0;
}

.admin-form {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form-sect {
    padding: 40px 32px;
}

.contact-form {
    display: flex;
    justify-content: center;
    margin: 0 50px;
}

.wpcf7 {
    width: 60% !important;
}

.wpcf7-form input, .wpcf7-form-control-wrap textarea,
.wpcf7-form-control-wrap select {
    padding: 6px 15px;
    border-radius: 10px !important;
    border: 1px solid;
    margin-top: 15px;
    width: 100%;
}

.wpcf7-select, label {
    width: 100% !important;
}

.wpcf7-submit {
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin: 0 auto !important;
    display: flex !important;
}

.single-disp {
    padding: 140px 0 100px !important;
}

.single p {
    font-size: 20px !important;
}

.single h1 {
    font-size: 3.5rem;
}

.img-card-h {
    height: 300px;
    width: auto;
}

.div-bnt {
    width: 80% !important;
    margin-top: auto !important;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
}

.card-text {
    padding-bottom: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .hero-content h1 {
        font-size: 1.8rem !important;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-content .btn, .btn {
        font-size: .7rem;
        padding: 0.6rem 1.2rem;
    }

    .btn {
        font-size: 1.5rem; 
    }

    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .header-icons {
        margin-top: 20px;
    }
    
    .hero h1,
    .single h1 {
        font-size: 36px;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
    }


}

/* ===== STYLES POUR LE FORMULAIRE DE RECHERCHE DANS LE HEADER ===== */
.header-search-form {
    display: flex;
    align-items: center;
}

.header-search-form .input-group {
    display: flex;
    width: 300px;
    max-width: 100%;
}

.header-search-form input[type="text"] {
    border-radius: 10px 0 0 10px;
    border: 2px solid #e74c3c;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.header-search-form input[type="text"]:focus {
    outline: none;
    border-color: #e74c3c;
}

.header-search-form button {
    border-radius: 0 10px 10px 0;
    padding: 0.5rem 1.2rem;
    border: 2px solid #e74c3c;
    background: #e74c3c;
    color: white;
    transition: all 0.3s ease;
}

.header-search-form button:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    padding: 0;
}

.search-form-container {
    margin-left: 1rem;
}

/* ===== STYLES POUR LA PAGE DE RÉSULTATS DE RECHERCHE ===== */
.search-header {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 3px solid #e74c3c;
    margin-bottom: 3rem;
}

.search-header h1 {
    color: #333;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.search-header .lead {
    font-size: 1.2rem;
    color: #666;
}

.search-header strong {
    color: #e74c3c;
}

/* Badge type de post */
.badge.bg-primary {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
    font-weight: 500;
}

/* Cards de résultats */
#search-results .card {
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#search-results .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

#search-results .img-card-h {
    position: relative;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
}

#search-results .img-card-h img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

/* Icône saison */
.saison-badge {
    z-index: 10;
    background: white;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Message "Aucun résultat" */
.alert-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    border-radius: 15px;
}

.alert-info i {
    opacity: 0.8;
}

.alert-info h3 {
    color: white;
    font-weight: 600;
}

.alert-info p {
    font-size: 1.1rem;
}

.alert-info .btn-primary {
    background: white;
    color: #667eea;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.alert-info .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Pagination */
.pagination {
    margin-top: 3rem;
}

.pagination .page-link {
    color: #e74c3c;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1.25rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #e74c3c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.pagination .page-item.active .page-link {
    background-color: #e74c3c;
    border-color: #e74c3c;
}

/* Responsive */
@media (max-width: 768px) {
    .header-search-form .input-group {
        width: 200px;
    }
    
    .header-search-form input[type="text"] {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .search-header h1 {
        font-size: 2rem;
    }
    
    .search-header .lead {
        font-size: 1rem;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-form-container {
        margin-left: 0;
        margin-top: 1rem;
    }
}

.mt-btn {
    margin-top: 50px;
    gap:30px
}

/* Message d'erreur */
.wpcf7-not-valid-tip {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
}

.btn:hover {
    background-color: #e74c3c !important;
    border-color: #e74c3c !important;
}

@media (min-width: 0px) and (max-width: 374.98px) {
    .dis-mob {
        display: block !important;
    }

    .dis-mob .btn {
        margin-bottom: 30px !important;
    }
}

@media (min-width: 375px) and (max-width: 575.98px) {
    .dis-mob {
        display: block !important;
    }

    .dis-mob .btn {
        margin-bottom: 30px !important;
    }
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050;
  background-color: #212529; 
  color: #fff;
}

header {
  margin-top: 45px; 
}

.top-bar a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.top-bar a:hover {
  color: #e74c3c;
}

.top-bar .contact-info i {
  color: #e74c3c;
}

@media (max-width: 768px) {
  .top-bar .container {
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }
}

.select2-container .select2-selection--single {
  height: 40px !important;      
  display: flex !important;
  align-items: center !important;
  border: 1px solid #e8cfcc;    
  border-radius: 5px;          
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 38px !important; 
  padding-left: 10px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 38px !important;
  right: 10px;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #e8cfcc !important;
}

[type=search] {
    outline-offset: 0 !important;
}

.select2-selection__clear {
    display: none !important;
}