@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-page: #F8F9FA;
    --bg-card: #EBEFF5;
    --bg-card-dark: #0D0F12;
    --text-main: #1C2024;
    --text-muted: #6B7280;
    --primary: #00ADEF; /* "Connectée" color */
    --primary-dark: #0A3C5A; /* Button color */
    --border-color: #D1D5DB;
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: 4rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.text-primary {
    color: var(--primary);
}

.text-muted {
    color: var(--text-muted);
}



/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    width: 100%;
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    background: transparent;
    border-radius: 50px;
    padding: 0.5rem 1rem;
}

.nav-links.center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

.nav-actions a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
}

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

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 0 3rem;
}

.hero-logo-box {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    background: #111A24;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.hero-logo-box span {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.hero p.subtitle {
    max-width: 600px;
    margin: 1.5rem auto 2.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-dark {
    background: var(--primary-dark);
    color: #fff;
}

.btn-dark:hover {
    background: #062b42;
    transform: translateY(-2px);
}

.btn-light {
    background: var(--bg-card);
    color: var(--text-main);
}

.btn-light:hover {
    background: #DFE4EC;
    transform: translateY(-2px);
}

/* Hero Image Banner */
.hero-banner-container {
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-banner {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg);
    background-image: url('../assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 3rem;
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    z-index: 1;
}

.hero-banner-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: left;
}

.hero-banner-content .badge {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    font-weight: 700;
    opacity: 0.7;
    margin-bottom: 0.5rem;
    display: block;
}

.hero-banner-content h2 {
    font-size: 2rem;
    margin: 0;
    color: #fff;
}


.services-section {
    padding: 6rem 0;
}

/* Feature Sections */
.feature-section {
    padding: 6rem 0;
}

.feature-grid {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.feature-grid > div {
    flex: 1;
}

.feature-grid.reverse {
    flex-direction: row-reverse;
}

.feature-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.feature-visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 400px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.feature-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-icon-box {
    width: 64px;
    height: 64px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

.section-tag {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    display: block;
}

.services-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.bento-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.bento-card:hover {
    transform: translateY(-5px);
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 90%;
}

.card-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-1 { grid-column: span 7; }
.card-2 { grid-column: span 5; padding-bottom: 1.5rem; }
.card-4 { 
    grid-column: span 12; 
    background: var(--bg-card-dark); 
    color: #fff; 
}

.card-4 p {
    color: #9CA3AF;
}

.card-4 .watermark-icon {
    position: absolute;
    right: -20px;
    bottom: -30px;
    font-size: 200px;
    color: rgba(255,255,255,0.03);
    z-index: 0;
    pointer-events: none;
}

.card-4-content {
    position: relative;
    z-index: 1;
    margin-top: auto;
    margin-bottom: auto;
}

.card-image-box {
    margin-top: 2rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 140px;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%);
    transition: var(--transition);
}

.bento-card:hover .card-image-box img {
    filter: grayscale(0%);
}

.arrow-icon {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 1rem;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    text-align: center;
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-item .label {
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    display: block;
}

.contact-item .value {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item .value:hover {
    color: var(--primary);
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left {
    max-width: 400px;
}

.footer-logo {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.footer-right {
    text-align: right;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin-bottom: 1rem;
    justify-content: flex-end;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.copyright {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 992px) {
    .bento-grid {
        display: flex;
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    nav {
        position: relative;
    }

    .nav-links.center {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease;
        text-align: center;
        margin-top: 1rem;
    }

    .nav-links.center.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        display: flex;
    }
    
    .hamburger {
        display: block;
        margin-left: 1rem;
    }

    /* Wrap actions and hamburger naturally without modifying HTML */
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap; /* Not strictly necessary but safe */
    }
    
    .logo {
        flex-grow: 1;
    }
    
    .hero {
        padding: 6rem 0 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        padding: 0 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }

    .hero-banner {
        height: 300px;
    }
    
    .hero-banner-content h2 {
        font-size: 1.5rem;
    }

    .feature-section, .services-section, .contact-section {
        padding: 4rem 0;
    }
    
    .feature-grid, .feature-grid.reverse {
        flex-direction: column;
        gap: 2rem;
    }

    .feature-visual {
        height: 300px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-right {
        text-align: left;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    h1 {
        font-size: 2.2rem;
    }

    .contact-item .value {
        font-size: 1.5rem;
    }
}