/* 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);
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
}

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

.nav-links a.btn-cta {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    height: fit-content;
}

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

/* 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;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.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 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;
}

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

.point-relais-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);
}