/*
 Theme Name:   Hello Elementor Child - Prozentia
 Theme URI:    https://prozentia.com
 Description:  Thème enfant Hello Elementor pour Prozentia - Midnight Tech
 Author:       Prozentia
 Template:     hello-elementor
 Version:      1.0.0
 Text Domain:  hello-elementor-child
*/

/* ==============================
   FONTS - Satoshi & General Sans
   ============================== */

@font-face {
    font-family: "Satoshi";
    src: url("/wp-content/fonts/satoshi-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Satoshi";
    src: url("/wp-content/fonts/satoshi-medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Satoshi";
    src: url("/wp-content/fonts/satoshi-bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "General Sans";
    src: url("/wp-content/fonts/general-sans-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "General Sans";
    src: url("/wp-content/fonts/general-sans-medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "General Sans";
    src: url("/wp-content/fonts/general-sans-semibold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "General Sans";
    src: url("/wp-content/fonts/general-sans-bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==============================
   CSS VARIABLES - Midnight Tech
   ============================== */

:root {
    /* Fond */
    --bg-primary: #0D1B2A;
    --bg-surface: #142535;
    --bg-secondary: #1B3A4B;
    --bg-deep: #0A1628;

    /* Accent */
    --accent: #00D4AA;
    --accent-hover: #00B4D8;
    --accent-glow: rgba(0, 212, 170, 0.3);

    /* Texte */
    --text-primary: #E0E7EE;
    --text-secondary: #94A3B8;
    --text-white: #FFFFFF;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-hover: #00D4AA;

    /* Shadows */
    --shadow-glow: 0 0 20px rgba(0, 212, 170, 0.3);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Transitions */
    --transition: all 0.3s ease;

    /* Fonts */
    --font-heading: "Satoshi", sans-serif;
    --font-body: "General Sans", sans-serif;
    --font-mono: "JetBrains Mono", monospace;
}

/* ==============================
   BASE STYLES
   ============================== */

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-white);
}

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

a:hover {
    color: var(--accent-hover);
}

/* ==============================
   UTILITY CLASSES
   ============================== */

.bg-primary { background-color: var(--bg-primary); }
.bg-surface { background-color: var(--bg-surface); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-deep { background-color: var(--bg-deep); }
.text-accent { color: var(--accent); }
.text-secondary-color { color: var(--text-secondary); }

/* ==============================
   BUTTONS
   ============================== */

.btn-cta {
    background: var(--accent);
    color: var(--bg-primary) !important;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-cta:hover {
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(0, 212, 170, 0.5);
    color: var(--bg-primary) !important;
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary) !important;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent) !important;
}

/* ==============================
   CARDS
   ============================== */

.card-service {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    transition: var(--transition);
}

.card-service:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 212, 170, 0.15);
}

a.card-service {
    display: block;
    text-decoration: none;
}

.card-service .card-icon {
    color: var(--accent);
    font-size: 32px;
    margin-bottom: 16px;
}

/* ==============================
   STATS BAR
   ============================== */

.stats-bar {
    background: var(--bg-surface);
    padding: 40px 0;
    border-top: 1px solid rgba(0, 212, 170, 0.15);
    border-bottom: 1px solid rgba(0, 212, 170, 0.15);
}

.stat-number {
    color: var(--accent);
    font-size: 42px;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1.2;
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==============================
   NAVBAR OVERRIDES
   ============================== */

.site-header,
.ehf-header,
.ehf-header-ct {
    background: var(--bg-primary) !important;
    backdrop-filter: blur(12px);
}

.prz-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Logo dot glow */
.logo-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: var(--shadow-glow);
    animation: pulse-glow 2s infinite;
    vertical-align: middle;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px var(--accent-glow); }
    50% { box-shadow: 0 0 25px var(--accent-glow); }
}

/* ==============================
   CUSTOM NAV MENU
   ============================== */

.prz-nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.prz-nav-item {
    position: relative;
}

.prz-nav-link {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7) !important;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    padding: 12px 16px;
    text-decoration: none !important;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.prz-nav-link:hover,
.prz-nav-item:hover > .prz-nav-link {
    color: #FFFFFF !important;
}

.prz-nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.prz-nav-link:hover::after,
.prz-nav-item:hover > .prz-nav-link::after {
    transform: scaleX(1);
}

/* Dropdown */
.prz-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 8px 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    z-index: 1001;
}

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

.prz-dropdown li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-primary) !important;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.prz-dropdown li a:hover {
    color: var(--accent) !important;
    background: rgba(0, 212, 170, 0.05);
    padding-left: 24px;
}

/* Mobile hamburger */
.prz-hamburger {
    display: none;
    cursor: pointer;
    padding: 8px;
}

.prz-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

@media (max-width: 767px) {
    .prz-nav-list {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(13, 27, 42, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        z-index: 9999;
        padding: 20px;
    }

    .prz-nav-list.active {
        display: flex;
    }

    .prz-nav-link {
        font-size: 18px;
        padding: 14px 20px;
    }

    .prz-nav-link::after {
        display: none;
    }

    .prz-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        min-width: auto;
    }

    .prz-dropdown li a {
        font-size: 15px;
        padding: 8px 32px;
        color: var(--text-secondary) !important;
    }

    .prz-hamburger {
        display: block;
    }
}

/* ==============================
   FOOTER OVERRIDES
   ============================== */

.site-footer,
.ehf-footer {
    background: linear-gradient(180deg, var(--bg-deep), var(--bg-primary)) !important;
    border-top: 1px solid rgba(0, 212, 170, 0.2);
}

/* ==============================
   SECTION HELPERS
   ============================== */

html {
    scroll-behavior: smooth;
}

.hero-gradient {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.06;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.hero-gradient::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-hover) 0%, transparent 70%);
    opacity: 0.05;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.section-dark {
    background: var(--bg-primary);
}

