/* ImpactFilter - Custom Styles */
/* Industrial, Modern, Responsive Design */

/* ===== COLORS ===== */
:root {
    --primary-blue: #0181C6;
    --accent-orange: #F25E20;
    --light-gray: #F3F3F3;
    --white: #FFFFFF;
    --dark-gray: #333333;
    --medium-gray: #666666;
    --border-gray: #DEE2E6;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

/* RTL Support */
[dir="rtl"] {
    direction: rtl;
}

[dir="rtl"] .text-left {
    text-align: right;
}

[dir="rtl"] .text-right {
    text-align: left;
}

[dir="rtl"] .ms-auto {
    margin-left: auto;
    margin-right: 0;
}

[dir="rtl"] .me-auto {
    margin-right: auto;
    margin-left: 0;
}

[dir="rtl"] .ms-3 {
    margin-left: 0;
    margin-right: 1rem;
}

[dir="rtl"] .me-3 {
    margin-right: 0;
    margin-left: 1rem;
}

[dir="rtl"] .me-2 {
    margin-right: 0;
    margin-left: 0.5rem;
}

[dir="rtl"] .me-1 {
    margin-right: 0;
    margin-left: 0.25rem;
}

[dir="rtl"] .float-start {
    float: right;
}

[dir="rtl"] .float-end {
    float: left;
}

/* Force LTR for phone numbers and similar content */
.phone-number, 
.tel-link, 
.whatsapp-link,
[href^="tel:"],
[href^="https://wa.me/"] {
    direction: ltr !important;
    unicode-bidi: embed !important;
    text-align: left !important;
}

/* Force LTR for any element containing phone numbers */
.footer a[href^="tel:"],
.footer a[href^="https://wa.me/"],
.contact-info a[href^="tel:"],
.contact-info a[href^="https://wa.me/"] {
    direction: ltr !important;
    unicode-bidi: embed !important;
    text-align: left !important;
    display: inline-block;
}

/* Force navbar to always be LTR */
.navbar,
.navbar-nav,
.navbar-collapse,
.navbar-brand,
.navbar-toggler {
    direction: ltr !important;
    unicode-bidi: embed !important;
}

[dir="rtl"] .navbar-nav {
    direction: ltr !important;
    flex-direction: row !important;
}

[dir="rtl"] .navbar-nav .nav-link {
    text-align: left !important;
}

[dir="rtl"] .navbar-collapse {
    text-align: left !important;
}

[dir="rtl"] .navbar-brand {
    text-align: left !important;
}

[dir="rtl"] .language-selector-container {
    text-align: left !important;
    margin-left: auto !important;
    margin-right: 0 !important;
}

/* ===== NAVBAR STYLES ===== */
.bg-primary {
    background-color: var(--primary-blue) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white) !important;
    text-decoration: none;
}

.navbar-brand:hover {
    opacity: 0.9;
}

/* Augmenter la hauteur de la navbar */
.navbar {
    min-height: 75px !important; /* 1.5x la hauteur par défaut (50px) */
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 700;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.navbar-nav .nav-link.active {
    background-color: var(--accent-orange) !important;
    color: var(--white) !important;
    font-weight: 800;
}

.navbar-light .nav-link {
    color: white !important;
    font-weight: 700;
}

.navbar-light .nav-link:hover,
.navbar-light .nav-link.active {
    color: white !important;
    background-color: var(--accent-orange) ;
}

.navbar-light .nav-link.active {
    background-color: var(--accent-orange)  !important;
    color: var(--white) !important;
    font-weight: 800;
}

/* Language selector container */
.language-selector-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Language selector */
#language-selector {
    min-width: 90px;
    max-width: 120px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
    align-self: center;
    height: 42px;
    font-size: 1.1rem;
    padding: 0.5rem;
    font-weight: 700;
}

#language-selector:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--white);
    color: var(--white) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

#language-selector option {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.25rem;
}

/* Fix language selector alignment in navbar */
.navbar-nav .nav-item:last-child {
    align-self: center;
}

/* Language selector container */
.language-selector-container {
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
}

