/* ============================================
   OPTIMA INGÉNIERIE - Main Stylesheet
   Variables, Reset, Header, Hero
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --blue-dark: #042d37;
    --blue-primary: #042d37;
    --blue-medium: #065a47;
    --blue-light: #649443;
    --blue-accent: #649443;
    --green: #649443;
    --white: #ffffff;
    --gray-50: #f8f9fc;
    --gray-100: #eef1f6;
    --gray-200: #d8dde6;
    --gray-400: #8a94a6;
    --gray-600: #5a6577;
    --gray-800: #2d3748;
    --shadow-sm: 0 2px 8px rgba(4, 45, 55, 0.06);
    --shadow-md: 0 4px 20px rgba(4, 45, 55, 0.1);
    --shadow-lg: 0 8px 40px rgba(4, 45, 55, 0.12);
    --shadow-xl: 0 20px 60px rgba(4, 45, 55, 0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1200px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

ul {
    list-style: none;
}

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

/* ---------- Utility ---------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- HEADER ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--blue-dark);
    transition: var(--transition);
}

.header--scrolled {
    background: rgba(4, 45, 55, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.header__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header__logo-img {
    height: 52px;
    width: auto;
    transition: var(--transition);
}

.header__logo-img:hover {
    opacity: 0.85;
}

/* Navigation */
.header__nav {
    display: flex;
    align-items: center;
}

.header__nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header__nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    position: relative;
    letter-spacing: 0.3px;
}

.header__nav-link:hover,
.header__nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.header__nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--blue-accent);
    border-radius: 2px;
}

/* CTA Button */
.header__cta {
    background: var(--blue-medium);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: var(--transition);
}

.header__cta:hover {
    background: var(--blue-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(100, 148, 67, 0.4);
}

/* Burger */
.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.header__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__burger.active span:nth-child(2) {
    opacity: 0;
}

.header__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- HERO ---------- */
/* Hero - Split layout */
.hero {
    position: relative;
    min-height: 620px;
    height: calc(100vh - 72px);
    max-height: 780px;
    display: flex;
    overflow: hidden;
    margin-top: 72px;
}

.hero__left {
    flex: 0 0 50%;
    background: var(--blue-dark);
    display: flex;
    align-items: center;
    padding: 60px 80px 60px 6%;
    position: relative;
}

.hero__left::after {
    content: '';
    position: absolute;
    top: 0;
    right: -80px;
    width: 160px;
    height: 100%;
    background: var(--blue-dark);
    clip-path: polygon(0 0, 0 100%, 100% 100%);
    z-index: 2;
}

.hero__content {
    max-width: 580px;
}

.hero__badge {
    display: inline-block;
    background: var(--green);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    padding: 6px 16px;
    border-radius: 3px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.hero__eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 16px;
}

.hero__title {
    font-family: var(--font-main);
    font-weight: 900;
    font-size: clamp(22px, 2.8vw, 42px);
    color: var(--white);
    line-height: 1.2;
    letter-spacing: 1px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero__subtitle {
    font-size: clamp(15px, 1.5vw, 18px);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    margin-bottom: 40px;
    line-height: 1.7;
}

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

.hero__cta {
    display: inline-block;
    background: var(--green);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    padding: 15px 32px;
    border-radius: var(--radius-sm);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: var(--transition);
}

.hero__cta:hover {
    background: #557a38;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 148, 67, 0.4);
}

.hero__cta--outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: var(--white);
}

.hero__cta--outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    box-shadow: none;
}

/* Hero right - image */
.hero__right {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero__right-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--blue-dark) 0%, transparent 30%);
    z-index: 1;
}

/* ---------- Animation Classes ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}