/*
Theme Name: O'Smart IT Premium
Theme URI: https://osmartit.com
Author: Antigravity
Author URI: https://osmartit.com
Description: Thème WordPress ultra-premium pour O'Smart IT, spécialisé dans la Data, BI et Gouvernance.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: data, business-intelligence, premium, high-budget, corporate
Text Domain: osmartit
*/

:root {
    --primary: #020617;
    --secondary: #D4AF37;
    --accent: #22c55e;
    --dark: #000000;
    --light: #f8fafc;
    --gray: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

    /* Enhanced Gradients */
    --gradient-aurora: linear-gradient(135deg, #020617 0%, #0c1e4f 50%, #020617 100%);
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    --gradient-mesh: radial-gradient(at 0% 0%, rgba(212, 175, 55, 0.15) 0, transparent 50%),
        radial-gradient(at 100% 100%, rgba(30, 58, 138, 0.1) 0, transparent 50%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #1e293b;
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 10rem 0;
}

@keyframes border-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    z-index: 1000;
    padding: 1.25rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.5s var(--ease-out-expo);
}

nav.scrolled {
    padding: 0.8rem 5%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.logo-img {
    height: 60px;
    transition: transform 0.4s var(--ease-out-expo);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.logo-img:hover {
    transform: scale(1.08) rotate(-2deg);
}

.nav-links {
    display: flex;
    gap: 3.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: 0.4s var(--ease-out-expo);
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-nav {
    background: var(--primary);
    color: white !important;
    padding: 0.9rem 2.5rem;
    border-radius: 100px;
    font-weight: 800 !important;
    transition: all 0.4s var(--ease-out-expo);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-nav:hover {
    background: var(--secondary);
    color: var(--primary) !important;
    transform: translateY(-3px) scale(1.03);
}

/* --- HERO --- */
.hero {
    min-height: 100vh;
    background: #000;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: white;
    padding-top: 100px;
}

.hero-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(at 10% 10%, rgba(30, 58, 138, 0.4) 0, transparent 60%),
        radial-gradient(at 90% 90%, rgba(212, 175, 55, 0.2) 0, transparent 60%),
        radial-gradient(at 50% 50%, rgba(15, 23, 42, 1) 0, #000 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 6rem;
    line-height: 0.95;
    margin-bottom: 2.5rem;
    letter-spacing: -4px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.hero h1 span {
    color: var(--secondary);
    animation: shine 3s infinite linear;
    background: linear-gradient(to right, #D4AF37 0%, #fff 50%, #D4AF37 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.hero p {
    font-size: 1.6rem;
    color: #cbd5e1;
    margin-bottom: 5rem;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.btn-gold {
    background: var(--gradient-gold);
    color: var(--dark);
    padding: 1.5rem 4rem;
    border-radius: 100px;
    font-weight: 900;
    text-decoration: none;
    display: inline-block;
    transition: all 0.5s var(--ease-out-expo);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
}

.btn-gold:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 30px 80px rgba(212, 175, 55, 0.5);
}

/* --- 3 PILLARS --- */
.expertise-section {
    background: #fafafa;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 8rem;
}

.section-tag {
    font-weight: 900;
    font-size: 0.9rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    display: block;
}

.section-title {
    font-size: 4.5rem;
    color: var(--primary);
    letter-spacing: -2px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.pillar-card {
    background: white;
    padding: 6rem 3.5rem;
    border-radius: 50px;
    text-align: center;
    border: 1px solid #f1f5f9;
    transition: all 0.8s var(--ease-out-expo);
    position: relative;
    z-index: 1;
}

.pillar-card:hover {
    transform: translateY(-25px);
    border-color: transparent;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.1);
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--secondary), var(--primary), var(--secondary));
    background-size: 400% 400%;
    z-index: -1;
    border-radius: 52px;
    opacity: 0;
    transition: opacity 0.5s;
    animation: border-flow 10s infinite;
}

.pillar-card:hover::before {
    opacity: 1;
}

.pillar-card-inner {
    background: white;
    border-radius: 48px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: 0.8s;
}

.pillar-card:hover .pillar-card-inner {
    background: var(--primary);
}

.pillar-card:hover h3,
.pillar-card:hover p {
    color: white;
}

.icon-wrap {
    width: 100px;
    height: 100px;
    background: #f8fafc;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 3.5rem;
    color: var(--primary);
    transition: all 0.6s var(--ease-out-expo);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pillar-card:hover .icon-wrap {
    background: var(--secondary);
    color: white;
    transform: rotate(15deg) scale(1.15);
}

/* --- SECTORS --- */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 6rem;
}

.sector-case {
    background: white;
    border-radius: 60px;
    padding: 4.5rem;
    transition: all 0.9s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 480px;
    border: 1px solid #eef2f6;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    cursor: pointer;
}

.sector-case:hover {
    transform: scale(1.05) translateY(-10px);
    border-color: transparent;
    box-shadow: 0 60px 120px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.sector-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-mesh);
    opacity: 0;
    transition: 1s var(--ease-out-expo);
    z-index: 0;
}

.sector-case:hover .sector-mesh {
    opacity: 1;
    transform: scale(1.2);
}

.sector-case-content {
    position: relative;
    z-index: 1;
    transition: 0.9s;
}

.sector-case:hover .sector-case-content {
    transform: translateY(-5px);
}

.sector-label {
    font-size: 0.9rem;
    font-weight: 900;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    display: block;
}

.sector-case h3 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--primary);
    line-height: 1.1;
}

.sector-case p {
    font-size: 1.1rem;
    color: var(--gray);
    font-weight: 400;
}

.sector-case:hover h3 {
    color: var(--primary);
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.sector-roi {
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--accent);
    margin-top: 3rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sector-roi::before {
    content: '';
    width: 30px;
    height: 3px;
    background: var(--accent);
    border-radius: 10px;
}

/* --- ZIG-ZAG APPROACH --- */
.zigzag-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15rem;
    width: 100%;
}

.zigzag-row:nth-child(even) {
    flex-direction: row-reverse;
}

.zigzag-content {
    width: 48%;
    position: relative;
}

.zigzag-visual {
    width: 42%;
    height: 450px;
    border-radius: 80px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.08);
    background: #fff;
    transition: 1s var(--ease-out-expo);
}

.zigzag-row:hover .zigzag-visual {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 60px 120px rgba(0, 0, 0, 0.15);
}

.visual-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--secondary) 0%, var(--primary) 100%);
    opacity: 0.05;
    transition: 0.8s;
}

