/* Modern Design System - Calendrier à GoGo */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
    /* Color Palette */
    --primary-color: #2563eb;
    /* Vibrant Blue */
    --primary-dark: #1e40af;
    --secondary-color: #0f172a;
    /* Dark Slate */
    --accent-color: #f59e0b;
    /* Amber */
    --background-color: #f8fafc;
    --surface-color: #ffffff;
    --text-color: #334155;
    --text-light: #64748b;
    --success-color: #10b981;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;

    /* Transitions */
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--secondary-color);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Header */
header {
    background-color: var(--surface-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-item {
    position: relative;
    padding: 1rem 0;
    /* Increase touch target and hover area */
}

.nav-links a.nav-link {
    font-weight: 500;
    color: var(--text-color);
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s;
    cursor: pointer;
}

.nav-links a.nav-link:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    min-width: 250px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    border: 1px solid #f1f5f9;
    z-index: 1000;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s;
    white-space: nowrap;
    text-align: left;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: var(--primary-color);
}

.nav-links a.btn-cta {
    background-color: var(--primary-color);
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    height: fit-content;
    text-decoration: none;
}

.nav-links a.btn-cta:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    color: white;
}

/* Premium In-Page CTA */
.btn-highlight {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
    margin-top: 1rem;
    letter-spacing: 0.02em;
}

.btn-highlight:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
    color: white;
}

.btn-highlight i {
    transition: transform 0.3s ease;
}

.btn-highlight:hover i {
    transform: translateX(4px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.6)), url('../images/carousel/Bandeau2.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    margin-bottom: var(--spacing-sm);
    /* Reduced margin */
}