/* ===== BUTTONS ===== */
.btn-orange {
    background-color: #FECB02;
    border-color: #FECB02;
    color: var(--white);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-orange:hover {
    background-color: #E04A10;
    border-color: #E04A10;
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(242, 94, 32, 0.3);
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: #016BA3;
    border-color: #016BA3;
}

.btn-fullwidth {
    display: block;      /* Le bouton prend toute la largeur disponible */
    width: 100%;         /* Assure qu'il remplit le parent */
    text-align: center;  /* Centrer le texte et l'icône */
}


/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #025A8A 100%);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-slogan {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Ratio 1920x1080 */
    max-height: 70vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Contenu produit dans le slider */
.slider-content {
    position: absolute;
    top: 0;
    left: 5%;
    width: 40%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 5;
}

.slider-content .product-description {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: 80vh;
    overflow-y: auto;
    color: var(--dark-gray);
}

.slider-content .product-description h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.slider-content .product-description h4 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.slider-content .product-description p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.slider-content .product-description ul {
    list-style: none;
    padding: 0;
}

.slider-content .product-description ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.slider-content .product-description ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: bold;
}

.slider-content .product-description .btn {
    margin: 0.5rem 0.5rem 0.5rem 0;
}

/* Classe product-description2 avec fond transparent */
.slider-content .product-description2 {
    background: transparent;
    padding: 30px;
    border-radius: 0;
    box-shadow: none;
    color: var(--dark-gray);
}

.slider-content .product-description2 h3 {
    color: #FECB02;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.slider-content .product-description2 h4 {
    color: #FECB02;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.slider-content .product-description2 p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.slider-content .product-description2 ul {
    list-style: none;
    padding: 0;
}

.slider-content .product-description2 ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.slider-content .product-description2 ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-orange);
    font-weight: bold;
}

.slider-content .product-description2 .btn {
    margin: 0.5rem 0.5rem 0.5rem 0;
}

/* Responsive pour le contenu slider */
@media (max-width: 1024px) {
    .slider-content {
        width: 50%;
        padding: 30px 20px;
    }
    
    .slider-content .product-description {
        padding: 20px;
        max-height: 70vh;
    }
}

@media (max-width: 750px) and (min-width: 501px) {
    .hero-slider {
        padding-bottom: 0;
        max-height: none;
        display: block;
        min-height: auto;
        position: relative;
    }
    
    .slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 60vh;
        background-size: cover;
        background-position: center;
        display: block;
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
    }
    
    .slide.active {
        opacity: 1;
        z-index: 1;
    }
    
    .slider-content {
        display: none;
    }
    
    .slider-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 15;
        background: rgba(255, 255, 255, 0.8);
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }
    
    .slider-arrow.prev {
        left: 10px;
    }
    
    .slider-arrow.next {
        right: 10px;
    }
    
    .slider-indicators {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 15;
        background: rgba(0, 0, 0, 0.5);
        padding: 5px 10px;
        border-radius: 20px;
    }
}