.zigzag-row:hover .visual-mesh {
    opacity: 0.15;
    transform: scale(1.5);
}

.step-num {
    font-size: 10rem;
    font-weight: 900;
    color: rgba(2, 6, 23, 0.03);
    position: absolute;
    top: -50px;
    left: -30px;
    z-index: 0;
    line-height: 1;
}

.zigzag-content h3 {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    letter-spacing: -1px;
}

.zigzag-content p {
    font-size: 1.35rem;
    color: var(--gray);
    font-weight: 300;
    position: relative;
    z-index: 1;
}

/* --- CONTACT & FOOTER --- */
.contact-wrap {
    padding: 12rem 0;
    background: #000;
    border-radius: 120px 120px 0 0;
    position: relative;
    z-index: 20;
    color: white;
    margin-top: -120px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 10rem;
    align-items: center;
}

.contact-card-premium {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 70px;
    padding: 5rem;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.6);
}

.info-link {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 800;
    display: block;
    margin-top: 0.5rem;
    transition: 0.3s;
}

.info-link:hover {
    color: var(--secondary);
    transform: translateX(10px);
}

.footer-prestige {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6rem 0;
    color: #94a3b8;
}

.footer-logo {
    height: 75px;
    filter: contrast(1.2) brightness(1.2);
    transition: 0.5s;
}

.footer-logo:hover {
    filter: contrast(1.5) brightness(1.5) drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
}

/* --- RESPONSIVE --- */
@media (max-width: 1300px) {
    .hero h1 {
        font-size: 4.5rem;
    }

    .section-title {
        font-size: 3.5rem;
    }

    .pillars-grid,
    .sectors-grid {
        gap: 2rem;
    }

    .sector-case {
        padding: 3rem;
        min-height: 420px;
        border-radius: 40px;
    }
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 4rem;
    }

    .pillars-grid,
    .sectors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .zigzag-row {
        flex-direction: column;
        text-align: center;
        margin-bottom: 10rem;
    }

    .zigzag-content,
    .zigzag-visual {
        width: 100%;
    }

    .zigzag-visual {
        height: 350px;
        margin-top: 3rem;
    }

    .step-num {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 5rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 6rem 0;
    }

    .hero h1 {
        font-size: 3rem;
        letter-spacing: -2px;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .pillars-grid,
    .sectors-grid {
        grid-template-columns: 1fr;
    }

    .pillar-card,
    .sector-case {
        padding: 3.5rem 2.5rem;
        border-radius: 35px;
    }

    .contact-card-premium {
        padding: 3.5rem 2rem;
        border-radius: 40px;
    }

    .info-link {
        font-size: 1.4rem;
    }

    .logo-img {
        height: 45px;
    }

    .nav-links {
        display: none;
    }

    nav {
        justify-content: space-between;
    }
}

/* Reveal Core */
.reveal {
    opacity: 0;
    transform: translateY(80px);
    transition: 1.4s var(--ease-out-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}