/* Custom CSS for SEICOVAP website */

:root {
    --primary-color: #1a3a5f;
    --secondary-color: #4da6ff;
    --accent-color: #ff6b35;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    padding-top: 67px; /* For fixed navbar */
    background-color: #f5f7fa;
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-weight: 700;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Navigation */
.custom-navbar {
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.custom-navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(26, 58, 95, 0.95);
}

.custom-navbar .container {
    padding-bottom: 12px;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary-color);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(26, 58, 95, 0.8), rgba(26, 58, 95, 0.8)), url('../images/products/chaudiere.webp') center/cover no-repeat;
    padding: 16px 0;
    display: flex;
    align-items: center;
}

/* Product Cards */
.product-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.product-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

/* Carousel */
.carousel-item {
    height: 400px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
    padding: 15px;
}

/* Contact Section */
.contact-info h5 {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-info .mailto a, 
.contact-info .tel a{
  color: #000;
  text-decoration: none;
}

/* Footer */
footer {
    background-color: var(--primary-color) !important;
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        text-align: center;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .carousel-item {
        height: 250px;
    }
    
    .product-card {
        margin-bottom: 20px;
    }
}

/* Button Styles */
.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #3a8cd9;
    border-color: #3a8cd9;
    /*transform: translateY(-2px);*/
}

.btn-outline-light:hover {
    color: var(--primary-color);
}

.btn.button-m {
    width: 240px;
    margin-bottom: 5px;
}

/* Product Grid Specific Styles */
.product-card .card-body {
    padding: 1.5rem;
}

.product-card .card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-card .card-text {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.product-card .card-body img {
    width: 100%;
}

.product-card .card-body .product-icon.rondimage img {
    overflow:hidden;
    -webkit-border-radius:50px;
    -moz-border-radius:50px;
    border-radius:50px;
    width:60px;
    height:60px;
}

/* Catalogue Page Specific Styles */
.famille-item {
    transition: transform 0.3s ease;
    margin-bottom: 30px;
}

.famille-item:hover {
    transform: translateY(-5px);
}

.famille-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.5rem;
    margin-top: 5px;
}

.product-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

.product-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #555;
    line-height: 1.4;
}

.product-list li:before {
    content: "•";
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Hero Section for Catalogue Page */
.catalogue-hero {
    background: linear-gradient(rgba(26, 58, 95, 0.9), rgba(26, 58, 95, 0.9)), url('../images/products/chaudiere.webp') center/cover no-repeat;
    color: white;
    padding: 80px 0;
    margin-bottom: 40px;
}

/* Family Number Styling */
.family-number {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
    margin-right: 10px;
}

/* Card Header Styling for Families */
.family-card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 20px;
    border-bottom: none;
}

.family-card-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

/* Alternating Card Colors */
.famille-item:nth-child(odd) .product-card {
    border-left: 4px solid var(--secondary-color);
}

.famille-item:nth-child(even) .product-card {
    border-left: 4px solid var(--accent-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
}

.back-to-top:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Print Styles */
@media print {
    .navbar, .hero-section, footer, .back-to-top {
        display: none;
    }
    
    body {
        padding-top: 0;
    }
    
    .product-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form Styles */
.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(77, 166, 255, 0.25);
}

/* Table Styles for Product Lists */
.product-table {
    width: 100%;
    border-collapse: collapse;
}

.product-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 12px;
    text-align: left;
}

.product-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

.product-table tr:hover {
    background-color: #f8f9fa;
}

/* Badge Styles */
.badge-primary {
    background-color: var(--secondary-color);
}

/* Alert Styles */
.alert-info {
    background-color: rgba(77, 166, 255, 0.1);
    border-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Text Selection */
::selection {
    background-color: var(--secondary-color);
    color: white;
}

/* Focus Styles for Accessibility */
a:focus, button:focus, .btn:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #0000ff;
        --accent-color: #ff4500;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #2d3748;
        --dark-color: #f7fafc;
    }
    
    body {
        background-color: #1a202c;
        color: var(--dark-color);
    }
    
    .product-card {
        background-color: #2d3748;
        color: var(--dark-color);
    }
    
    .card-text {
        color: #cbd5e0;
    }
}

/* Famille Cards Styles */
.famille-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.card-img-container {
    height: 200px;
    overflow: hidden;
}

.card-img-top {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.famille-card:hover .card-img-top {
    transform: scale(1.1);
}

.famille-card .card-body {
    padding: 1.5rem;
}

.famille-card .card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.product-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-item {
    display: inline-block;
    background-color: rgba(77, 166, 255, 0.1);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid rgba(77, 166, 255, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-img-container {
        height: 180px;
    }
    
    .famille-card .card-title {
        font-size: 1rem;
    }
    
    .product-item {
        font-size: 0.8rem;
    }
}

/*Politique de Confidentialité*/
.privacy-hero {
    background: linear-gradient(rgba(26, 58, 95, 0.8), rgba(26, 58, 95, 0.8)), url('../images/products/chaudiere.webp') center/cover no-repeat;
    color: white;
    padding: 100px 0 60px;
    margin-bottom: 40px;
}

.privacy-content {
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

.privacy-section {
    margin-bottom: 2rem;
}

.last-updated {
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #4da6ff;
    margin-top: 2rem;
}

/*Mentions Légales*/
.legal-hero {
    background: linear-gradient(rgba(26, 58, 95, 0.8), rgba(26, 58, 95, 0.8)), url('../images/products/chaudiere.webp') center/cover no-repeat;
    color: white;
    padding: 100px 0 60px;
    margin-bottom: 40px;
}

.legal-content {
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 2rem;
}

.company-info {
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #4da6ff;
}

/* Style pour l'effet hover */
.hover-effect:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.hover-effect .card {
    transition: box-shadow 0.3s ease;
}

.hover-effect:hover .card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #1a3a5f;
}

.famille-title.text-primary {
    color: #1a3a5f !important;
}

.hover-effect:hover .famille-title.text-primary {
    color: #0d6efd !important;
}

.text-decoration-none {
    display: block;
}