/* ========================
   Fonts
   ======================== */
@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/DM_Sans/DMSans-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/DM_Sans/DMSans-Italic-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* Variables CSS */
:root {
    --green: #215B6F;
    --dark-green: #13485A;
    --orange: #FF7F3E;
    --primary-color: #215B6F;
    --secondary-color: #13485A;
    --accent-color: #FF7F3E;
    --dark-color: #13485A;
    --light-color: #f9fafb;
}

/* Base */
* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.65;
    color: #333;
    background: white;
    overflow-x: hidden;
}

/* Typographie par défaut */
p {
    font-size: 16px;
}

div, a, li, td, th {
    font-size: 13px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.4;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

h5 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-bottom: 1px solid #e9ecef;
}

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

.navbar-light .navbar-nav .nav-link,
.navbar .navbar-nav .nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 15px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.navbar-toggler {
    border-color: var(--primary-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(33, 91, 111, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    background: white;
    padding: 120px 0 100px;
    position: relative;
}

/* Titres de section */
.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--orange));
    border-radius: 2px;
}

.text-center .section-title {
    display: inline-block;
}

/* Cartes */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    background: white;
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 15px 35px rgba(33, 91, 111, 0.2);
}

.card-img-top {
    transition: transform 0.4s ease;
    width: 60%;
    display: block;
    margin: 0 auto;
}

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

/* Boutons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 91, 111, 0.4);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-size: 15px;
}

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

.btn-warning, .btn-orange {
    background-color: var(--orange);
    border-color: var(--orange);
    color: white;
    font-size: 15px;
}

.btn-warning:hover, .btn-orange:hover {
    background-color: #e66a2e;
    border-color: #e66a2e;
    color: white;
}

/* Utilitaires de couleur */
.text-primary {
    color: var(--primary-color) !important;
}

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

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

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

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

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

/* Alertes */
.alert-success {
    background-color: rgba(33, 91, 111, 0.1);
    border-color: var(--primary-color);
    color: var(--dark-green);
    font-size: 15px;
}

.alert-primary {
    background-color: rgba(33, 91, 111, 0.1);
    border-color: var(--primary-color);
    color: var(--dark-green);
    font-size: 15px;
}

/* Footer */
footer {
    background: #2d3748;
    color: white;
    padding: 50px 0 20px;
}

.footer-link {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 15px;
}

.footer-link:hover {
    color: white;
}

/* Témoignages */
.testimonial-card {
    background: white;
    border-left: 4px solid var(--orange);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 120px;
    color: rgba(33, 91, 111, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

/* Logos clients */
.client-logo {
    max-height: 80px;
    max-width: 150px;
    object-fit: contain;
    transition: filter 0.3s;
}

/* Carrousel de logos clients */
.clients-carousel-wrapper {
    overflow: hidden;
    position: relative;
    padding: 40px 0;
    background: white;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.clients-carousel {
    display: flex;
    animation: scroll 30s linear infinite;
    gap: 60px;
    align-items: center;
}

.clients-carousel:hover {
    animation-play-state: paused;
}

.client-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    min-height: 140px;
    transition: transform 0.3s ease;
}

.client-item:hover {
    transform: scale(1.15);
}

.client-logo-carousel {
    height: 50px !important;
    max-height: 50px !important;
    width: auto !important;
    max-width: 120px !important;
    object-fit: contain;
    transition: all 0.3s ease;
}

.client-name-carousel {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-top: 8px;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2rem;
    min-width: 150px;
}

.client-logo-placeholder i {
    margin-bottom: 10px;
    opacity: 0.6;
}

.client-logo-placeholder span {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    p, span, div, a, li, td, th {
        font-size: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .clients-carousel {
        gap: 40px;
    }
    
    .client-item {
        padding: 15px 30px;
        min-height: 120px;
    }

    .client-logo-carousel {
        height: 40px !important;
        max-height: 40px !important;
        max-width: 100px !important;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 14px;
    }

    p, span, div, a, li, td, th {
        font-size: 14px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* ========================
   Products
   ======================== */
.products-hero {
    background: white;
}

.products-hero h1 {
    color: var(--dark-color);
}

.products-hero p {
    color: #666;
}

.product-img-wrapper {
    height: 140px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

.product-img-wrapper img {
    max-height: 55px;
    max-width: 85%;
    object-fit: contain;
}

/* Badge total clients */
.clients-total-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 12px;
    line-height: 1.2;
    z-index: 1;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.clients-total-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.clients-total-label {
    font-size: 0.8rem;
    color: #666;
}

.product-no-img {
    height: 120px;
    border-bottom: 1px solid #eee;
}

.home-product-img-wrapper {
    height: 140px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eee;
    padding: 12px;
}

.home-product-card {
    height: 320px;
    display: flex;
    flex-direction: column;
}

.home-product-card .card-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 0.65rem 0.85rem;
}

.home-product-card .card-footer {
    flex-shrink: 0;
}

.home-product-card .card-text {
    font-size: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.products-section .card-body {
    padding: 0.75rem 1rem;
}

.products-section .card-title {
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.products-section .card-text {
    font-size: 0.8rem;
}

.products-section .card-footer {
    padding: 0.5rem 1rem;
}

/* Product show page */
.product-show-hero {
    background: white;
}

.product-show-hero h1 {
    color: var(--dark-color);
}

.breadcrumb-link {
    color: var(--primary-color);
    text-decoration: none;
}

.product-show-img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    display: block;
    margin: 0 auto 1.5rem;
}

.product-show-no-img {
    height: 320px;
    margin-bottom: 1.5rem;
}

.product-show-right {
    padding-left: 2.5rem;
}

.reasons-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.25rem;
}

.reasons-accordion .accordion-button {
    font-weight: 600;
    font-size: 0.95rem;
}

.reasons-accordion .accordion-button:not(.collapsed) {
    color: var(--dark-color);
    background-color: #E4F3F8;
    box-shadow: none;
}

.reasons-accordion .accordion-button::after {
    filter: hue-rotate(100deg);
}

.reasons-accordion .accordion-body ul {
    margin: 0;
    padding-left: 1.2rem;
}

.reasons-accordion .accordion-body li {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.related-img-wrapper {
    height: 120px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eee;
}

.related-img-wrapper img {
    max-height: 95px;
    max-width: 85%;
    object-fit: contain;
}

