/* style.css */

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

/* CSS Variables */
:root {
    /* Colors - extracted from the Groupe Brandt website */
    --color-primary: #31a0dc; /* Brandt red */
    --color-dark: #3A3A3A;
    --color-darker: #3a4981;
    --color-darkest: #3a4981;
    --color-gray: #666666;
    --color-light-gray: #F5F5F5;
    --color-white: #FFFFFF;
    
    /* Typography - Using Open Sans as closest match to the original */
    --font-primary: 'Open Sans', sans-serif;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    --spacing-xxl: 80px;
    
    /* Container */
    --container-max-width: 1440px;
    --container-padding: 40px;

    /* Variables supplémentaires */
    --color-accent: #31a0dc;
    --color-accent-light: #e8f4fd;
    --color-text-dark: #2c3e50;
    --color-text-light: #7f8c8d;
    --color-background-light: #f8f9fa;
    --color-border: #e9ecef;
}

/* Base Styles */
body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-light-gray);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

/* Top Bar */
.top-bar {
    background-color: var(--color-darkest);
    color: var(--color-white);
    font-size: 12px;
    padding: 10px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-bar-link {
    color: var(--color-white);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.top-bar-link:hover {
    color: var(--color-primary);
}

.separator {
    color: var(--color-gray);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-link {
    color: var(--color-white);
    font-weight: 600;
}

.lang-link.active {
    color: var(--color-primary);
}

.lang-link:hover {
    color: var(--color-primary);
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover svg circle,
.search-btn:hover svg path {
    stroke: var(--color-primary);
}

/* Header */
.header {
    background-color: var(--color-white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 55px;
}

.logo img {
    height: 60px;
    width: auto;
}

.main-nav {
    position: relative;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-dark);
    transition: all 0.3s ease;
}

.nav-list {
    display: flex;
    /* gap: 40px; */
    list-style: none;
}

.nav-link {
    background-color: rgb(231, 231, 231);
    color: rgb(85, 85, 85);
    background: white;
    border-color: rgb(51, 122, 183);
    position: relative;
    display: block;
    padding: 0px 5px 57px 30px;
    padding-top: 10px;
    padding-bottom: 10px;
    line-height: 20px;
    outline: none !important;
    text-decoration: none;
    box-sizing: border-box;
}

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

.nav-number {
    color: rgb(120, 120, 120);
    font-size: 11px;
    line-height: 12px;
    float: left;
    width: auto;
    clear: both;
    box-sizing: border-box;
    outline: none !important;
}

.nav-text {
    color: rgb(0, 0, 0) !important;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 20px !important;
    float: left;
    width: auto;
    clear: both;
    box-sizing: border-box;
    outline: none !important;
}

.nav-text:hover {
    color: var(--color-primary) !important;
}

/* Styles pour le menu déroulant des sociétés */
.nav-item.dropdown {
    position: relative;
}

.dropdown-arrow {
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 400px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 20px;
}

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

.company-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.company-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.company-item:hover {
    background-color: #f8f9fa;
}

.company-logo {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.company-info h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #1a1a1a;
}

.company-info p {
    font-size: 12px;
    margin: 0;
    color: #666;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding: 10px 0;
    }
    
    .nav-item.dropdown.active .dropdown-menu {
        display: block;
    }
    
    .company-item {
        padding: 10px 0;
    }
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 470px;
    overflow: hidden;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 470px;
    overflow: hidden;
}

.hero-carousel .carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-carousel .carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-carousel .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.hero-carousel .carousel-slide.active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

.hero-carousel .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Brand Indicators - Style similaire à Groupe Brandt */
.brand-indicators {
    background-color: rgba(255, 255, 255, 1);
    position: absolute;
    bottom: 68px;
    left: 50%;
    z-index: 15;
    width: 604px;
    margin-left: -302px;
    padding-left: 0px;
    list-style: none;
    text-align: center;
    height: 42px;
    overflow: visible;
    margin-top: 0px;
    margin-bottom: 10px;
    box-sizing: border-box;
    outline: none !important;
    border-radius: 21px; /* Half of the height to create rounded ends */
}

.brand-indicator {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0px 20px;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.brand-indicator.active {
    opacity: 1;
    /* background-color: var(--color-white); */
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); */
    transform: scale(1.05);
}

.brand-indicator:hover {
    opacity: 1;
    transform: scale(1.05);
}

.brand-indicator .brand-logo {
    height: 40px;
    width: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.brand-indicator.active .brand-logo {
    filter: grayscale(0%);
}

.brand-indicator:hover .brand-logo {
    filter: grayscale(0%);
}

/* Cards Section */
.cards-section {
    padding: var(--spacing-xxl) 0 0 0;
    margin-top: -110px;
    background-color: var(--color-light-gray);
}

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

.card {
    background-color: var(--color-white);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 100;
}

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

.card-header {
    background-color: var(--color-white);
    padding: 20px;
    border-top: 4px solid var(--color-primary);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

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

.card-content {
    padding: 30px 20px;
}

.card-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-dark);
    margin-bottom: 20px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-link:hover {
    gap: 10px;
}


.arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.card-link:hover .arrow {
    transform: translateX(5px);
}

/* Reference Section */
.reference-section {
    background: transparent !important;
    color: rgb(0, 0, 0) !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.reference-title {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    margin: 0.67em 0px;
    font-family: inherit;
    line-height: 1.1;
    color: inherit;
    margin-top: 35px;
    margin-bottom: 10px;
    box-sizing: border-box;
    outline: none !important;
}

/* Brands Section */
.brands-section {
    padding: var(--spacing-lg) 0;
    background-color: var(--color-light-gray);
}

.brands-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
}

.brand-logo {
    height: 40px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.brand-logo-2 {
    height: 65px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.brand-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

.brand-logo-2:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Enhanced Carousel Section Styles */
.carousel-section {
    background-color: var(--color-light-gray);
    /* padding: var(--spacing-xxl) 0; */
    position: relative;
}

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

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-xs);
}

.section-subtitle {
    font-size: 16px;
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
}

.brands-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
    /* margin-bottom: var(--spacing-xl);
    padding: var(--spacing-md) 0; */
    /* border-bottom: 1px solid rgba(0, 0, 0, 0.1); */
}

.brand-link {
    transition: transform 0.3s ease;
}

.brand-link:hover {
    transform: translateY(-5px);
}

.brand-logo-2 {
    height: 65px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.brand-link:hover .brand-logo-2 {
    opacity: 1;
}

.carousel-container-bottom {
    position: relative;
    height: 450px;
    background: url("images/background.jfif") center/cover no-repeat;
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-md);
    animation: backgroundFlow 20s linear infinite;
    overflow: hidden;
}

/* Soft white overlay for fade effect */
.carousel-container-bottom::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.4); /* white with 40% opacity */
    pointer-events: none;
    z-index: 1;
}

/* Make sure content appears above the overlay */
.carousel-container-bottom > * {
    position: relative;
    z-index: 2;
}

@keyframes backgroundFlow {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

.carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-track-bottom {
    position: relative;
    height: 350px;
    width: 90%;
    max-width: 900px;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.carousel-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.carousel-slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.carousel-content-bottom {
    display: flex;
    background-color: var(--color-white);
    border-radius: 5px;
    overflow: hidden;
    min-height: 400px;
}

.carousel-image-bottom {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
}

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

.carousel-slide.active .carousel-image-bottom img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(58, 73, 129, 0.2) 0%, rgba(49, 160, 220, 0.1) 100%);
    z-index: 1;
}

.carousel-text-bottom {
    flex: 1;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.detail-label {
    font-weight: 600;
    color: var(--color-dark);
    margin-right: 8px;
}

.brand-header {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.carousel-brand-logo {
    height: 60px;
    width: auto;
    flex-shrink: 0;
}

.brand-info {
    flex: 1;
}

.carousel-heading {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.company-details {
    font-size: 14px;
}

.brand-tags {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.brand-tag {
    background-color: var(--color-light-gray);
    color: var(--color-dark);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.carousel-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-dark);
    /* margin-bottom: var(--spacing-md); */
}

.carousel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.carousel-note {
    font-size: 14px;
    color: var(--color-gray);
    font-style: italic;
}

.carousel-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: gap 0.3s ease;
}

.carousel-link:hover {
    gap: 12px;
}

.carousel-link svg {
    transition: transform 0.3s ease;
}

.carousel-link:hover svg {
    transform: translateX(5px);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--color-white);
    border: none;
    border-radius: 50%;
    color: var(--color-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-arrow:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow-prev {
    left: 20px;
}

.carousel-arrow-next {
    right: 20px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: var(--spacing-lg);
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background-color: var(--color-white);
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background-color: var(--color-white);
}

/* Responsive Design for Carousel */
@media (max-width: 1024px) {
    .carousel-content-bottom {
        flex-direction: column;
        min-height: auto;
    }
    
    .carousel-image-bottom {
        flex: 0 0 250px;
    }
    
    .carousel-text-bottom {
        padding: var(--spacing-md);
    }
    
    .carousel-heading {
        font-size: 22px;
    }
    
    .brands-logos {
        gap: 50px;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
    }
    
    .carousel-arrow-prev {
        left: 10px;
    }
    
    .carousel-arrow-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 24px;
    }
    
    .brands-logos {
        gap: 30px;
    }
    
    .brand-logo-2 {
        height: 50px;
    }
    
    .carousel-track-bottom {
        width: 95%;
    }
    
    .brand-header {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .carousel-brand-logo {
        height: 50px;
    }
    
    .carousel-footer {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: flex-start;
    }
    
    .carousel-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 20px;
    }
    
    .brands-logos {
        gap: 20px;
    }
    
    .brand-logo-2 {
        height: 40px;
    }
    
    .carousel-text-bottom {
        padding: var(--spacing-sm);
    }
    
    .carousel-heading {
        font-size: 20px;
    }
    
    .carousel-description {
        font-size: 15px;
    }
}

/* Footer */
.footer {
    background-color: var(--color-darker);
    color: var(--color-white);
    padding-top: var(--spacing-xxl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px;
    padding-bottom: var(--spacing-xl);
    /* margin-bottom: var(--spacing-xl); */
}

.footer-column {
}

.footer-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    color: var(--color-white);
}

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

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

.footer-link {
    font-size: 14px;
    color: #CCCCCC;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--color-primary);
}

.footer-bottom {
    background-color: var(--color-darkest); /* or same color as footer */
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.footer-copy {
    font-size: 14px;
    color: var(--color-white);
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* .footer-bottom {
    background-color: var(--color-darkest);
    padding: 30px 0;
}

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

.footer-logo img {
    height: 50px;
    width: auto;
}

.footer-copyright {
    font-size: 12px;
    color: var(--color-gray);
} */

/* ========================================================================== */
/* Responsive adjustments */
/* ========================================================================== */

/* Large Desktop (≤1440px) - Default styles already cover this */

/* Laptop (≤1024px) */
@media (max-width: 1024px) {
    :root {
        --container-padding: 30px;
    }
    
    .header-content {
        padding: 0 30px;
    }
    
    .hero, .hero-carousel {
        height: 400px;
    }
    
    .brand-indicators {
        width: 500px;
        margin-left: -250px;
        bottom: 50px;
    }
    
    .brand-indicator {
        padding: 0 15px;
    }
    
    .brand-indicator .brand-logo {
        height: 35px;
    }
    
    .cards-grid {
        gap: 30px;
    }
    
    .card-image {
        height: 220px;
    }
    
    .brands-logos {
        gap: 50px;
    }
    
    .brand-logo-2 {
        height: 55px;
    }
    
    .carousel-container-bottom {
        height: 400px;
    }
    
    .carousel-track-bottom {
        height: 320px;
    }
    
    .carousel-content-bottom {
        min-height: 350px;
    }
}

/* Tablet (≤768px) */
@media (max-width: 768px) {
    :root {
        --container-padding: 20px;
    }
    
    .top-bar {
        font-size: 11px;
        padding: 8px 0;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .header {
        padding: 15px 0;
    }
    
    .header-content {
        padding: 0 20px;
        flex-direction: column;
        gap: 20px;
    }
    
    .logo h2 {
        font-size: 1.5rem;
    }
    
    .logo p {
        font-size: 0.9rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
    }
    
    .nav-list.active {
        max-height: 500px;
        padding: 10px 0;
    }
    
    .nav-item {
        border-bottom: 1px solid var(--color-light-gray);
        width: 100%;
    }
    
    .nav-link {
        padding: 15px 20px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        width: 100%;
    }
    
    .hero, .hero-carousel {
        height: 350px;
    }
    
    .brand-indicators {
        width: 90%;
        max-width: 400px;
        margin-left: -45%;
        bottom: 30px;
        height: 35px;
    }
    
    .brand-indicator {
        padding: 0 10px;
    }
    
    .brand-indicator .brand-logo {
        height: 25px;
    }
    
    .cards-section {
        margin-top: -80px;
        padding: 60px 0 0 0;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .card-image {
        height: 200px;
    }
    
    .reference-title {
        font-size: 18px;
        margin-top: 25px;
        margin-bottom: 5px;
    }
    
    .brands-logos {
        gap: 30px;
        padding: 20px 0;
    }
    
    .brand-logo-2 {
        height: 45px;
    }
    
    .carousel-container-bottom {
        height: 350px;
        padding: 20px 0;
    }
    
    .carousel-track-bottom {
        height: 300px;
        width: 95%;
    }
    
    .carousel-content-bottom {
        flex-direction: column;
        min-height: auto;
    }
    
    .carousel-image-bottom {
        flex: 0 0 200px;
    }
    
    .carousel-text-bottom {
        padding: 20px;
    }
    
    .brand-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .carousel-brand-logo {
        height: 50px;
    }
    
    .brand-tags {
        justify-content: center;
    }
    
    .company-details {
        font-size: 13px;
    }
    
    .detail-row {
        margin-bottom: 8px;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
    }
    
    .carousel-arrow-prev {
        left: 5px;
    }
    
    .carousel-arrow-next {
        right: 5px;
    }
}

/* Small Mobile (≤480px) */
@media (max-width: 480px) {
    :root {
        --container-padding: 15px;
    }
    
    .top-bar {
        font-size: 10px;
        padding: 6px 0;
    }
    
    .language-switcher {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    .header {
        padding: 12px 0;
    }
    
    .header-content {
        padding: 0 15px;
    }
    
    .logo h2 {
        font-size: 1.3rem;
    }
    
    .logo p {
        font-size: 0.8rem;
    }
    
    .hero, .hero-carousel {
        height: 250px;
    }
    
    .brand-indicators {
        width: 95%;
        margin-left: -47.5%;
        bottom: 20px;
        height: 30px;
        border-radius: 15px;
    }
    
    .brand-indicator {
        padding: 0 8px;
    }
    
    .brand-indicator .brand-logo {
        height: 20px;
    }
    
    .cards-section {
        margin-top: -60px;
        padding: 40px 0 0 0;
    }
    
    .cards-grid {
        gap: 20px;
    }
    
    .card-header {
        padding: 15px;
    }
    
    .card-title {
        font-size: 16px;
    }
    
    .card-image {
        height: 180px;
    }
    
    .card-content {
        padding: 20px 15px;
    }
    
    .card-text {
        font-size: 14px;
    }
    
    .reference-title {
        font-size: 16px;
        line-height: 1.3;
        margin-top: 20px;
    }
    
    .brands-logos {
        gap: 20px;
        padding: 15px 0;
    }
    
    .brand-logo-2 {
        height: 35px;
    }
    
    .carousel-container-bottom {
        height: 300px;
        padding: 15px 0;
    }
    
    .carousel-track-bottom {
        height: 280px;
    }
    
    .carousel-image-bottom {
        flex: 0 0 150px;
    }
    
    .carousel-text-bottom {
        padding: 15px;
    }
    
    .carousel-brand-logo {
        height: 40px;
    }
    
    .brand-tags {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .brand-tag {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .company-details {
        font-size: 12px;
    }
    
    .detail-row {
        display: flex;
        flex-direction: column;
        gap: 2px;
        margin-bottom: 6px;
    }
    
    .detail-label {
        font-weight: 700;
    }
    
    .carousel-note {
        font-size: 12px;
    }
    
    .carousel-link {
        font-size: 12px;
    }
    
    .carousel-arrow {
        width: 35px;
        height: 35px;
        display: none; /* Hide arrows on very small screens */
    }
    
    .footer-bottom {
        padding: 12px 0;
    }
    
    .footer-copy {
        font-size: 12px;
    }
}

/* Extra Small Mobile (≤360px) */
@media (max-width: 360px) {
    .brands-logos {
        gap: 15px;
    }
    
    .brand-logo-2 {
        height: 30px;
    }
    
    .reference-title {
        font-size: 14px;
    }
    
    .carousel-container-bottom {
        height: 280px;
    }
    
    .carousel-track-bottom {
        height: 260px;
    }
    
    .carousel-text-bottom {
        padding: 12px;
    }
    
    .brand-header {
        gap: 10px;
    }
}

/* Orientation-specific adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .hero, .hero-carousel {
        height: 300px;
    }
    
    .cards-section {
        margin-top: -70px;
    }
    
    .carousel-container-bottom {
        height: 320px;
    }
}

/* High-resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .brand-indicator .brand-logo,
    .brand-logo-2,
    .carousel-brand-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .top-bar,
    .mobile-menu-toggle,
    .carousel-arrow {
        display: none !important;
    }
    
    .hero {
        height: 200px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Main Navigation Responsive Styles */
@media (max-width: 1024px) {
    .nav-list {
        gap: 20px;
    }
    
    .nav-link {
        padding: 0px 5px 40px 20px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        width: 100%;
    }
    
    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
    }
    
    .nav-list.active {
        max-height: 500px;
        padding: 10px 0;
    }
    
    .nav-item {
        border-bottom: 1px solid var(--color-light-gray);
        width: 100%;
    }
    
    .nav-link {
        padding: 15px 20px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        width: 100%;
        border: none;
        background: transparent;
    }
    
    .nav-number {
        font-size: 12px;
        line-height: 14px;
    }
    
    .nav-text {
        font-size: 14px;
        line-height: 18px !important;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

@media (max-width: 480px) {
    .nav-link {
        padding: 12px 15px;
    }
    
    .nav-number {
        font-size: 11px;
    }
    
    .nav-text {
        font-size: 13px;
    }
}

/* Company Details Responsive Styles */
@media (max-width: 1024px) {
    .company-details {
        font-size: 13px;
    }
    
    .detail-row {
        margin-bottom: 8px;
    }
}

@media (max-width: 768px) {
    .company-details {
        font-size: 12px;
    }
    
    .detail-row {
        display: flex;
        flex-direction: column;
        gap: 2px;
        margin-bottom: 10px;
    }
    
    .detail-label {
        font-weight: 700;
        color: var(--color-dark);
        margin-right: 0;
    }
    
    .detail-value {
        color: var(--color-gray);
    }
    
    .carousel-text-bottom {
        padding: 15px;
    }
    
    .brand-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .brand-tags {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .company-details {
        font-size: 11px;
    }
    
    .detail-row {
        margin-bottom: 8px;
    }
    
    .carousel-text-bottom {
        padding: 12px;
    }
    
    .brand-tags {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .brand-tag {
        font-size: 11px;
        padding: 3px 8px;
        text-align: center;
    }
}

/* Special handling for very long company details */
@media (max-width: 360px) {
    .company-details {
        font-size: 10px;
    }
    
    .detail-value {
        word-break: break-word;
    }
}

/* Ensure the carousel content remains usable on small screens */
@media (max-width: 768px) {
    .carousel-content-bottom {
        flex-direction: column;
        min-height: auto;
    }
    
    .carousel-image-bottom {
        flex: 0 0 200px;
    }
    
    .carousel-track-bottom {
        height: auto;
        min-height: 500px;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .carousel-track-bottom {
        min-height: 400px;
    }
    
    .carousel-image-bottom {
        flex: 0 0 150px;
    }
    
    .company-details {
        font-size: 11px;
    }
}

.page-hero {
    position: relative;
    background: linear-gradient(135deg, var(--color-darkest) 0%, var(--color-primary) 100%);
    color: var(--color-white);
    padding: 50px 0 80px;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/Societes/IMG_0011.JPG') center/cover;
    opacity: 0.1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.page-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.page-hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--color-light-gray));
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* History Section */
.history-section {
    padding: 5rem 0;
    background-color: var(--color-light-gray);
}

.history-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-accent);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-year {
    flex: 0 0 120px;
    text-align: center;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    z-index: 2;
}

.timeline-content {
    flex: 1;
    background: var(--color-background-light);
    padding: 2rem;
    border-radius: 10px;
    margin: 0 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.timeline-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}

.timeline-description {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Vision Section */
.vision-section {
    padding: 5rem 0;
    background-color: var(--color-background-light);
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.vision-card {
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.vision-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(58, 73, 129, 0.3) 0%, rgba(49, 160, 220, 0.2) 100%);
    z-index: 1;
}

.vision-card-content {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.vision-card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 2px;
}

.vision-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.vision-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text-light);
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .vision-grid {
        gap: 2rem;
    }
    
    .vision-card-content {
        padding: 2rem;
    }
    
    .vision-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .vision-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .vision-card-content {
        padding: 1.8rem;
    }
    
    .vision-image {
        height: 200px;
    }
    
    .vision-title {
        font-size: 1.6rem;
    }
    
    .vision-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .vision-section {
        padding: 3rem 0;
    }
    
    .vision-card-content {
        padding: 1.5rem;
    }
    
    .vision-image {
        height: 180px;
    }
    
    .vision-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .vision-text {
        font-size: 0.95rem;
    }
}

.vision-pillars {
    display: grid;
    gap: 1.5rem;
}

.pillar {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.pillar-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.pillar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.pillar-text {
    color: var(--color-text-light);
    line-height: 1.5;
}

.vision-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.vision-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Values Section */
.values-section {
    padding: 5rem 0;
    background-color: var(--color-white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.value-card {
    background: var(--color-background-light);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--color-accent);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.value-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}

.value-description {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Governance Section */
.governance-section {
    padding: 5rem 0;
    background-color: var(--color-background-light);
}

.governance-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.governance-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
}

.governance-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
}

.governance-features {
    display: grid;
    gap: 1.5rem;
}

.feature {
    padding: 1.5rem;
    background: var(--color-white);
    border-radius: 8px;
    border-left: 4px solid var(--color-accent);
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.feature-text {
    color: var(--color-text-light);
    line-height: 1.5;
}

.governance-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.governance-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Key Figures Section */
.key-figures-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--color-darkest) 0%, var(--color-primary) 100%);
    color: var(--color-white);
}

.key-figures-section .section-title,
.key-figures-section .section-subtitle {
    color: var(--color-white);
}

.key-figures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.key-figure {
    text-align: center;
    padding: 2rem;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.key-figure:hover {
    transform: translateY(-5px);
}

.figure-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.figure-label {
    font-size: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background-color: var(--color-white);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--color-darkest);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-dark);
    border-color: var(--color-text-dark);
}

.btn-secondary:hover {
    background: var(--color-text-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-hero-title {
        font-size: 3rem;
    }
    
    .vision-grid,
    .governance-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .vision-content {
        padding-right: 0;
    }
    
    .history-timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
    }
    
    .timeline-year {
        flex: 0 0 100px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 100px 0 60px;
    }
    
    .page-hero-title {
        font-size: 2.5rem;
    }
    
    .page-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .timeline-content {
        margin: 0 1rem;
        padding: 1.5rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .key-figures-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .page-hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-item {
        flex: 0 0 calc(50% - 1rem);
    }
    
    .timeline-year {
        flex: 0 0 80px;
        font-size: 0.9rem;
        padding: 0.8rem;
    }
    
    .key-figures-grid {
        grid-template-columns: 1fr;
    }
    
    .figure-number {
        font-size: 2rem;
    }
}