/* 
Theme Name: Neuman IA
Theme URI: https://neumania.fr
Author: Neuman Agency
Author URI: https://neumania.fr
Description: Un thème moderne, minimaliste et technologique conçu pour l'agence Neuman IA.
Version: 2.0.0
Text Domain: neumania
*/

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

:root {
    --bg-color: #060b13; /* Very dark version of the base color */
    --surface-color: #0c1524;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --primary-color: #1d3456; /* The dominant color extracted */
    --primary-light: #2e5387;
    --primary-lighter: #4477c4;
    --accent-color: #3b82f6; 
    --border-color: rgba(29, 52, 86, 0.4);
    --border-glow: rgba(59, 130, 246, 0.3);
    
    --card-bg: rgba(12, 21, 36, 0.6);
    --card-hover: rgba(29, 52, 86, 0.3);
    --btn-primary-bg: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    
    --font-primary: 'Outfit', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
    padding-top: 122px;
}

/* Background Ambient Glows */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
}
body::before {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: rgba(46, 83, 135, 0.15);
}
body::after {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(29, 52, 86, 0.2);
}

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

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.site-header {
    padding: 1.15rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(6, 11, 19, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0.8rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: rgba(12, 21, 36, 0.9);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
}

.logo img {
    display: block;
    width: 92px;
    height: 92px;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition-smooth);
}

.logo:hover img {
    transform: scale(1.05);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.main-nav a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--accent-color);
    transition: var(--transition-smooth);
}

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

.main-nav a:not(.btn-primary):hover::after,
.main-nav a.active::after {
    width: 100%;
}

.btn-primary {
    background: var(--btn-primary-bg);
    color: #fff !important;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    font-weight: 600 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(29, 52, 86, 0.4);
    letter-spacing: 0.02em;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 83, 135, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Hero Section */
.hero-section {
    padding: 8.5rem 0 5.5rem;
    position: relative;
    z-index: 10;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 680px;
}

.hero-media {
    position: relative;
}

.hero-tag {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(68, 119, 196, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--primary-lighter);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(68, 119, 196, 0.2);
}

.hero-content h1 {
    font-size: clamp(3.2rem, 7vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
    max-width: 10ch;
}

.hero-subtitle {
    font-size: 1.18rem;
    color: var(--text-muted);
    margin-bottom: 2.2rem;
    font-weight: 400;
    padding: 0;
    max-width: 42rem;
}

.btn-primary-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--btn-primary-bg);
    color: #ffffff;
    padding: 1.2rem 2.8rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(29, 52, 86, 0.5);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.hero-design {
    position: relative;
    min-height: 640px;
    border-radius: 34px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 20% 20%, rgba(68, 119, 196, 0.26), transparent 32%),
        radial-gradient(circle at 78% 24%, rgba(59, 130, 246, 0.2), transparent 28%),
        linear-gradient(145deg, rgba(12, 21, 36, 0.98), rgba(7, 12, 20, 1));
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.hero-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
}

.hero-orb-primary {
    width: 240px;
    height: 240px;
    top: 58px;
    right: 42px;
    background: radial-gradient(circle, rgba(68, 119, 196, 0.9), rgba(68, 119, 196, 0.05));
}

.hero-orb-secondary {
    width: 180px;
    height: 180px;
    left: 36px;
    bottom: 52px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.8), rgba(59, 130, 246, 0.04));
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 92%);
}

.hero-panel {
    position: absolute;
    padding: 1.4rem 1.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 14, 24, 0.72);
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.24);
}

.hero-panel span {
    display: block;
    margin-bottom: 0.35rem;
    color: #94a3b8;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero-panel strong {
    display: block;
    color: #ffffff;
    font-size: 1.8rem;
    line-height: 1.1;
}

.hero-panel-main {
    top: 62px;
    left: 46px;
}

.hero-panel-side {
    right: 48px;
    top: 220px;
}

.hero-line {
    position: absolute;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(68, 119, 196, 0.08), rgba(68, 119, 196, 0.9), rgba(68, 119, 196, 0.08));
}

