/* ===================================
   Variables & Reset
   =================================== */
:root {
    --primary-color: #084a8e;
    --secondary-color: #bfc7df;
    --dark-color: #333333;
    --white: #ffffff;
    --light-bg: #f8f9fb;
    --border-color: #e1e4e8;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0;
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.header-top {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a5ba8 100%);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.875rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.header-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.header-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.header-contact span,
.header-info span {
    white-space: nowrap;
}

.header-contact i {
    margin-right: 6px;
}

.navbar {
    padding: 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo img {
    height: 70px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 0 auto;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 0;
    position: relative;
}

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

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

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

/* Mega Menu */
.nav-item-mega {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: 1400px;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    margin-top: 20px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    z-index: 1100;
}

.nav-item-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
}

.mega-menu-content {
    display: flex;
    gap: 40px;
    padding: 40px;
}

.mega-menu-section {
    flex: 1;
}

.mega-menu-header {
    margin-bottom: 24px;
}

.mega-menu-header img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.mega-menu-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.mega-menu-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.mega-menu-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--dark-color);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.mega-menu-column ul li {
    margin-bottom: 8px;
}

.mega-menu-column ul li a {
    color: #666;
    font-size: 0.9rem;
    display: block;
    padding: 4px 0;
}

.mega-menu-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

/* Dropdown Menu */
.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    margin-top: 20px;
    min-width: 320px;
    z-index: 1100;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 10px;
}

.brands-dropdown {
    padding: 20px;
}

.brand-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    margin-bottom: 8px;
    text-decoration: none;
}

.brand-item:hover {
    background: var(--light-bg);
    transform: translateX(4px);
}

.brand-item img {
    height: 32px;
    width: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-name {
    font-weight: 500;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.dropdown-action {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-icon {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--dark-color);
    background: transparent;
    transition: var(--transition);
}

.nav-icon:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.nav-icon .badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary-color);
    color: var(--white);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Champ de recherche du menu (remplace l'ancienne loupe) */
.nav-search {
    display: flex;
    align-items: center;
    height: 44px;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    overflow: hidden;
    transition: var(--transition);
}

.nav-search:focus-within {
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(8, 74, 142, 0.1);
}

.nav-search-input {
    width: 210px;
    max-width: 30vw;
    border: none;
    background: transparent;
    padding: 0 6px 0 18px;
    font-size: 0.9rem;
    color: var(--dark-color);
    outline: none;
}

.nav-search-input::placeholder {
    color: #9aa3ad;
}

.nav-search-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin-right: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.nav-search-btn:hover {
    background: rgba(8, 74, 142, 0.1);
}

.nav-account {
    position: relative;
}

.account-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-weight: 500;
    width: auto;
    height: auto;
}

.account-btn span {
    font-size: 0.9rem;
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1100;
}

.nav-account:hover .account-dropdown {
    opacity: 1;
    visibility: visible;
}

.account-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--dark-color);
    font-size: 0.9rem;
    transition: var(--transition);
}

.account-dropdown a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.account-dropdown hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 8px 0;
}

.account-dropdown .logout {
    color: var(--danger);
}

/* ===================================
   Search Popup
   =================================== */
.search-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-popup.active {
    display: flex;
}

.search-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.search-popup-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    color: var(--dark-color);
    font-size: 1.2rem;
}

.search-close:hover {
    background: var(--danger);
    color: var(--white);
}

.search-box h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.search-input-wrapper i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.search-input-wrapper input {
    width: 100%;
    padding: 16px 20px 16px 56px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: var(--transition);
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(8, 74, 142, 0.1);
}

.search-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: var(--radius-md);
    background: var(--light-bg);
    color: var(--dark-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover {
    background: var(--secondary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
}

.search-result-item:hover {
    background: var(--light-bg);
}

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

.search-result-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.search-result-info p {
    font-size: 0.85rem;
    color: #666;
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    margin-top: -1px;
}

.heroSwiper {
    height: 600px;
}

.hero-slide {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-slide .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    flex: 1;
    color: var(--white);
    z-index: 2;
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-text {
    font-size: 1.25rem;
    margin-bottom: 32px;
    opacity: 0.95;
    max-width: 540px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-image {
    flex: 1;
    z-index: 2;
}

.hero-image img {
    border-radius: var(--radius-xl);
    /*box-shadow: var(--shadow-xl);*/
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.5rem;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.3);
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--white);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    width: 32px;
    border-radius: 6px;
}

/* ===================================
   Buttons
   =================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.btn-secondary:hover {
    background: #0a5ba8;
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-weight: 600;
    border: 2px solid var(--white);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

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

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-text:hover {
    gap: 12px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary-color);
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.btn-cart {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    transition: var(--transition);
}

.btn-cart:hover {
    background: #0a5ba8;
    transform: scale(1.05);
}

/* ===================================
   Univers Section
   =================================== */
.univers-section {
    padding: 80px 0;
}

.univers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.univers-card {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.univers-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.univers-card:hover .univers-bg {
    transform: scale(1.1);
}

.univers-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(8, 74, 142, 0.9) 0%, rgba(8, 74, 142, 0.7) 100%);
}

.univers-content {
    position: relative;
    z-index: 2;
    padding: 60px;
    color: var(--white);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.univers-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.univers-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.univers-content p {
    font-size: 1.1rem;
    margin-bottom: 32px;
    opacity: 0.95;
    max-width: 480px;
}

/* ===================================
   Products Section
   =================================== */
.products-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    overflow: hidden;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 12px;
    font-weight: 700;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

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

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

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 14px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.product-badge.promo {
    background: var(--danger);
}

.product-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: var(--light-bg);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 74, 142, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 24px;
    overflow: hidden;
}

.product-category {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.product-ref {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ===================================
   Quotes Section
   =================================== */
.quotes-section {
    padding: 80px 0;
}

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.quote-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
    overflow: hidden;
}

.quote-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.quote-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.quote-number {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-color);
    font-weight: 600;
}

.quote-number i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.quote-status {
    padding: 6px 14px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
}

.quote-status.pending {
    background: #fff3cd;
    color: #856404;
}

.quote-status.validated {
    background: #d4edda;
    color: #155724;
}

.quote-status.processing {
    background: #d1ecf1;
    color: #0c5460;
}

.quote-body {
    margin-bottom: 20px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.quote-body p {
    margin-bottom: 8px;
    color: #666;
    font-size: 0.95rem;
}

.quote-total {
    font-size: 1.05rem;
    color: var(--dark-color);
}

.quote-total strong {
    color: var(--primary-color);
}

/* ===================================
   News Section
   =================================== */
.news-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.news-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.news-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.news-date .month {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark-color);
    text-transform: uppercase;
}

.news-content {
    padding: 28px;
    overflow: hidden;
}

.news-category {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--dark-color);
    font-weight: 600;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.news-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===================================
   Brands Section
   =================================== */
.brands-section {
    padding: 80px 0;
}

.brands-carousel-wrapper {
    overflow: hidden;
    padding: 40px 0;
}

.brands-carousel {
    display: flex;
    animation: scroll 30s linear infinite;
}

.brand-slide {
    flex: 0 0 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0 20px;
}

.brand-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.brand-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

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

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

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--dark-color);
    color: var(--white);
}

