/* --- css resets & custom properties --- */
:root {
    --primary-color: #0d1b2a;
    --secondary-color: #1b263b;
    --accent-color: #cda434; /* Rich gold */
    --accent-hover: #b48e28;
    --text-color: #e0e1dd;
    --text-muted: #8b939f;
    --white: #ffffff;
    --bg-dark: #0a1128;
    --glass-bg: rgba(13, 27, 42, 0.7);
    --glass-border: rgba(205, 164, 52, 0.2);
    
    --transition: cubic-bezier(0.25, 1, 0.5, 1);
    
    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--white), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- Buttons --- */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.4s var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(205, 164, 52, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--accent-color);
}

.btn-secondary:hover {
    background: rgba(205, 164, 52, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(205, 164, 52, 0.1);
}

.btn-block {
    display: block;
    width: 100%;
}

/* --- Header / Navigation --- */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.4s ease;
}

.glass-header.scrolled {
    padding: 10px 0;
    background: rgba(10, 17, 40, 0.95);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
}

.logo-accent {
    color: var(--accent-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.main-nav a:hover:not(.btn-primary) {
    color: var(--accent-color);
}

.lang-switcher {
    position: relative;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.lang-switcher>span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 120px;
    background: rgba(10, 15, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li {
    width: 100%;
}

.lang-dropdown a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    text-transform: none;
    font-size: 0.95rem;
}

.lang-dropdown a:hover {
    background: rgba(205, 164, 52, 0.1);
    color: var(--accent-color);
}

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

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

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-dark);
    /* Fallback image if youtube is blocked */
    background: url('hero-bg.jpg') center center/cover no-repeat;
    overflow: hidden;
    padding: 0 2rem;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.85; /* Garde la vidéo bien visible mais atténue l'éblouissement */
}

.hero-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    /* Gradient overlay to ensure text is perfectly readable but video shines through */
    background: linear-gradient(135deg, rgba(5, 10, 20, 0.7) 0%, rgba(5, 10, 20, 0.4) 100%);
    z-index: 1;
    pointer-events: none; /* Let clicks pass through if any */
}

.hero-content {
    max-width: 900px;
    z-index: 2;
    margin-top: 80px;
}

.hero-subtitle {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--accent-color);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

/* --- Sections Common --- */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 0 auto 1.5rem auto;
}

/* --- Expertise Section --- */
.expertise-section {
    background-color: var(--primary-color);
}

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

.expertise-card {
    background: var(--secondary-color);
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.4s var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border-color: rgba(205, 164, 52, 0.3);
}

.expertise-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.expertise-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.expertise-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.expertise-list {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.expertise-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.expertise-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.card-link {
    font-size: 0.9rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.card-link:hover {
    color: var(--accent-color);
}

/* --- About Section --- */
.about-section {
    background: var(--bg-dark);
    padding: 8rem 2rem;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.placeholder-img.london-img {
    width: 100%;
    height: 600px;
    background: url('london-office.jpg') center/cover;
    background-color: var(--secondary-color); /* fallback */
    border-radius: 8px;
    display: block;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    color: var(--primary-color);
    text-align: center;
}

.badge-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.badge-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.about-subtitle {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 2rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.about-features {
    list-style: none;
    margin-top: 2rem;
}

.about-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: var(--white);
}

.check-icon {
    color: var(--accent-color);
    margin-right: 1rem;
    font-weight: bold;
}

/* --- Global Reach Section --- */
.global-reach-section {
    position: relative;
    padding: 8rem 2rem;
    background: url('europe-map.jpg') center/cover;
    background-color: #050a14;
    text-align: center;
}

.reach-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 17, 40, 0.85);
}

.reach-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.reach-content h2 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.reach-content p {
    font-size: 1.2rem;
    margin-bottom: 4rem;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

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

.stat-number {
    font-size: 4rem;
    color: var(--accent-color);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* --- Contact/CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    padding: 8rem 2rem;
}

.cta-container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cta-text h2 {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.cta-text p {
    font-size: 1.1rem;
    color: var(--text-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0,0,0,0.4);
}

/* --- Footer --- */
footer {
    background: #050a14;
    padding: 4rem 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding-bottom: 4rem;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-col p, .footer-col ul {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-col p {
    margin-bottom: 0.8rem;
}

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

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.footer-desc {
    margin-top: 1rem;
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    animation: fadeIn 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.slide-left {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.stagger-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.stagger-up.visible {
    opacity: 1;
    transform: translateY(0);
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

@keyframes scroll {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    .about-container, .cta-container {
        grid-template-columns: 1fr;
    }
    .experience-badge {
        right: 20px;
        bottom: -20px;
    }
}


/* --- App-like Mobile Navigation & Responsive Fixes --- */
.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

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

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

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

@media (max-width: 768px) {
    /* Fullscreen app navigation */
    .main-nav {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(5, 10, 20, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 999;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        opacity: 0;
        visibility: hidden;
    }

    .main-nav.mobile-menu-active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        width: 100%;
        padding: 0;
    }

    .main-nav a {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1000;
        position: relative;
    }
    
    .lang-switcher > span {
        justify-content: center;
        font-size: 1.5rem;
        color: var(--white);
    }
    
    .lang-dropdown {
        position: static;
        box-shadow: none;
        background: transparent;
        border: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding-top: 1rem;
    }
    
    .lang-switcher.open .lang-dropdown {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .lang-dropdown a {
        font-size: 1.2rem;
        padding: 0.5rem;
        color: var(--text-muted);
    }

    /* Prevent scrolling when menu is open */
    body.no-scroll {
        overflow: hidden;
    }

    /* Core typography and layout resizing */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    /* Hero */
    .hero-title {
        font-size: 2rem !important; /* user said too big */
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem !important;
        padding: 0 1rem;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
        gap: 1rem;
        box-sizing: border-box;
    }

    /* Buttons */
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
        display: block;
        box-sizing: border-box;
        padding: 1rem;
        font-size: 1rem;
    }

    /* Sections */
    .section-container {
        padding: 4rem 1rem !important;
        width: 100%;
        box-sizing: border-box;
    }
    
    .section-title {
        font-size: 1.8rem !important;
    }

    .section-header p.section-text {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* Expertise Cards */
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }

    .expertise-card {
        padding: 2rem 1.5rem;
        margin: 0;
    }

    .expertise-card h3 {
        font-size: 1.2rem;
    }

    /* About Section */
    .about-content h2.section-title {
        font-size: 1.8rem !important;
    }
    
    .about-subtitle {
        font-size: 0.8rem !important;
    }

    .about-features {
        grid-template-columns: 1fr !important;
    }
    
    .about-container {
        padding: 0 1rem;
        box-sizing: border-box;
    }
    
    /* Stats Section */
    .global-reach-section {
        padding: 5rem 1rem !important;
    }

    .reach-content h2 {
        font-size: 2rem !important;
    }

    .reach-content p {
        font-size: 1rem !important;
        margin-bottom: 3rem !important;
    }

    .stats-container {
        grid-template-columns: 1fr 1fr !important;
        gap: 1.5rem;
    }

    .stat-item {
        border-right: none !important;
    }
    
    .stat-number {
        font-size: 2.5rem !important;
    }
    
    .stat-label {
        font-size: 0.75rem !important;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
        text-align: center;
    }
    
    .footer-col {
        margin: 0 auto;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .footer-bottom a {
        display: block;
        margin: 0.5rem 0 !important;
    }
}