.section-surface {
    background: var(--bg-surface);
}

/* ==============================
   GLOW BLOBS (Hero background)
   ============================== */

.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.06;
    pointer-events: none;
}

.glow-blob-green {
    background: var(--accent);
}

.glow-blob-cyan {
    background: var(--accent-hover);
}

/* ==============================
   FAQ ACCORDION
   ============================== */

.faq-item {
    background: var(--bg-surface);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    padding: 20px 24px;
    transition: var(--transition);
}

.faq-item:hover {
    background: #182d40;
}

.faq-item summary {
    color: var(--text-white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary span {
    color: var(--accent);
    font-size: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item[open] summary span {
    transform: rotate(45deg);
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin: 16px 0 0;
}

/* ==============================
   TEXT GLOBAL
   ============================== */

.elementor-widget-text-editor p {
    max-width: 800px;
    line-height: 1.7;
}

.elementor-widget-text-editor {
    font-size: 16px;
    line-height: 1.7;
}

/* ==============================
   PLACEHOLDER IMAGES
   ============================== */

.placeholder-img {
    transition: var(--transition);
}

.placeholder-img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* ==============================
   ANIMATIONS
   ============================== */

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ==============================
   ELEMENTOR OVERRIDES
   ============================== */

.elementor-section {
    --e-global-color-primary: #0D1B2A;
    --e-global-color-secondary: #1B3A4B;
    --e-global-color-accent: #00D4AA;
    --e-global-color-text: #E0E7EE;
}

.elementor-widget-heading .elementor-heading-title {
    font-family: var(--font-heading);
}

.elementor-widget-text-editor {
    font-family: var(--font-body);
    color: var(--text-primary);
}

/* Elementor buttons override */
.elementor-button {
    font-family: var(--font-heading) !important;
    letter-spacing: 0.03em;
}

/* ==============================
   RESPONSIVE
   ============================== */

@media (max-width: 767px) {
    h1, .elementor-heading-title.elementor-size-xxl {
        font-size: 32px !important;
        line-height: 1.1 !important;
    }
    h2, .elementor-heading-title.elementor-size-xl {
        font-size: 26px !important;
    }
    .btn-cta, .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 16px 24px;
    }
    .stat-number {
        font-size: 32px !important;
    }

    /* Stats 2x2 grid on mobile */
    .stats-bar .elementor-row,
    .stats-bar .elementor-container {
        flex-wrap: wrap !important;
    }
    .stats-bar .elementor-column {
        width: 50% !important;
        min-height: auto !important;
        margin-bottom: 20px;
    }

    /* FAQ full width */
    .faq-item {
        padding: 16px 18px;
    }
    .faq-item summary {
        font-size: 14px;
    }

    /* Solutions cards single column */
    .card-service {
        margin-bottom: 16px;
    }

    /* Placeholder images */
    .placeholder-img {
        margin-bottom: 24px;
    }

    /* Hero blobs smaller on mobile */
    .hero-gradient::before {
        width: 250px;
        height: 250px;
    }
    .hero-gradient::after {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 1024px) and (min-width: 768px) {
    h1 { font-size: 40px !important; }
    h2 { font-size: 30px !important; }
    .stat-number { font-size: 36px !important; }
}

/* ==============================
   ACCESSIBILITY
   ============================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