.footer-main {
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 60px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-desc {
    color: var(--secondary-color);
    line-height: 1.8;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-4px);
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--secondary-color);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 8px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--secondary-color);
}

.footer-contact li i {
    color: var(--primary-color);
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom-content p {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.footer-payment {
    display: flex;
    gap: 16px;
    font-size: 1.8rem;
    color: var(--secondary-color);
}

/* ===================================
   Mobile Menu Toggle
   =================================== */
.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--light-bg);
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--dark-color);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(9px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-9px);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 40px;
    }

    /* Champ de recherche du menu plus compact pour ne pas serrer la navigation */
    .nav-search-input {
        width: 150px;
    }
}

@media (max-width: 992px) {
    /* General mobile text constraints */
    * {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Hide desktop menu */
    .nav-menu {
        position: fixed;
        top: 121px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 121px);
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        overflow-y: auto;
        overflow-x: hidden;
        transition: left 0.3s ease;
        z-index: 999;
        box-shadow: var(--shadow-xl);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link {
        display: flex;
        justify-content: space-between;
        padding: 16px 0;
        width: 100%;
    }

    /* Mega menu mobile */
    .mega-menu {
        position: static;
        width: auto;
        opacity: 1;
        visibility: visible;
        display: none;
        margin-top: 0;
        margin-left: -20px;
        margin-right: -20px;
        box-shadow: none;
        border-radius: 0;
        background: var(--light-bg);
        overflow-x: hidden;
    }

    .nav-item-mega.active .mega-menu {
        display: block !important;
    }

    .mega-menu .container {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }

    .mega-menu-content {
        display: flex !important;
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        visibility: visible !important;
    }

    .mega-menu-section {
        display: block !important;
        visibility: visible !important;
        background: var(--white);
        padding: 16px;
        border-radius: var(--radius-md);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .mega-menu-header {
        display: block !important;
        visibility: visible !important;
    }

    .mega-menu-header h3 {
        display: block !important;
        visibility: visible !important;
        color: var(--primary-color);
        font-size: 1.2rem;
        margin-bottom: 16px;
    }

    .mega-menu-header img {
        height: 120px;
        margin-bottom: 12px;
    }

    .mega-menu-columns {
        display: grid !important;
        visibility: visible !important;
        grid-template-columns: 1fr;
        gap: 16px;
        width: 100%;
    }

    .mega-menu-column {
        display: block !important;
        visibility: visible !important;
        width: 100%;
        max-width: 100%;
    }

    .mega-menu-column h4 {
        display: block !important;
        visibility: visible !important;
        color: var(--dark-color);
        margin-bottom: 12px;
    }

    .mega-menu-column ul {
        display: block !important;
        visibility: visible !important;
    }

    .mega-menu-column ul li {
        display: block !important;
        visibility: visible !important;
    }

    .mega-menu-column ul li a {
        display: block !important;
        visibility: visible !important;
        color: #666;
        padding: 8px 0;
    }

    .mega-menu-column ul li a:hover {
        color: var(--primary-color);
    }

    /* Dropdown mobile */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        display: none;
        margin-top: 0;
        margin-left: -20px;
        margin-right: -20px;
        box-shadow: none;
        width: auto;
        background: var(--light-bg);
    }

    .nav-item-dropdown.active .dropdown-menu {
        display: block;
    }

    .brands-dropdown {
        padding: 16px;
    }

    .brand-item {
        background: var(--white);
    }

    .brand-name {
        color: var(--dark-color);
    }

    .dropdown-action a {
        color: var(--white);
    }

    /* Nav actions */
    .nav-actions {
        gap: 12px;
    }

    .account-btn span {
        display: none;
    }

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

    .univers-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quotes-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Additional text overflow protection */
    h1, h2, h3, h4, h5, h6 {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .header-contact span {
        font-size: 0.8rem;
    }

    .header-info {
        font-size: 0.85rem;
    }

    .nav-wrapper {
        height: 82px;
    }

    .logo img {
        height: 60px;
    }

    .nav-menu {
        top: 111px;
        height: calc(100vh - 111px);
    }

    .hero-slide .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 576px) {
    .header-top {
        padding: 6px 0;
        font-size: 0.75rem;
    }

    .header-contact span:last-child {
        display: none;
    }

    .nav-actions {
        gap: 8px;
    }

    .nav-icon {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

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

/* ============================================================
   HEADER — refonte ergonomique & responsive (2024)
   ============================================================ */

/* ---- Header top ---- */
.header-top .container { gap: 12px; flex-wrap: wrap; }
.header-contact { display: flex; gap: 20px; flex-wrap: wrap; }
.header-contact a {
    color: var(--white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: .95;
}
.header-contact a:hover { opacity: 1; text-decoration: underline; }
.header-info span { display: inline-flex; align-items: center; gap: 6px; }

/* ---- Navbar ---- */
.nav-wrapper { height: 88px; gap: 20px; }
.nav-menu { gap: 32px; }
.nav-link .fa-chevron-down { font-size: .7rem; transition: var(--transition); }
.nav-item-mega:hover .nav-link .fa-chevron-down,
.nav-item-dropdown:hover .nav-link .fa-chevron-down { transform: rotate(180deg); }

/* Elements reserves au menu mobile */
.nav-mobile-only,
.nav-close-item { display: none; }

/* ---- Mega menu "Nos Univers" (pro) ---- */
.mega-menu { max-width: 960px; }
.mega-menu-content { display: flex; gap: 32px; padding: 32px 40px; }
.mega-menu-section { flex: 1; min-width: 0; }
.mega-universe {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}
.mega-universe-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a5ba8 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.mega-universe-titles h3 { font-size: 1.25rem; color: var(--dark-color); margin: 0 0 2px; }
.mega-see-all {
    font-size: .85rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.mega-see-all:hover { gap: 10px; }
.mega-family-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.mega-family-list li { margin: 0; }
.mega-family-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: .92rem;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
}
.mega-family-list a i { color: var(--primary-color); font-size: .72rem; transition: var(--transition); }
.mega-family-list a:hover { background: var(--light-bg); color: var(--primary-color); }
.mega-family-list a:hover i { transform: translateX(3px); }
.mega-menu-footer {
    border-top: 1px solid var(--border-color);
    padding: 16px 40px;
    background: var(--light-bg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.mega-menu-footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}
.mega-menu-footer a:hover { text-decoration: underline; }

/* ---- Menu deroulant "Marques" (dynamique) ---- */
.dropdown-menu { min-width: 380px; }
.brands-dropdown-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.brand-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--white);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
}
.brand-chip img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-chip:hover { border-color: var(--primary-color); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.brand-chip.no-logo { font-size: .72rem; font-weight: 700; color: var(--primary-color); text-align: center; line-height: 1.15; }
.brands-empty-hint { color: #888; font-size: .9rem; text-align: center; padding: 12px 0; }
.btn-see-brands {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}
.btn-see-brands:hover { gap: 12px; }

/* ---- Overlay du menu mobile ---- */
.nav-overlay { display: none; }

/* ============================================================
   Responsive - tablette & mobile (<= 992px)
   ============================================================ */
@media (max-width: 992px) {

    /* Tiroir off-canvas depuis la droite (independant de la hauteur du header) */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        left: auto;
        width: min(86%, 360px);
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 16px 20px 40px;
        overflow-y: auto;
        transition: right .3s ease;
        box-shadow: -10px 0 40px rgba(0, 0, 0, .18);
        z-index: 1300;
    }
    .nav-menu.active { right: 0; left: auto; }
    .nav-menu > li { width: 100%; border-bottom: 1px solid var(--border-color); }

    .nav-mobile-only { display: block; }
    .nav-mobile-only .nav-link { justify-content: flex-start; gap: 10px; }
    .nav-logout { color: var(--danger); }

    /* Bouton de fermeture dans le tiroir */
    .nav-close-item { display: flex; justify-content: flex-end; border-bottom: none !important; }
    .nav-menu-close {
        background: none;
        border: none;
        cursor: pointer;
        font-size: 1.4rem;
        color: var(--dark-color);
        padding: 4px 8px;
        line-height: 1;
    }

    /* Fond sombre */
    /* Sous le header (z-index 1000) : le tiroir .nav-menu, situé dans le header,
       doit rester au-dessus du fond sombre (contexte d'empilement du sticky header) */
    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .5);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 995;
    }
    .nav-overlay.active { opacity: 1; visibility: visible; }

    /* Mega menu & dropdown -> accordeons dans le tiroir */
    .mega-menu,
    .dropdown-menu {
        position: static;
        width: auto;
        max-width: 100%;
        opacity: 1;
        visibility: visible;
        display: none;
        margin: 8px 0 0;
        box-shadow: none;
        border-radius: var(--radius-md);
        background: var(--light-bg);
    }
    .nav-item-mega.active .mega-menu,
    .nav-item-dropdown.active .dropdown-menu { display: block; }
    .mega-menu .container { padding: 0; max-width: 100%; }
    .mega-menu-content { flex-direction: column; padding: 12px; gap: 12px; }
    .mega-menu-section { background: var(--white); border-radius: var(--radius-md); padding: 14px; }
    .mega-universe { margin-bottom: 12px; padding-bottom: 12px; }
    .mega-universe-icon { width: 44px; height: 44px; font-size: 1.2rem; }
    .mega-universe-titles h3 { font-size: 1.1rem; }
    .mega-family-list { grid-template-columns: 1fr; gap: 0; }
    .mega-menu-footer { padding: 12px; border-radius: var(--radius-md); }
    .brands-dropdown-grid { grid-template-columns: repeat(3, 1fr); }

    /* Actions : on garde panier + hamburger, le reste passe dans le tiroir */
    .nav-actions { gap: 8px; }
    .nav-actions .nav-icon:not(.cart-btn) { display: none; }
    .nav-search { display: none; }
    .nav-account { display: none; }
    .mobile-menu-toggle { display: flex; }

    .nav-item-mega.active .nav-link .fa-chevron-down,
    .nav-item-dropdown.active .nav-link .fa-chevron-down { transform: rotate(180deg); }
}

/* Petits mobiles : bandeau de contact allege */
@media (max-width: 576px) {
    .header-contact a:nth-child(2) { display: none; }
    .header-info { display: none; }
    .nav-wrapper { height: 76px; }
    .logo img { height: 60px; }
    .brands-dropdown-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   HEADER — refonte 2026 (pro, ergonomique, fluide)
   ============================================================ */

/* ---- Bandeau haut ---- */
.header-pro-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 3px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

/* Header compact au scroll */
.header.scrolled .nav-wrapper { height: 64px; }
.header.scrolled .logo img { height: 38px; }
.nav-wrapper, .logo img { transition: height 0.25s ease; }

/* ---- Mega menu "Nos Univers" ---- */
.mega-menu { max-width: 1040px; border-top: 3px solid var(--primary-color); }
.mega-menu-content { gap: 24px; padding: 28px 32px; }

.mega-menu-section {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0 0 14px;
    overflow: hidden;
    transition: var(--transition);
}

.mega-menu-section:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

/* En-tête d'univers cliquable */
.mega-universe {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 12px;
    padding: 16px 18px;
    border-bottom: none;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a5ba8 100%);
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.mega-menu-section.univ-sani .mega-universe {
    background: linear-gradient(135deg, #0a5ba8 0%, #0d7bc4 100%);
}

.mega-universe-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.mega-universe-titles {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.mega-universe-titles strong {
    font-size: 1.1rem;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.mega-universe-titles small {
    font-size: 0.78rem;
    opacity: 0.85;
}

.mega-universe-arrow {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: var(--transition);
}

.mega-universe:hover .mega-universe-arrow {
    background: var(--white);
    color: var(--primary-color);
    transform: translateX(3px);
}

/* Familles */
.mega-family-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px 12px;
    list-style: none;
    margin: 0;
    padding: 0 12px;
}

.mega-family-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #555;
    font-size: 0.88rem;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
    min-width: 0;
}

.mega-family-name {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mega-family-name i { color: var(--primary-color); font-size: 0.7rem; transition: var(--transition); }

.mega-family-count {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(8, 74, 142, 0.08);
    padding: 1px 8px;
    border-radius: 999px;
}

.mega-family-list a:hover { background: var(--white); color: var(--primary-color); box-shadow: var(--shadow-sm); }
.mega-family-list a:hover .mega-family-name i { transform: translateX(3px); }

.mega-more-families {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px 22px 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.mega-more-families:hover { gap: 12px; }

/* Pied du mega menu : liens rapides */
.mega-menu-footer {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.mega-menu-footer a { font-size: 0.9rem; }

/* ---- Menu "Marques" : logo + nom ---- */
.dropdown-menu { min-width: 520px; border-top: 3px solid var(--primary-color); }
.brands-dropdown-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.brand-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: auto;
    padding: 12px 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--white);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
}

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

.brand-chip-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 100%;
}

.brand-chip-logo img { max-width: 92px; max-height: 40px; object-fit: contain; }

.brand-chip-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a5ba8 100%);
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
}

.brand-chip-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark-color);
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-chip:hover .brand-chip-name { color: var(--primary-color); }

/* Responsive du mega menu 2026 */
@media (max-width: 992px) {
    .mega-menu-section { padding: 0 0 12px; }
    .mega-universe { border-radius: var(--radius-md) var(--radius-md) 0 0; }
    .mega-family-list { grid-template-columns: 1fr; }
    .dropdown-menu { min-width: 0; }
    .mega-menu-footer { gap: 16px; }
}

/* ============================================================
   ACCUEIL — refonte 2026
   ============================================================ */

/* ---- En-têtes de section ---- */
.section-head2 {
    max-width: 720px;
    margin: 0 auto 44px;
    text-align: center;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    background: rgba(8, 74, 142, 0.08);
    padding: 5px 16px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.section-head2 h2 {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--dark-color);
    line-height: 1.2;
    margin-bottom: 10px;
}

.section-head2 p {
    font-size: 1.02rem;
    color: #667085;
    margin: 0;
}

.section-head2-split {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    text-align: left;
}

.section-head2-split h2 { margin-bottom: 6px; }
.section-head2-split .hbtn { flex-shrink: 0; }

/* ---- Boutons ---- */
.hbtn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.hbtn i { transition: var(--transition); }
.hbtn:hover i { transform: translateX(3px); }

.hbtn-light {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.hbtn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.hbtn-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(6px);
}

.hbtn-ghost:hover { background: rgba(255, 255, 255, 0.22); border-color: var(--white); }

.hbtn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a5ba8 100%);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

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

/* ---- Hero slider ---- */
.home-hero .heroSwiper { height: 560px; }

.hslide {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
}

.hslide-elec1 { background: linear-gradient(130deg, #05315f 0%, var(--primary-color) 55%, #0a5ba8 100%); }
.hslide-elec2 { background: linear-gradient(130deg, #1a2740 0%, #084a8e 60%, #0d7bc4 100%); }
.hslide-sani  { background: linear-gradient(130deg, #063a5e 0%, #0a5ba8 55%, #0d7bc4 100%); }
.hslide-chauf { background: linear-gradient(130deg, #3a1f0a 0%, #7a3d0e 45%, #d97b29 110%); }

/* Halo décoratif */
.hslide-deco {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 25%, rgba(255, 255, 255, 0.14) 0%, transparent 32%),
        radial-gradient(circle at 12% 88%, rgba(255, 255, 255, 0.08) 0%, transparent 30%);
    pointer-events: none;
}

.hslide-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hslide-content { max-width: 640px; }

.hslide-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 22px;
}

.hslide-title {
    font-size: 3.1rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.hslide-text {
    font-size: 1.12rem;
    line-height: 1.65;
    opacity: 0.92;
    max-width: 520px;
    margin-bottom: 30px;
}

.hslide-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Visuel décoratif animé */
.hslide-visual {
    position: relative;
    width: 320px;
    height: 320px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hslide-icon-main {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    animation: hslidePulse 4s ease-in-out infinite;
}

@keyframes hslidePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.18); }
    50% { box-shadow: 0 0 0 34px rgba(255, 255, 255, 0); }
}

.hslide-float {
    position: absolute;
    width: 62px;
    height: 62px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--white);
    backdrop-filter: blur(6px);
    animation: hslideFloat 5s ease-in-out infinite;
}

.hslide-float.f1 { top: 8%; left: 0; animation-delay: 0s; }
.hslide-float.f2 { bottom: 12%; left: 8%; animation-delay: 1.4s; }
.hslide-float.f3 { top: 22%; right: 0; animation-delay: 2.6s; }

@keyframes hslideFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* Navigation du slider */
.home-hero .swiper-pagination { bottom: 22px !important; }

/* ---- Univers ---- */
.home-univers { padding: 84px 0 40px; }

.univers2-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.univers2-card {
    position: relative;
    display: block;
    border-radius: var(--radius-xl);
    padding: 46px 42px;
    min-height: 360px;
    color: var(--white);
    overflow: hidden;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.univers2-elec { background: linear-gradient(135deg, #05315f 0%, var(--primary-color) 55%, #0a5ba8 100%); }
.univers2-sani { background: linear-gradient(135deg, #063a5e 0%, #0a5ba8 50%, #0d7bc4 100%); }

.univers2-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }

.univers2-watermark {
    position: absolute;
    right: -30px;
    bottom: -46px;
    font-size: 15rem;
    opacity: 0.08;
    transform: rotate(-12deg);
    transition: var(--transition);
    pointer-events: none;
    line-height: 1;
}

.univers2-card:hover .univers2-watermark { opacity: 0.14; transform: rotate(-6deg) scale(1.06); }

.univers2-content { position: relative; z-index: 2; max-width: 480px; }

.univers2-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 1.7rem;
    margin-bottom: 20px;
    backdrop-filter: blur(6px);
}

.univers2-card h3 {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.univers2-card p {
    font-size: 0.98rem;
    line-height: 1.6;
    opacity: 0.92;
    margin-bottom: 20px;
}

.univers2-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
}

.univers2-chip {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.univers2-chip-more { background: var(--white); color: var(--primary-color); }

.univers2-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.95rem;
}

.univers2-cta i { transition: var(--transition); }
.univers2-card:hover .univers2-cta i { transform: translateX(5px); }

/* ---- Produits (palmarès + mis en avant) ---- */
.home-products { padding: 44px 0; }
.home-products.home-palmares { background: var(--light-bg); padding: 72px 0; margin-top: 44px; }

.pgrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.pcard {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.pcard:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(8, 74, 142, 0.35);
}

.pcard-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a5ba8 100%);
    color: var(--white);
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: var(--shadow-sm);
}

.pcard-badge-rank { background: linear-gradient(135deg, #b8860b 0%, #e8b429 100%); }

.pcard-media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 215px;
    padding: 18px;
    background: var(--white);
    border-bottom: 1px solid var(--light-bg);
}

.pcard-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.pcard:hover .pcard-media img { transform: scale(1.06); }

.pcard-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 20px 20px;
}

.pcard-cat {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.pcard-name {
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.pcard-name a { color: var(--dark-color); text-decoration: none; }
.pcard-name a:hover { color: var(--primary-color); }

.pcard-ref { font-size: 0.78rem; color: #98a2b3; margin-bottom: 14px; }

.pcard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.pcard-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary-color);
}

.pcard-price-ask { font-size: 0.85rem; font-weight: 600; color: #98a2b3; }

.pcard .btn-cart {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
}

/* ---- Derniers devis ---- */
.home-devis { padding: 72px 0; background: linear-gradient(180deg, var(--white) 0%, var(--light-bg) 100%); }

.devis-home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.devis-home-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
}

.devis-home-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.devis-home-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.devis-home-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    background: rgba(8, 74, 142, 0.08);
    color: var(--primary-color);
    font-size: 1.1rem;
}

.devis-home-num { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.devis-home-num strong { font-size: 0.98rem; line-height: 1.3; }
.devis-home-num small { font-size: 0.78rem; color: #98a2b3; }
.devis-home-num small i { margin-right: 4px; }

.devis-home-etat {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(8, 74, 142, 0.08);
    color: var(--primary-color);
    white-space: nowrap;
}

.devis-home-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--light-bg);
    border-bottom: 1px solid var(--light-bg);
}

.devis-home-lignes { font-size: 0.85rem; color: #667085; }
.devis-home-lignes i { color: var(--primary-color); margin-right: 6px; }

.devis-home-totaux {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.8rem;
    color: #98a2b3;
}

.devis-home-totaux strong { color: var(--dark-color); font-size: 0.9rem; margin-left: 6px; }
.devis-home-totaux .ttc strong { color: var(--primary-color); font-size: 1.05rem; font-weight: 800; }

.devis-home-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary-color);
}

.devis-home-cta i { transition: var(--transition); }
.devis-home-card:hover .devis-home-cta i { transform: translateX(5px); }

/* ---- Actualités ---- */
.home-news { padding: 72px 0; }

/* 3 actualités par ligne, lecture de gauche à droite : les suivantes
   reprennent à gauche, sous la première. `align-items: start` laisse à
   chaque carte la hauteur naturelle de son visuel (aucun rognage). */
.news2-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: 24px;
}

.news2-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

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

.news2-media {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    /* Visible uniquement en cas de letterbox sur un visuel hors normes */
    background: var(--light-bg);
}

.news2-media img {
    display: block;
    width: 100%;
    height: auto;        /* conserve le ratio d'origine : aucun rognage */
    max-height: 680px;   /* garde-fou pour les visuels très allongés */
    object-fit: contain; /* si le garde-fou s'applique, on réduit sans couper */
    transition: transform 0.5s ease;
}

.news2-card:hover .news2-media img { transform: scale(1.07); }

.news2-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 5px 13px;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}

.news2-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 22px 22px;
}

.news2-meta { font-size: 0.78rem; color: #98a2b3; margin-bottom: 8px; }
.news2-meta i { margin-right: 6px; }

.news2-body h3 {
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.news2-featured .news2-body h3 { font-size: 1.35rem; }

.news2-body p {
    font-size: 0.9rem;
    color: #667085;
    line-height: 1.6;
    margin-bottom: 14px;
}

.news2-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary-color);
}

.news2-more i { transition: var(--transition); }
.news2-card:hover .news2-more i { transform: translateX(5px); }

/* ---- Empilement (activé par JS) ----
   Chaque carte remonte directement sous celle du dessus, sans attendre
   la plus haute de la ligne. L'ordre de lecture reste 1,2,3 puis 4,5,6. */
.news2-grid.is-masonry {
    display: block;
}

.news2-cols {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.news2-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1 1 0;
    min-width: 0;
}

.news2-grid.is-masonry .news2-cta {
    margin-top: 24px;
}

/* ---- « Plus d'actualités » : occupe toute la largeur de la ligne ---- */
.news2-cta {
    grid-column: 1 / -1;
    background: var(--light-bg);
    border-style: dashed;
}

.news2-cta .news2-body {
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.news2-cta .news2-more {
    margin-top: 0;
    font-size: 1rem;
}

.news2-cta:hover {
    transform: none;
    background: var(--white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

/* ---- Article seul (page Actualités : ?news=X) ----
   Hors masonry : mise en page lisible en pleine largeur. */
.news2-single {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.news2-single-media {
    position: relative;
    background: var(--light-bg);
}

.news2-single-media img {
    display: block;
    width: 100%;
    height: auto;        /* ratio conservé, jamais rogné */
    max-height: 560px;
    object-fit: contain;
}

.news2-single-body { padding: 28px 32px 32px; }

.news2-single-body h1 {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--dark-color);
    margin: 0 0 14px 0;
}

.news2-single-body p { font-size: 1rem; color: #475467; line-height: 1.7; }

.news2-single-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.news2-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.news2-back:hover { text-decoration: underline; }
.news2-back i { transition: var(--transition); }
.news2-back:hover i { transform: translateX(-4px); }

@media (max-width: 576px) {
    .news2-single-body { padding: 22px 18px 26px; }
    .news2-single-body h1 { font-size: 1.45rem; }
}

/* ---- Marques (défilement) ---- */
.home-brands { padding: 72px 0 84px; background: var(--light-bg); }

.brands-marquee {
    overflow: hidden;
    margin-top: 8px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.brands-track {
    display: flex;
    gap: 20px;
    width: max-content;
    padding: 10px 0;
    animation: brandsScroll 40s linear infinite;
}

.brands-marquee:hover .brands-track { animation-play-state: paused; }

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

.bslide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 190px;
    padding: 20px 14px 16px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

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

.bslide-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    width: 100%;
}

.bslide-logo img {
    max-width: 120px;
    max-height: 52px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.75;
    transition: var(--transition);
}

.bslide:hover .bslide-logo img { filter: grayscale(0); opacity: 1; }

.bslide-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a5ba8 100%);
    color: var(--white);
    font-weight: 800;
    font-size: 1.05rem;
}

.bslide-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark-color);
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bslide:hover .bslide-name { color: var(--primary-color); }

/* ---- Responsive accueil ---- */
@media (max-width: 1200px) {
    .pgrid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .home-hero .heroSwiper { height: 520px; }
    .hslide-visual { display: none; }
    .hslide-title { font-size: 2.3rem; }
    .univers2-grid { grid-template-columns: 1fr; }
    .pgrid { grid-template-columns: repeat(2, 1fr); }
    .devis-home-grid { grid-template-columns: 1fr; }
    .news2-grid { grid-template-columns: repeat(2, 1fr); }
    .section-head2-split { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 576px) {
    .home-hero .heroSwiper { height: 540px; }
    .hslide-title { font-size: 1.75rem; }
    .hslide-text { font-size: 1rem; }
    .section-head2 h2 { font-size: 1.7rem; }
    .pgrid { grid-template-columns: 1fr; }
    .news2-grid { grid-template-columns: 1fr; }
    .univers2-card { padding: 32px 24px; min-height: 0; }
    .home-univers { padding: 56px 0 24px; }
    .home-devis, .home-news, .home-brands { padding: 52px 0; }
    .home-products.home-palmares { padding: 52px 0; }
}

/* ============================================================
   FOOTER — refonte 2026
   ============================================================ */
.footer { background: #1c2530; color: var(--white); }

/* Bandeau de réassurance */
.footer-reassurance {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a5ba8 100%);
    padding: 26px 0;
}

.footer-reassurance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.footer-reassurance-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-reassurance-item > i {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.14);
}

.footer-reassurance-item strong { display: block; font-size: 0.92rem; line-height: 1.3; }
.footer-reassurance-item span { display: block; font-size: 0.78rem; opacity: 0.85; line-height: 1.35; }

/* Corps du footer */
.footer-main { padding: 60px 0 44px; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1.1fr 1fr 1fr 1.1fr;
    gap: 44px;
}

.footer-logo img { height: 46px; margin-bottom: 18px; }

.footer-desc {
    color: #9aa7b5;
    font-size: 0.9rem;
    line-height: 1.75;
    margin-bottom: 20px;
}

.footer-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact-btn:hover { background: var(--primary-color); border-color: var(--primary-color); color: var(--white); padding-left: 26px; }

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary-color), #0d7bc4);
}

.footer-col ul li { margin-bottom: 11px; }

.footer-col ul li a {
    color: #9aa7b5;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-col ul li a i { color: var(--primary-color); font-size: 0.8rem; width: 16px; text-align: center; }

.footer-col ul li a:hover { color: var(--white); padding-left: 6px; }

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    color: #9aa7b5;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-contact li i {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-top: 0;
}

.footer-contact li a { color: #9aa7b5; text-decoration: none; align-self: center; }
.footer-contact li a:hover { color: var(--white); }
.footer-contact li span { align-self: center; }

/* Barre du bas */
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 20px 0; background: rgba(0, 0, 0, 0.18); }

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-bottom-content p { color: #9aa7b5; font-size: 0.85rem; margin: 0; }

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #566373;
    font-size: 0.85rem;
}

.footer-bottom-links a { color: #9aa7b5; text-decoration: none; }
.footer-bottom-links a:hover { color: var(--white); }

/* Responsive footer */
@media (max-width: 1200px) {
    .footer-reassurance-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 36px; }
    .footer-col-brand { grid-column: 1 / -1; max-width: 520px; }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .footer-main { padding: 44px 0 32px; }
}

@media (max-width: 576px) {
    .footer-reassurance-grid { grid-template-columns: 1fr; gap: 16px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-content { justify-content: center; text-align: center; }
}

/* ============================================================
   MENU MOBILE — tiroir dédié (#mobileDrawer)
   Indépendant du menu desktop, placé hors du header
   ============================================================ */

/* Caché sur desktop */
.mobile-drawer { display: none; }

@media (max-width: 992px) {

    /* Le menu desktop disparaît totalement en mobile : le tiroir prend le relais */
    .nav-menu { display: none !important; }

    /* Fond sombre au-dessus du header (le tiroir est hors du header, donc au-dessus) */
    .nav-overlay { z-index: 1290; }

    /* ---- Tiroir ---- */
    .mobile-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: min(88%, 380px);
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        z-index: 1300;
        transform: translateX(105%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -12px 0 40px rgba(0, 0, 0, 0.2);
    }

    .mobile-drawer.active { transform: translateX(0); }

    /* ---- En-tête du tiroir ---- */
    .mdrawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 18px;
        border-bottom: 1px solid var(--border-color);
        flex-shrink: 0;
    }

    .mdrawer-head img { height: 34px; width: auto; }

    .mdrawer-close {
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: var(--light-bg);
        color: var(--dark-color);
        font-size: 1.05rem;
    }

    .mdrawer-close:active { background: var(--border-color); }

    /* ---- Corps scrollable (vertical uniquement) ---- */
    .mdrawer-body {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 10px 14px 24px;
        min-width: 0;
    }

    /* Liens simples : cibles tactiles confortables */
    .mdrawer-link {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px 12px;
        border-radius: var(--radius-md);
        color: var(--dark-color);
        font-size: 0.98rem;
        font-weight: 500;
        text-decoration: none;
        transition: background 0.2s ease;
    }

    .mdrawer-link:active { background: var(--light-bg); }

    .mdrawer-link > i {
        width: 22px;
        text-align: center;
        color: var(--primary-color);
        font-size: 1rem;
    }

    .mdrawer-logout { color: var(--danger); }
    .mdrawer-logout > i { color: var(--danger); }

    /* Champ de recherche du tiroir (remplace le lien "Rechercher un produit") */
    .mdrawer-search {
        display: flex;
        align-items: center;
        gap: 6px;
        margin: 6px 0 8px;
        padding: 4px 4px 4px 16px;
        background: var(--light-bg);
        border: 1px solid var(--border-color);
        border-radius: 999px;
        transition: border-color 0.2s ease, background 0.2s ease;
    }

    .mdrawer-search:focus-within {
        border-color: var(--primary-color);
        background: var(--white);
    }

    .mdrawer-search-input {
        flex: 1;
        min-width: 0;
        border: none;
        background: transparent;
        padding: 10px 0;
        font-size: 0.95rem;
        color: var(--dark-color);
        outline: none;
    }

    .mdrawer-search-input::placeholder {
        color: #9aa3ad;
    }

    .mdrawer-search-btn {
        flex-shrink: 0;
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        border-radius: 50%;
        background: var(--primary-color);
        color: var(--white);
        font-size: 1rem;
        cursor: pointer;
        transition: background 0.2s ease;
    }

    .mdrawer-search-btn:active {
        background: #0a5ba8;
    }

    .mdrawer-cart-count {
        margin-left: auto;
        min-width: 24px;
        height: 24px;
        padding: 0 7px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: var(--primary-color);
        color: var(--white);
        font-size: 0.75rem;
        font-weight: 700;
    }

    .mdrawer-sep {
        height: 1px;
        background: var(--border-color);
        margin: 10px 4px;
    }

    .mdrawer-title {
        padding: 6px 12px 4px;
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #98a2b3;
    }

    /* ---- Accordéons (Nos Univers / Marques) ---- */
    .mdrawer-accordion {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        padding: 14px 12px;
        border-radius: var(--radius-md);
        color: var(--dark-color);
        font-size: 0.98rem;
        font-weight: 600;
        text-align: left;
    }

    .mdrawer-accordion:active { background: var(--light-bg); }

    .mdrawer-accordion > span {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .mdrawer-accordion > span > i {
        width: 22px;
        text-align: center;
        color: var(--primary-color);
        font-size: 1rem;
    }

    .mdrawer-chevron { font-size: 0.8rem; color: #98a2b3; transition: transform 0.25s ease; }
    .mdrawer-accordion.open { color: var(--primary-color); }
    .mdrawer-accordion.open .mdrawer-chevron { transform: rotate(180deg); color: var(--primary-color); }

    .mdrawer-panel {
        display: none;
        padding: 4px 2px 10px;
    }

    .mdrawer-panel.open {
        display: block;
        animation: mdrawerPanelIn 0.25s ease;
    }

    @keyframes mdrawerPanelIn {
        from { opacity: 0; transform: translateY(-6px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .mdrawer-panel-more {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
        padding: 12px;
        border-radius: var(--radius-md);
        background: rgba(8, 74, 142, 0.06);
        color: var(--primary-color);
        font-size: 0.9rem;
        font-weight: 600;
        text-decoration: none;
    }

    /* ---- Univers dans le tiroir ---- */
    .mdrawer-univ {
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        overflow: hidden;
        margin-bottom: 10px;
        background: var(--white);
    }

    .mdrawer-univ-head {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        background: linear-gradient(135deg, var(--primary-color) 0%, #0a5ba8 100%);
        color: var(--white);
        text-decoration: none;
    }

    .mdrawer-univ.univ-sani .mdrawer-univ-head {
        background: linear-gradient(135deg, #0a5ba8 0%, #0d7bc4 100%);
    }

    .mdrawer-univ-icon {
        width: 34px;
        height: 34px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.16);
        font-size: 0.95rem;
    }

    .mdrawer-univ-head strong {
        flex: 1;
        font-size: 0.92rem;
        line-height: 1.25;
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }

    .mdrawer-univ-head > i { font-size: 0.8rem; opacity: 0.85; }

    .mdrawer-univ-familles {
        display: flex;
        flex-direction: column;
        padding: 6px 8px;
    }

    .mdrawer-univ-familles a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 11px 10px;
        border-radius: var(--radius-sm);
        color: #555;
        font-size: 0.9rem;
        text-decoration: none;
    }

    .mdrawer-univ-familles a:active { background: var(--light-bg); }
    .mdrawer-univ-familles a i { color: var(--primary-color); font-size: 0.72rem; }

    .mdrawer-univ-more { color: var(--primary-color) !important; font-weight: 600; }

    /* ---- Marques dans le tiroir : 2 colonnes, sans débordement horizontal ---- */
    .mdrawer-brands {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 2px;
    }

    .mdrawer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 10px 6px 8px;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        background: var(--white);
        text-decoration: none;
    }

    .mdrawer-brand:active { border-color: var(--primary-color); background: var(--light-bg); }

    .mdrawer-brand-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 32px;
        width: 100%;
    }

    .mdrawer-brand-logo img { max-width: 70px; max-height: 32px; object-fit: contain; }

    .mdrawer-brand-initials {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary-color) 0%, #0a5ba8 100%);
        color: var(--white);
        font-weight: 700;
        font-size: 0.8rem;
    }

    .mdrawer-brand-name {
        font-size: 0.68rem;
        font-weight: 600;
        color: var(--dark-color);
        text-align: center;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* ---- Pied du tiroir ---- */
    .mdrawer-foot {
        flex-shrink: 0;
        padding: 12px 18px;
        border-top: 1px solid var(--border-color);
        background: var(--light-bg);
    }

    .mdrawer-foot a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        color: var(--primary-color);
        font-weight: 700;
        font-size: 0.95rem;
        text-decoration: none;
    }
}

/* ============================================================
   OVERLAY DE CHARGEMENT RECHERCHE
   Le logo se révèle progressivement de gauche à droite
   ============================================================ */
.search-loader {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.search-loader.active {
    opacity: 1;
    visibility: visible;
}

.search-loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 420px;
    text-align: center;
}

/* --- Logo : révélation gauche → droite --- */
.search-loader-logo {
    position: relative;
    height: 84px;
    max-width: 100%;
}

.search-loader-logo img {
    height: 100%;
    width: auto;
    max-width: none;
    display: block;
}

/* Calque "fantôme" (logo grisé, base sur laquelle se fait la révélation) */
.search-loader-logo-base {
    opacity: 0.16;
    filter: grayscale(1);
}

/* Calque révélé : largeur animée de 0 → 100 %, image épinglée à gauche */
.search-loader-logo-reveal {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    overflow: hidden;
    animation: searchLoaderReveal 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* L'image conserve sa taille réelle (ne se déforme pas quand le calque s'élargit) */
.search-loader-logo-reveal img {
    max-width: none;
}

@keyframes searchLoaderReveal {
    0%   { width: 0;    opacity: 1; }
    65%  { width: 100%; opacity: 1; }
    88%  { width: 100%; opacity: 1; }
    100% { width: 100%; opacity: 0; }
}

/* --- Barre de progression indéterminée --- */
.search-loader-bar {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 6px;
    border-radius: 999px;
    background: rgba(8, 74, 142, 0.12);
    overflow: hidden;
}

.search-loader-bar span {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), #0a5ba8);
    animation: searchLoaderBar 1.3s ease-in-out infinite;
}

@keyframes searchLoaderBar {
    0%   { left: -40%; width: 40%; }
    50%  { left: 30%;  width: 55%; }
    100% { left: 100%; width: 40%; }
}

.search-loader-text {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.02em;
}

/* --- Adaptation mobile --- */
@media (max-width: 768px) {
    .search-loader-logo { height: 64px; }
    .search-loader-inner { gap: 20px; max-width: 90vw; }
}

@media (max-width: 576px) {
    .search-loader-logo { height: 52px; }
    .search-loader-bar { max-width: 80vw; }
    .search-loader-text { font-size: 0.88rem; }
}

/* Respect des préférences de réduction d'animation */
@media (prefers-reduced-motion: reduce) {
    .search-loader-logo-reveal { animation: none; width: 100%; }
    .search-loader-logo-base { opacity: 0.16; }
    .search-loader-bar span { animation-duration: 2s; }
}

