/* Styles pour le menu vertical */
.vertical-navigation-container {
    width: 300px;
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
    overflow-y: auto;
    z-index: 1000;
}

.vertical-navigation {
    padding: 1rem 0;
}

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

.vertical-menu li {
    margin: 0;
    padding: 0;
}

/* Style des liens */
.vertical-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

/* Premier niveau */
.sub-item > a {
    font-size: 1em;
    background: #fff;
    border-bottom: 1px solid #dee2e6;
}

.sub-item > a:hover {
    background: #f8f9fa;
    color: #007bff;
}

/* Deuxième niveau */
.sub-sub-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border-left: 3px solid #007bff;
}

.product-main-image {
    position: relative;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.product-main-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* Effet de zoom au survol */
.product-main-image:hover img {
    transform: scale(1.05);
}

/* Style pour la section produit */
.wp-block-columns {
    align-items: center;
    gap: 2rem;
}

/* Style pour le conteneur de l'image */
.wp-block-column figure {
    margin: 0;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* Style pour les images dans la galerie */
.product-gallery-section img {
    transition: transform 0.3s ease;
}

.product-gallery-section img:hover {
    transform: scale(1.02);
}

/* Responsive */
@media (max-width: 781px) {
    .wp-block-columns {
        flex-wrap: wrap;
    }
    .wp-block-column {
        flex-basis: 100% !important;
    }
}

.product-downloads-section {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 2rem 0;
}

.downloads-title {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 2rem;
    text-align: center;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.download-item {
    display: flex;
    align-items: flex-start;
    padding: 1.25rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    min-height: 90px;
    position: relative;
}

.download-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: #4299e1;
}

.download-icon {
    width: 40px;
    height: 40px;
    margin-right: 1rem;
    flex-shrink: 0;
    position: relative;
    top: 2px;
}

.download-icon svg {
    width: 100%;
    height: 100%;
}

.download-content {
    flex-grow: 1;
    min-width: 0; /* Important pour que le texte puisse se réduire */
    padding-right: 35px; /* Espace pour la flèche */
}

.download-title {
    font-size: 1rem;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
    font-weight: 500;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.download-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.download-type {
    font-size: 0.75rem;
    color: #718096;
    font-weight: 600;
    text-transform: uppercase;
    background: #edf2f7;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    white-space: nowrap;
}

.download-arrow {
    color: #4299e1;
    transition: transform 0.3s ease;
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
}

.download-arrow svg {
    width: 20px;
    height: 20px;
}

.download-item:hover .download-arrow {
    transform: translateY(-50%) translateY(3px);
}

@media (max-width: 768px) {
    .downloads-grid {
        grid-template-columns: 1fr;
    }
    
    .product-downloads-section {
        padding: 1rem;
    }

    .download-item {
        min-height: 80px;
    }

    .download-title {
        font-size: 0.95rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .downloads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-slider {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}
.gallery-slider-main {
    height: 500px;
    margin-bottom: 1rem;
    background:black;
}
.gallery-slider-main .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-slider-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.gallery-slider-thumbs {
    height: 100px;
}
.gallery-slider-thumbs .swiper-slide {
    opacity: 0.4;
    cursor: pointer;
}
.gallery-slider-thumbs .swiper-slide-thumb-active {
    opacity: 1;
}
.gallery-slider-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.swiper-button-next,
.swiper-button-prev {
    color: white !important;
}
.vertical-menu {
    width: 250px;
    background: #f8f8f8;
    border-right: 1px solid #ddd;
    padding: 20px 0;
}

.vertical-menu .menu-title {
    padding: 0 20px;
    margin: 0 0 15px;
    font-size: 1.2em;
    color: #333;
}

.vertical-menu .menu-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vertical-menu .menu-item {
    margin: 0;
    padding: 0;
}

.vertical-menu .menu-item a {
    display: block;
    padding: 8px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.vertical-menu .menu-item a:hover {
    background: #eee;
    color: #333;
}

.vertical-menu .menu-item.current > a {
    background: #e0e0e0;
    color: #333;
    font-weight: bold;
}

.vertical-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0 0 0 20px;
}

.vertical-menu .has-children > a {
    position: relative;
}

.vertical-menu .has-children > a:after {
    content: '▼';
    font-size: 0.8em;
    margin-left: 5px;
}
/* Afficher les sous-menus des éléments actifs et au survol */
.menu-item-has-children:hover > .sub-sub-menu,
.menu-item-has-children:hover > .sub-sub-sub-menu,
.menu-item-has-children.active > .sub-sub-menu,
.menu-item-has-children.active > .sub-sub-sub-menu,
.current-menu-ancestor > .sub-sub-menu,
.current-menu-ancestor > .sub-sub-sub-menu {
    display: block;
}

/* Style des éléments actifs */
.current-menu-item > a {
    background: transparent !important;
    color: #fff !important;
    font-weight: bold;
}

/* Style des parents actifs */
.current-menu-ancestor > a {
    background: #e9ecef !important;
    color: #007bff !important;
    font-weight: bold;
}

/* Sous-éléments */
.sub-sub-item > a {
    padding-left: 2rem;
    font-size: 0.95em;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

/* Troisième niveau */
.sub-sub-sub-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border-left: 3px solid #007bff;
}

.sub-sub-sub-item > a {
    padding-left: 3rem;
    font-size: 0.9em;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

/* Style des catégories navigables */
.category-link {
    position: relative;
    padding-right: 2rem !important;
}

.toggle-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.menu-item-has-children.active > a .toggle-icon {
    transform: translateY(-50%) rotate(180deg);
}



@media (max-width: 1840px) {
    body.has-product-menu #primary {
        margin-left: 15em !important;
        transition: margin 0.3s ease;
    }
} 
@media (max-width: 1590px) {
    body.has-product-menu #primary {
        margin-left: 16em !important;
        transition: margin 0.3s ease;
    }
} 
/* Responsive */
@media (max-width: 991px) {
    .vertical-navigation-container {
        width: 100%;
        position: relative;
        top: 0;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }
    
    body.has-product-menu #primary {
        margin-left: 0 !important;
        width: 100% !important;
    }
} 

/* Style du chemin du menu */
.menu-path {
    padding: 1rem;
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.9em;
    color: #666;
}

.menu-path a {
    color: #007bff;
    text-decoration: none;
    padding: 0 !important;
    display: inline !important;
}

.menu-path a:hover {
    text-decoration: underline;
    background: none !important;
}

.menu-path .separator {
    margin: 0 0.5rem;
    color: #999;
}

.menu-path .current-item {
    color: #333;
    font-weight: bold;
} 

/* Styles pour la section de téléchargements */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 20px 0;
}

.download-item {
    display: flex;
    align-items: flex-start;
    padding: 1.25rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    min-height: 90px;
    position: relative;
    text-decoration: none !important;
    color: inherit;
    gap: 12px;
}

.download-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    border-color: #ccc;
}

.download-icon {
    width: 40px;
    height: 40px;
    margin-right: 1rem;
    flex-shrink: 0;
    position: relative;
    top: 2px;
}

.download-icon svg {
    width: 100%;
    height: 100%;
    fill: #e8e8e8;
}

.download-content {
    flex-grow: 1;
    min-width: 0;
    padding-right: 35px;
}

.download-title {
    font-size: 1rem;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
    font-weight: 500;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.download-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.download-type {
    font-size: 0.75rem;
    color: #718096;
    font-weight: 600;
    text-transform: uppercase;
    background: #edf2f7;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    white-space: nowrap;
}

.download-arrow {
    color: #4299e1;
    transition: transform 0.3s ease;
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .downloads-grid {
        grid-template-columns: 1fr;
    }
} 

/* Suppression des effets de zoom et transitions */
.product-image img,
.product-gallery img,
.wp-block-image img,
.product-main-image img,
.gallery-image,
.gallery-thumb {
    width: 100%;
    height: auto;
    display: block;
    transform: none !important;
    transition: none !important;
}

/* Suppression des effets au survol */
.product-image:hover img,
.product-gallery:hover img,
.wp-block-image:hover img,
.product-main-image:hover img,
.gallery-image:hover,
.gallery-thumb:hover {
    transform: none !important;
}

/* Suppression des transitions sur les éléments interactifs */
.product-gallery .wp-block-image,
.gallery-slider-thumbs .swiper-slide,
.swiper-button-next,
.swiper-button-prev {
    transition: none !important;
}

/* Suppression des transformations au survol */
.product-gallery .wp-block-image:hover,
.gallery-slider-thumbs .swiper-slide:hover {
    transform: none !important;
} 