@media (max-width: 768px) {
    .slider-content {
        position: relative;
        width: 100%;
        height: auto;
        padding: 20px;
        background: rgba(255, 255, 255, 0.95);
    }
    
    .slider-content .product-description {
        background: transparent;
        padding: 0;
        max-height: none;
        box-shadow: none;
        border-radius: 0;
    }
    
    .slider-content .product-description h3 {
        font-size: 1.3rem;
    }
    
    .slider-content .product-description h4 {
        font-size: 1.1rem;
    }
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-blue);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--white);
    width: 30px;
    border-radius: 6px;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .hero-slider {
        padding-bottom: 0;
        max-height: none;
        display: block;
        min-height: auto;
        position: relative;
    }
    
    .slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 70vh;
        background-size: cover;
        background-position: center;
        display: block;
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
    }
    
    .slide.active {
        opacity: 1;
        z-index: 1;
    }
    
    .slider-content {
        display: none;
    }
    
    .slider-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 15;
        background: rgba(255, 255, 255, 0.8);
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }
    
    .slider-arrow.prev {
        left: 10px;
    }
    
    .slider-arrow.next {
        right: 10px;
    }
    
    .slider-indicators {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 15;
        background: rgba(0, 0, 0, 0.5);
        padding: 5px 10px;
        border-radius: 20px;
    }
    
    .slider-content .product-description {
        background: transparent;
        padding: 0;
        max-height: none;
        box-shadow: none;
        border-radius: 0;
        color: var(--dark-gray);
    }
    
    .slider-content .product-description h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .slider-content .product-description p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .slider-content .product-description h4 {
        font-size: 1.1rem;
        margin-top: 15px;
    }
    
    .slider-content .product-description ul {
        font-size: 0.85rem;
        padding-left: 20px;
    }
    
    .slider-content .product-description li {
        margin-bottom: 5px;
    }
    
    .slider-content .mt-4 {
        margin-top: 20px !important;
    }
    
    .slider-content .btn {
        font-size: 0.9rem;
        padding: 8px 16px;
        margin-bottom: 10px;
        width: 100%;
    }
    
    .slider-content .me-3 {
        margin-right: 0 !important;
        margin-bottom: 10px;
    }
    
    .slider-content .text-center {
        text-align: center;
        margin-bottom: 15px;
    }
    
    .slider-content .product-title {
        font-size: 1.4rem;
        color: var(--primary-blue);
        margin-bottom: 5px;
    }
    
    .slider-content .fw-bold {
        font-weight: 600;
        color: var(--accent-orange);
        font-size: 0.95rem;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .slider-arrow.prev {
        left: 10px;
    }
    
    .slider-arrow.next {
        right: 10px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
    
    .indicator.active {
        background: var(--white);
        width: 30px;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        padding-bottom: 55%; /* Encore plus tall sur petit mobile */
        max-height: 45vh;
    }
    
    .slide {
        height: 45vh;
    }
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    text-align: center;
}

.section-title2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--medium-gray);
    margin-bottom: 3rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--medium-gray);
    text-align: center;
    margin-bottom: 3rem;
}

/* ===== PRODUCT PAGES ===== */
.product-header {
    background-color: var(--light-gray);
    padding: 40px 0;
    margin-bottom: 40px;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.product-images {
    margin-bottom: 40px;
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.thumbnail-images {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.thumbnail {
    flex: 1;
    min-width: 100px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover {
    border-color: var(--primary-blue);
    transform: scale(1.05);
}

.specifications-table {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.specifications-table table {
    margin-bottom: 0;
}

.specifications-table th {
    background-color: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
    padding: 15px;
    border: none;
}

.specifications-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-gray);
}

.specifications-table tr:last-child td {
    border-bottom: none;
}

/* ===== CONTACT PAGE ===== */
.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.form-label {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(1, 129, 198, 0.25);
}

.contact-map {
    background-color: var(--light-gray);
    height: 400px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
    font-size: 1.1rem;
}

.about-text {
  white-space: pre-line;
  text-align: justify;
}

/* ===== FOOTER ===== */
footer {
    background-color: #4F626E !important;
}

footer h5 {
    color: var(--white);
    font-weight: 600;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-orange);
}

footer .btn-orange {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
    color: var(--white);
}

footer .btn-orange:hover {
    background-color: #d94e1a;
    border-color: #d94e1a;
    color: var(--white);
}

/* Outline Primary Button */
.btn-outline-primary {
    color: #FECB02;
    border-color: #FECB02;
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(1, 129, 198, 0.25);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .thumbnail-images {
        justify-content: center;
    }
    
    .thumbnail {
        flex: 1;
        min-width: 80px;
        height: 100px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .content-section {
        padding: 40px 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
    }
    
    .contact-form {
        padding: 20px;
    }
}

/* ===== UTILITIES ===== */
.text-primary-blue {
    color: var(--primary-blue) !important;
}

.text-accent-orange {
    color: var(--accent-orange) !important;
}

.bg-light-gray {
    background-color: var(--light-gray) !important;
}

.border-primary-blue {
    border-color: var(--primary-blue) !important;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ======= CONTOUR ======== */
.text-outline {
  -webkit-text-stroke: 1px #ffffff;
}

/* ===== LOADING STATES ===== */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for better accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--accent-orange);
    outline-offset: 2px;
}

/* ===== FLOATING WHATSAPP ICON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

.whatsapp-float i {
    transition: transform 0.3s ease;
}

.whatsapp-float:hover i {
    transform: scale(1.1);
}

/* Pulse animation */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 10px;
        right: 10px;
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}
