/* BNC Labs - Premium Stylesheet */

/* Variables */
:root {
    --primary-color: #024161;
    /* Deep Blue - Trust & Security */
    --accent-color: #00BAF5;
    /* Cyan - Technology & Innovation */
    --secondary-color: #f7f7f7;
    /* Light Gray - Backgrounds */
    --text-color: #333;
    --text-light: #777;
    --white: #ffffff;
    --font-heading: "Encode Sans", sans-serif;
    --font-body: "Inter", sans-serif;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Évite que le header sticky ne cache le début des sections */
}

/* Global Reset */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-top: 0;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header.scrolled {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header.scrolled .whb-top-bar {
    display: none;
}

.header.scrolled .whb-general-header {
    padding: 4px 0;
}

.header.scrolled .site-logo img {
    height: 32px;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 120px 0;
    background-image: url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 65, 97, 0.85);
    /* Blue Overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 186, 245, 0.4);
}

.btn-primary:hover {
    background-color: #009ecf;
    transform: translateY(-2px);
}

/* Features / Services Grid */
.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--secondary-color);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    transition: 0.3s;
    text-align: center;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--accent-color);
}

.service-icon {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* About Section Split */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
}

/* Gallery / Slider */
.slider-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

/* Footer */
.footer-container {
    background: linear-gradient(135deg, #024161 0%, #015c8a 100%);
    color: var(--white);
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 60px;
    margin-bottom: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-container h4 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-container h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
}

.footer-container p {
    opacity: 0.9;
    font-size: 1rem;
    line-height: 1.8;
}

.footer-container ul {
    list-style: none;
    padding: 0;
}

.footer-container ul li {
    margin-bottom: 15px;
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 50px;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Floating Elements */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 2000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

.language-switcher {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--white);
    border: 1px solid #ddd;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    z-index: 2000;
    transition: all 0.3s ease;
}

.language-switcher:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.whb-top-bar {
    background: var(--primary-color);
    color: var(--white);
    font-size: 13px;
    padding: 5px 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.header-scrolled .whb-top-bar {
    height: 0 !important;
    padding: 0 !important;
    opacity: 0;
}

.header-scrolled {
    box-shadow: var(--shadow-hover);
}

.whb-general-header {
    padding: 15px 0;
    transition: padding 0.3s ease;
}

.header-scrolled .whb-general-header {
    padding: 8px 0;
}

/* Utilities */
.text-accent {
    color: var(--accent-color);
}

.placeholder-box {
    background: #eee;
    border: 2px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 600;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(30px);
}

.reveal.active,
.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-up {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(50px);
}

.reveal-left {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50px);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(50px);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.9);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Delay classes */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-500 {
    transition-delay: 500ms;
}