:root {
    --primary: #e63946;
    --primary-dark: #c1121f;
    --primary-darker: #9b1b1b;
    --bg-light: #ffffff;
    --bg-card: rgba(0, 0, 0, 0.02);
    --border: rgba(0, 0, 0, 0.08);
    --text-dark: #1a1a1f;
    --text-muted: #4a4a5a;
    --text-dim: #8a8a9a;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1s; }

/* Typography */
.section-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.accent-text {
    color: var(--primary);
    font-style: italic;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 48px;
    align-items: center;
}

.nav-link {
    position: relative;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-link:hover { color: var(--primary); }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after { width: 100%; }

/* Theme Switcher */
.theme-switcher {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 24px;
}

.theme-toggle {
    position: relative;
    width: 50px;
    height: 24px;
    background: var(--border);
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--text-dark);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.theme-toggle.active {
    background: var(--primary);
}

.theme-toggle.active::before {
    transform: translateX(26px);
    background: white;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 36px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover::before { left: 100%; }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(230, 57, 70, 0.1);
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 48px 80px;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.2);
    margin-bottom: 32px;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(48px, 7vw, 100px);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 32px;
    max-width: 1000px;
}

.hero-description {
    font-size: 19px;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 48px;
}

.hero-buttons {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-certifications {
    display: flex;
    gap: 24px;
    margin-top: 64px;
    flex-wrap: wrap;
}

.certification-badge {
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid rgba(0,0,0,0.08);
    font-size: 14px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.certification-badge:hover {
    border-color: rgba(230, 57, 70, 0.3);
    background: rgba(230, 57, 70, 0.05);
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.carousel-slide:hover img {
    transform: scale(1.05);
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: var(--primary);
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Background Effects */
.grid-bg {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(230, 57, 70, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(230, 57, 70, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

/* Stats Section */
.stats {
    padding: 80px 48px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(230, 57, 70, 0.02);
}

.stats-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Instrument Serif', serif;
    font-size: 72px;
    font-weight: 400;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--primary-darker) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 14px;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* Services Section */
.services {
    padding: 120px 48px;
    position: relative;
}

.section-header {
    margin-bottom: 80px;
}

.section-label {
    color: var(--primary);
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.services-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 48px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    background: rgba(230, 57, 70, 0.03);
    border-color: rgba(230, 57, 70, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before { opacity: 1; }

.service-number {
    font-family: 'Instrument Serif', serif;
    font-size: 34px;
    color: var(--primary);
    font-style: italic;
}

.service-title {
    font-family: 'Instrument Serif', serif;
    font-size: 28px;
    font-weight: 400;
    margin-top: 24px;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.service-card:hover .service-title {
    color: var(--primary);
}

.service-description {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.service-list {
    list-style: none;
}

.service-list li {
    padding: 12px 0;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.service-card:hover .service-list li {
    transform: translateX(8px);
}

.service-list li::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-list li::before {
    opacity: 1;
}

/* Expertise Section */
.expertise {
    padding: 120px 48px;
    background: linear-gradient(180deg, rgba(230,57,70,0.02) 0%, transparent 100%);
    position: relative;
}

.expertise-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.expertise h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 32px;
    color: var(--text-dark);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.2);
    font-size: 12px;
    letter-spacing: 0.5px;
    color: var(--primary);
}

.sectors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sector-item {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.sector-item:hover {
    border-color: rgba(230, 57, 70, 0.3);
    background: rgba(230, 57, 70, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sector-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.sector-item span {
    color: var(--text-muted);
    font-size: 15px;
}

/* Parcours Section */
.parcours {
    padding: 120px 48px;
    position: relative;
}

.experiences-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.experience-item {
    padding: 32px;
    border-left: 2px solid rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    cursor: pointer;
}

.experience-item:hover {
    border-left-color: var(--primary);
    background: rgba(230, 57, 70, 0.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.experience-period {
    color: var(--primary);
    font-size: 20px;
    font-family: 'Instrument Serif', serif;
    font-style: italic;
}

.experience-role {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.experience-description {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* CTA Section */
.cta {
    padding: 120px 48px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(230,57,70,0.02) 0%, transparent 100%);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 24px;
}

.cta p {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 48px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    padding: 60px 48px;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.02);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo img {
    height: 40px;
}

.footer-links {
    display: flex;
    gap: 48px;
}

.footer-copyright {
    color: var(--text-dim);
    font-size: 13px;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav { padding: 20px 24px; }
    .nav-links { gap: 24px; }
    .services-grid { grid-template-columns: 1fr; }
    .expertise-grid { grid-template-columns: 1fr; gap: 48px; }
    .experiences-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero { padding: 100px 24px 60px; }
    .hero-container { grid-template-columns: 1fr; gap: 40px; }
    .hero-carousel { height: 300px; }
    .hero h1 { font-size: 40px; }
    .hero-buttons { flex-direction: column; }
    .hero-certifications { flex-direction: column; gap: 12px; }
    .stats { padding: 60px 24px; }
    .stat-number { font-size: 48px; }
    .services, .expertise, .parcours, .cta { padding: 80px 24px; }
    .service-card { padding: 32px; }
    .footer-content { flex-direction: column; gap: 24px; text-align: center; }
    .nav-links .nav-link { display: none; }
    .sectors-grid { grid-template-columns: 1fr; }
    .theme-switcher { margin-left: 12px; }
}

/* Mobile Nav Toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    margin: 6px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
}