/* Product Page Hero Variant */
.hero.product-hero {
    height: 40vh;
    min-height: 300px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-cta {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color) 0%, #d97706 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.5);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 30px -10px rgba(245, 158, 11, 0.6);
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

/* Features */
.features {
    padding: var(--spacing-xl) 0;
    background-color: var(--surface-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-card {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--background-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

/* Products Section */
.products {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 2.5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.product-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

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

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: var(--spacing-md);
}

.product-category {
    font-size: 0.875rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.product-price {
    font-size: 1.125rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Product Page Layout */
.page-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-sm);
    /* Reduced to minimize gap below hero */
}

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

/* Sidebar Styling */
.sidebar-block {
    background: var(--surface-color);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
    margin-bottom: var(--spacing-md);
}

.sidebar-block h4 {
    font-size: 1.2rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
}

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

/* Best Sellers Tiny List */
.small-product-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.small-product-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.small-product-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.small-product-item a {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Modern Tabs System */
.modern-tabs {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-top: var(--spacing-lg);
}

.tab-header {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.tab-btn {
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    flex: 1;
    text-align: center;
}

.tab-btn:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: white;
}

.tab-body {
    padding: var(--spacing-lg);
    position: relative;
    min-height: 300px;
}

.tab-pane {
    display: none;
    animation: fadeEffect 0.5s;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeEffect {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feature List (Icons + Text) */
.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    display: grid;
    gap: 0.75rem;
    /* Reduced gap between items */
}

.feature-item {
    display: flex;
    align-items: center;
    /* Center align vertically */
    justify-content: flex-start;
    /* Icons on the left */
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    transition: background 0.3s ease;
    border-bottom: 1px solid #f1f5f9;
    /* Subtle separator */
}

.feature-item:hover {
    background: #f8fafc;
}

.feature-icon {
    flex-shrink: 0;
    width: 32px;
    /* Smaller size */
    height: 32px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    /* Smaller icon font size */
    /* order removed to default to left */
}

.feature-text {
    flex: 1;
    /* Take up remaining space */
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
    /* order removed */
}

.feature-text strong {
    display: inline;
    /* Keep title inline with text if preferred, or block. User prompt implies simple text. Keeping block for structure but compacting margin. */
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-right: 0.5rem;
}

/* Profit Example Box inside Tabs */
.profit-example {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid #bbf7d0;
    margin-top: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.profit-example h4 {
    color: #166534;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profit-example h4::before {
    content: '\f155';
    /* FontAwesome Dollar/Euro sign-like */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* Related Products */
.related-products-section {
    margin-top: var(--spacing-xl);
}

.section-title {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    margin-bottom: var(--spacing-md);
    padding-bottom: 0.5rem;
}

/* Devis Page Specifics */
.devis-container {
    padding: var(--spacing-xl) var(--spacing-sm);
    max-width: 1000px;
    margin: 0 auto;
}

.point-relais-section,
.form-section {
    background: var(--surface-color);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-lg);
    border: 1px solid #e2e8f0;
}

.btn-select-relay {
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-select-relay:hover {
    background-color: #d97706;
    transform: translateY(-2px);
}

.relay-result {
    display: none;
    margin-top: var(--spacing-md);
    background-color: #ecfdf5;
    color: #065f46;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid #d1fae5;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-col h4 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.footer-col ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-col ul li a {
    color: #94a3b8;
}

.footer-col ul li a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface-color);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Legacy Content Compatibility */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

[class*="span"] {
    padding: 0 15px;
    box-sizing: border-box;
}

.span12 {
    width: 100%;
}

.span9 {
    width: 75%;
}

.span8 {
    width: 66.66%;
}

.span7 {
    width: 58.33%;
}

.span6 {
    width: 50%;
}

.span5 {
    width: 41.66%;
}

.span4 {
    width: 33.33%;
}

.span3 {
    width: 25%;
}

.span2 {
    width: 16.66%;
}

.span1 {
    width: 8.33%;
}

@media (max-width: 768px) {
    [class*="span"] {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Legacy Elements Styling */
.thumbnail {
    display: block;
    padding: 8px;
    line-height: 1.6;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background-color: #fff;
    margin-bottom: var(--spacing-md);
    height: 100%;
    /* Ensure full height */
}

.thumbnail img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.thumbnail:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.thumbnails {
    margin-left: -20px;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    /* Align items */
}

.thumbnails>li {
    margin-left: 20px;
    margin-bottom: 20px;
    /* Add bottom margin */
}

/* Address Styling (Product Details) */
address {
    font-style: normal;
    line-height: 2;
    /* Increased line height */
    background: #fff;
    /* White background for better contrast */
    padding: var(--spacing-lg);
    /* More padding */
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
}

address strong {
    color: var(--secondary-color);
    font-weight: 700;
    display: inline-block;
    min-width: 180px;
    /* Wider label */
    font-size: 1.05rem;
}

address span {
    color: var(--text-color);
    font-size: 1.05rem;
}

/* Tabs Styling */
.nav-tabs {
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: var(--spacing-md);
    display: flex;
    gap: 4px;
}

.nav-tabs>li>a {
    padding: 16px 32px;
    /* Larger tabs */
    border: none;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    display: block;
    background: #f1f5f9;
    color: var(--text-light);
    font-weight: 600;
    transition: var(--transition);
    font-size: 1.1rem;
}

.nav-tabs>li.active>a {
    color: var(--primary-color);
    background-color: #fff;
    border-bottom: 3px solid var(--primary-color);
    /* Thicker indicator */
    margin-bottom: -3px;
}

.tab-content {
    padding: var(--spacing-lg);
    /* More padding */
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-size: 1.1rem;
    /* Larger text */
    line-height: 1.8;
}

.tab-content>.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content>.active {
    display: block;
}

/* Product Card Link Wrapper */
.product-card-link {
    display: block;
    height: 100%;
}

.product-card-link:hover .product-card {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}


/* Table Styling */
.table {
    width: 100%;
    margin-bottom: var(--spacing-md);
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.table th,
.table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: var(--secondary-color);
}

.table-striped tbody>tr:nth-child(odd)>td {
    background-color: #f8fafc;
}

/* Typography Enhancements */
h4.title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

.hero h1 {
    font-size: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    address strong {
        display: block;
        min-width: auto;
        margin-bottom: 4px;
    }

    address span {
        display: block;
        margin-bottom: 12px;
    }
}

/* Contact Form Styling */
.contact-form {
    background: var(--surface-color);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group label .required {
    color: #ef4444;
    /* Red color for asterisk */
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    transition: var(--transition);
    background-color: #f8fafc;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background-color: #fff;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    accent-color: var(--primary-color);
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.radio-option span {
    font-size: 1rem;
    color: var(--text-color);
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: var(--spacing-md);
}

.btn-submit:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}