/*
Theme Name: Haircut Theme
Theme URI: https://example.com/haircut
Author: Your Name
Author URI: https://example.com
Description: Conversion du template Haircut en thème WordPress
Version: 1.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: haircut-theme
*/

@media (max-width: 991.98px) {
    .navbar-nav {
        background: var(--bs-secondary);
    }

    .navbar-nav .nav-link {
        padding: 10px 0;
        text-align: center;
    }

    .dropdown-menu {
        background: transparent;
        border: none;
        text-align: center;
    }

    .dropdown-menu .nav-link {
        color: #000 !important;
        padding: 5px 0;
    }

    .navbar-nav .nav-link small {
        display: block;
        text-align: center;
    }

    .hero-header h1,
    .display-5,
    .feature-content h4,
    .machine-card h4,
    .machine-card h5,
    #solutions .machine-card h5 {
        font-family: 'Bradley Hand ITC', 'Comic Sans MS', 'Brush Script MT', cursive;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
}

.navbar-nav .nav-link {
    position: relative;
    margin-left: 25px;
    text-transform: lowercase;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--bs-primary) !important;
}

.navbar-nav .nav-link small {
    font-size: 0.8em;
    opacity: 0.8;
    font-weight: normal;
    text-transform: none;
}

.dropdown-menu .nav-link small {
    color: rgba(255, 255, 255, 0.7);
}

.dropdown-menu .nav-link {
    color: #000 !important;
    padding: 5px 0;
    white-space: nowrap;
}

.menu-item-image {
    flex-shrink: 0;
}

.machine-image-menu {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

.menu-item-text {
    flex-grow: 1;
}

/* Ajustements responsive */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        flex-direction: column;
        text-align: center;
    }

    .menu-item-image {
        margin-bottom: 10px;
    }

    .machine-image {
        width: 80px;
        height: 80px;
    }
}

/* Styles pour le template Machine */
.machine-specs {
    border-left: 5px solid var(--bs-primary);
    border-right: 1px solid #C3C3C3;
    border-bottom: 1px solid #C3C3C3;
    border-top: 1px solid #C3C3C3;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

.specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.specs-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.specs-list li:last-child {
    border-bottom: none;
}

.machine-description {
    line-height: 1.8;
}

.machine-gallery .gallery-item {
    padding: 10px;
}

.machine-gallery img {
    transition: transform 0.3s ease;
}

.machine-gallery img:hover {
    transform: scale(1.05);
}

/* Animation de survol pour les images */
.img-fluid.rounded.shadow-lg {
    transition: all 0.3s ease;
}

.img-fluid.rounded.shadow-lg:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
}

/* Style pour le CTA */
.bg-primary.rounded {
    position: relative;
    overflow: hidden;
}

.bg-primary.rounded::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .machine-specs {
        margin-top: 2rem;
    }
}

/* Hero Section */
.hero-header {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url('assets/img/hero-bg.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-header h1 {
    font-family: 'Bradley Hand ITC', cursive;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Section Titles */
.display-5 {
    font-family: 'Bradley Hand ITC', cursive;
    font-weight: 700;
    letter-spacing: 0.8px;
}

/* Machine Cards */
.machine-card {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
    border: 1px solid transparent;
    transition: .5s;
    background: #fff;
}

.machine-card:hover {
    border-color: var(--bs-primary);
}

.machine-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    transition: .5s;
}

.machine-card:hover .machine-overlay {
    opacity: 1;
}

/* Features Section Nouvelle Version */
.features-section {
    background: linear-gradient(rgba(0, 0, 0, .03), rgba(0, 0, 0, .03));
    position: relative;
    z-index: 1;
}

.feature-box {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(0, 0, 0, .08);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, .15);
}

.feature-icon-wrap {
    width: 80px;
    height: 80px;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-primary);
    border-radius: 12px;
    margin-right: 1.5rem;
}

.feature-icon-wrap i {
    font-size: 2.5rem;
    color: #fff;
}

.feature-content {
    flex: 1;
}

.feature-content h4 {
    font-family: 'Bradley Hand ITC', cursive;
    font-weight: 600;
    color: var(--bs-dark);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

.feature-content p {
    color: #666;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 991.98px) {
    .feature-box {
        padding: 1.5rem;
    }

    .feature-icon-wrap {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }

    .feature-icon-wrap i {
        font-size: 1.8rem;
    }

    .feature-content h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 575.98px) {
    .feature-box {
        flex-direction: column;
        text-align: center;
    }

    .feature-icon-wrap {
        margin: 0 auto 1rem;
    }
}

/* About Section */
.about-img {
    position: relative;
}

.about-img::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 5px solid var(--bs-primary);
    top: 15px;
    left: 15px;
    z-index: -1;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-header {
        padding: 4rem 0;
    }

    .about-img::after {
        display: none;
    }
}