.hero-line-one {
    top: 230px;
    left: 86px;
    width: 230px;
    height: 2px;
    transform: rotate(12deg);
}

.hero-line-two {
    right: 92px;
    bottom: 240px;
    width: 180px;
    height: 2px;
    transform: rotate(-24deg);
}

.hero-badge {
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(6, 11, 19, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
    text-align: center;
}

.btn-primary-large::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.6s ease;
}

.btn-primary-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(46, 83, 135, 0.7);
}

.btn-primary-large:hover::before {
    left: 100%;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
    margin-top: 3rem;
    padding-top: 0;
    border-top: 0;
    position: relative;
}

.stat-item {
    padding: 1.6rem 1.2rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    backdrop-filter: none;
    transition: var(--transition-smooth);
    min-width: 0;
    overflow-wrap: normal;
    text-align: left;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-item h3 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    color: #ffffff;
    line-height: 1.05;
    overflow-wrap: normal;
}

.stat-item:last-child h3 {
    font-size: clamp(2.1rem, 3.5vw, 2.5rem);
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.stat-item p {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1.1rem;
    overflow-wrap: normal;
}

.featured-section {
    padding: 3rem 0 8rem;
}

.featured-label {
    margin-bottom: 1rem;
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}

.featured-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.featured-strip span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(12, 21, 36, 0.72);
    color: #e2e8f0;
    font-size: 1.05rem;
    font-weight: 600;
}

/* Common Section Styles */
section {
    padding: 10rem 0;
    position: relative;
    z-index: 10;
}

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

.awards-section,
.about-section {
    padding-top: 12rem;
}

.pre-heading {
    color: var(--primary-lighter);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: #fff;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0;
}

/* Cards Grid */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 360px));
    justify-content: center;
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.6rem;
    display: block;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    z-index: 1;
    min-width: 0;
    min-height: 100%;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
    z-index: -1;
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-light);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(46,83,135,0.2) inset;
}

.card:hover::before {
    opacity: 0.5;
}

.card-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(29, 52, 86, 0.4);
    border: 1px solid var(--border-color);
    color: var(--primary-lighter);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* Awards Grid */
.grid-awards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.award-item {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
}

.award-item::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.3;
}

.award-item h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #fff;
    overflow-wrap: anywhere;
}

.award-item p {
    color: var(--primary-lighter);
    font-size: 1rem;
    font-weight: 500;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.about-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
    line-height: 1.8;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: none;
}

.about-image img {
    display: block;
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: center 14%;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    filter: none;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.about-image img:hover {
    transform: scale(1.02);
}

/* Footer */
.site-footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    background: rgba(6, 11, 19, 0.9);
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.85rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: rgba(12, 21, 36, 0.88);
}

.footer-logo img {
    display: block;
    width: 84px;
    height: 84px;
    object-fit: cover;
    object-position: center top;
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.footer-logo:hover img {
    opacity: 1;
}

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

/* Responsive */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-content h1 {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-design {
        min-height: 520px;
    }

    .stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.2rem;
    }

    .featured-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .main-nav {
        display: none;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
        margin-top: 2.5rem;
        padding-top: 0;
    }
    
    section {
        padding: 6.5rem 0;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }

    .grid-cards,
    .grid-awards,
    .featured-strip {
        grid-template-columns: 1fr;
    }

    .card,
    .award-item,
    .stat-item {
        padding: 1.5rem;
    }

    .hero-subtitle {
        padding: 0;
        font-size: 1.05rem;
    }

    .logo img {
        width: 78px;
        height: 78px;
    }

    .hero-design,
    .about-image img {
        height: 460px;
    }

    .hero-panel-main {
        top: 34px;
        left: 24px;
    }

    .hero-panel-side {
        right: 24px;
        top: 158px;
    }

    .hero-badge {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        text-align: center;
    }

    .stat-item h3,
    .stat-item:last-child h3 {
        white-space: normal;
        font-size: 2.1rem;
    }
}

@media (max-width: 540px) {
    .stats-row {
        grid-template-columns: 1fr;
    }

    .grid-cards {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        max-width: none;
    }
}