/* Suppression de tous les effets de biseaux */
.features-section {
    background: linear-gradient(rgba(0, 0, 0, .03), rgba(0, 0, 0, .03));
    position: relative;
    z-index: 1;
}

#machines {
    position: relative;
    z-index: 2;
}

.bg-primary {
    position: relative;
    z-index: 1;
}

/* Category Machines Template Styles */
.machine-filters {
    margin-bottom: 2rem;
}

.btn-filter {
    background: none;
    border: 2px solid var(--bs-primary);
    color: var(--bs-primary);
    padding: 8px 20px;
    margin: 0 5px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-filter:hover,
.btn-filter.active {
    background: var(--bs-primary);
    color: #fff;
}

.machine-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0, 0, 0, .08);
    transition: all 0.3s ease;
    background: #fff;
}

.machine-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

.machine-image {
    overflow: hidden;
    height: 250px;
}

.machine-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.machine-card:hover .machine-image img {
    transform: scale(1.1);
}

.machine-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.machine-card:hover .machine-overlay {
    opacity: 1;
}

.machine-info {
    background: #fff;
}

.machine-specs {
    margin-top: 1rem;
}

.spec-item {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.btn-link {
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: var(--bs-primary-darker);
}

.cta-box {
    background: linear-gradient(45deg, var(--bs-primary), var(--bs-primary-darker));
    border-radius: 15px;
    color: #fff;
}

/* Accordion Styling */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 10px !important;
    overflow: hidden;
}

.accordion-button {
    background: #f8f9fa;
    border: none;
    font-weight: 500;
    padding: 1.2rem;
}

.accordion-button:not(.collapsed) {
    background: var(--bs-primary);
    color: #fff;
}

.accordion-body {
    padding: 1.2rem;
    background: #fff;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .machine-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .btn-filter {
        margin: 0;
    }
}

@media (max-width: 575.98px) {
    .machine-image {
        height: 200px;
    }
}

/* Category Machines Template - Version épurée */
.machine-item {
    background: #fff;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.machine-image {
    position: relative;
    overflow: hidden;
}

.machine-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.machine-content {
    padding: 25px;
}

.machine-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.machine-subtitle {
    color: #666;
    margin-bottom: 20px;
}

.btn-discover {
    display: inline-flex;
    align-items: center;
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-discover svg {
    margin-left: 8px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.btn-discover:hover {
    color: var(--bs-primary-darker);
}

.btn-discover:hover svg {
    transform: translateX(5px);
}

/* Contact Section */
.contact-section {
    padding: 40px;
    background: #f8f9fa;
    border-radius: 4px;
}

.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact-section p {
    color: #666;
    margin-bottom: 0;
}

.btn-contact {
    display: inline-block;
    padding: 12px 30px;
    background: var(--bs-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: var(--bs-primary-darker);
    color: #fff;
}

/* Responsive */
@media (max-width: 991.98px) {
    .machine-image img {
        height: 250px;
    }

    .machine-content {
        padding: 20px;
    }

    .machine-content h3 {
        font-size: 1.3rem;
    }
}

/* Blog Styles */
.blog-post {
    background: #fff;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.blog-post-image {
    position: relative;
    overflow: hidden;
}

.blog-post-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-post:hover .blog-post-image img {
    transform: scale(1.05);
}

.blog-post-content {
    padding: 30px;
}

.blog-post-meta {
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
}

.blog-post-meta span {
    margin-right: 20px;
}

.blog-post-meta i {
    margin-right: 5px;
    color: var(--bs-primary);
}

.blog-post-title {
    margin-bottom: 15px;
}

.blog-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-title a:hover {
    color: var(--bs-primary);
}

.blog-post-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more svg {
    margin-left: 8px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--bs-primary-darker);
}

.read-more:hover svg {
    transform: translateX(5px);
}

/* Sidebar Styles */
.blog-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: #fff;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bs-primary);
}

.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.categories-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.categories-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.categories-list a:hover {
    color: var(--bs-primary);
}

.recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.recent-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-posts a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.4;
    display: block;
}

.recent-posts a:hover {
    color: var(--bs-primary);
}

/* Pagination */
.blog-pagination {
    text-align: center;
}

.blog-pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.blog-pagination .page-numbers.current {
    background: var(--bs-primary);
    color: #fff;
}

.blog-pagination .page-numbers:hover {
    background: var(--bs-primary);
    color: #fff;
}

/* Responsive */
@media (max-width: 991.98px) {
    .blog-post-image img {
        height: 300px;
    }

    .blog-sidebar {
        margin-top: 50px;
        position: static;
    }
}

@media (max-width: 575.98px) {
    .blog-post-content {
        padding: 20px;
    }

    .blog-post-image img {
        height: 250px;
    }
}

/* Single Post Styles */
.single-header {
    background: linear-gradient(rgba(0, 0, 0, .8), rgba(0, 0, 0, .8)), var(--bs-primary);
    position: relative;
}

.post-meta {
    font-size: 0.95rem;
}

.post-meta span {
    margin-right: 20px;
}

.post-meta i {
    margin-right: 5px;
    opacity: 0.8;
}

.single-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.featured-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.featured-image img {
    width: 100%;
}

.post-content {
    color: #444;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.post-content blockquote {
    border-left: 4px solid var(--bs-primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
}

.post-tags {
    color: #666;
}

.post-tags i {
    color: var(--bs-primary);
    margin-right: 10px;
}

.post-tags a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-tags a:hover {
    color: var(--bs-primary);
}

/* Post Navigation */
.post-navigation {
    margin: 3rem 0;
}

.nav-subtitle {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
}

.nav-title {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-title:hover {
    color: var(--bs-primary);
}

/* Related Posts */
.related-post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.related-image {
    display: block;
    position: relative;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 1.5rem;
}

.related-content h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.related-content h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-content h4 a:hover {
    color: var(--bs-primary);
}

.related-date {
    font-size: 0.85rem;
    color: #666;
}

/* Comments */
.post-comments {
    margin-top: 3rem;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 2rem;
}

.comment-author {
    font-weight: 500;
}

.comment-metadata {
    font-size: 0.85rem;
    color: #666;
    margin: 5px 0;
}

.comment-content {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 991.98px) {
    .single-content {
        font-size: 1rem;
    }

    .related-image img {
        height: 180px;
    }
}

@media (max-width: 575.98px) {
    .post-navigation .nav-next {
        text-align: left;
        margin-top: 1rem;
    }

    .col-6 {
        width: 100%;
    }
}

/* Solutions Section */
#solutions {
    background-color: #000;
}

#solutions .machine-card {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 8px;
}

#solutions .machine-card .position-relative {
    height: 200px;
    /* Hauteur fixe pour toutes les images */
    overflow: hidden;
}

#solutions .machine-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#solutions .machine-card:hover img {
    transform: scale(1.05);
}

#solutions .machine-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#solutions .display-5 {
    color: #fff !important;
}

#solutions .machine-overlay {
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: all 0.3s ease;
}

#solutions .machine-card:hover .machine-overlay {
    opacity: 1;
}

#solutions .machine-card h5 {
    font-family: 'Bradley Hand ITC', cursive;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #000 !important;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

#solutions .machine-card p {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    color: #fff;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0;
}

#solutions .btn-sm {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
}

/* Responsive pour les images */
@media (max-width: 991.98px) {
    #solutions .machine-card .position-relative {
        height: 180px;
    }
}

@media (max-width: 575.98px) {
    #solutions .machine-card .position-relative {
        height: 160px;
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Bradley Hand ITC', cursive;
    font-weight: 600;
    letter-spacing: 0.5px;
}

body,
p,
.lead,
.btn,
.nav-link {
    font-family: 'Roboto', sans-serif;
}

/* Card Titles */
.machine-card h4,
.machine-card h5 {
    font-family: 'Bradley Hand ITC', cursive;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Feature Box Titles */
.feature-content h4 {
    font-family: 'Bradley Hand ITC', cursive;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Solutions Section */
#solutions .machine-card h5 {
    font-family: 'Bradley Hand ITC', cursive;
    font-weight: 600;
    letter-spacing: 0.3px;
}

#solutions .machine-card p {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
}

/* Styles pour le logo */
.navbar-brand img {
    max-height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .navbar-brand img {
        max-height: 45px;
    }

    .navbar-nav .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.95rem;
    }

    .navbar-nav .nav-link small {
        font-size: 0.75rem;
    }

    .container {
        max-width: 95%;
    }
}

@media (max-width: 991.98px) {
    .navbar-brand img {
        max-height: 40px;
    }
}

@media (max-width: 768px) {
    .navbar-brand img {
        max-height: 35px;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        max-height: 30px;
    }
}