/* =========================================
   CodeGuardian — Modern Design Layer
   Surcharge progressive de style.min.css
   ========================================= */

/* -----------------------------------------------------------------------
   1. BOUTONS — arrondi + glow au hover (on ne touche pas au background
      pour ne pas casser l'animation .shape jaune)
----------------------------------------------------------------------- */

.btn {
    border-radius: 10px !important;
    box-shadow: 0 4px 18px rgba(54, 87, 205, 0.35);
}

.btn:hover {
    box-shadow: 0 8px 28px rgba(54, 87, 205, 0.5) !important;
}

.btn:active {
    box-shadow: 0 3px 12px rgba(54, 87, 205, 0.35) !important;
}

.btn-border {
    border-radius: 10px !important;
}


/* -----------------------------------------------------------------------
   2. HERO — overlay mesh gradient par-dessus le background PNG
----------------------------------------------------------------------- */

.area-two-bg-wrap {
    position: relative;
}

.area-two-bg-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 12% 65%, rgba(138, 81, 251, 0.18) 0%, transparent 52%),
        radial-gradient(ellipse at 88% 12%, rgba(54, 87, 205, 0.22) 0%, transparent 48%),
        radial-gradient(ellipse at 55% 90%, rgba(54, 87, 205, 0.10) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.area-two-bg-wrap > * {
    position: relative;
    z-index: 1;
}


/* -----------------------------------------------------------------------
   3. ICÔNES DE SERVICES — gradient + shadow colorée plus marquée
----------------------------------------------------------------------- */

.services-two-icon {
    background: linear-gradient(145deg, #2a43b8 0%, #3657cd 55%, #5070e8 100%) !important;
    box-shadow: 0 10px 30px rgba(54, 87, 205, 0.45) !important;
    border-radius: 16px !important;
    transition: box-shadow .3s, transform .3s;
}

.services-two-item:hover .services-two-icon {
    box-shadow: 0 16px 40px rgba(54, 87, 205, 0.6) !important;
    transform: scale(1.06);
}


/* -----------------------------------------------------------------------
   4. CARDS DE SERVICES (homepage) — hover avec profondeur colorée
----------------------------------------------------------------------- */

.services-two-item {
    transition: background .3s, box-shadow .3s;
    border-radius: 4px;
}

.services-two-item:hover {
    background: rgba(54, 87, 205, 0.07);
    box-shadow:
        inset 0 0 0 1px rgba(54, 87, 205, 0.18),
        0 10px 36px rgba(54, 87, 205, 0.13);
}


/* -----------------------------------------------------------------------
   5. STEPS (homepage) — glass card subtil
----------------------------------------------------------------------- */

.steps-area .steps-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 24px 16px;
    transition: transform .3s, box-shadow .3s, background .3s;
}

.steps-area .steps-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}


/* -----------------------------------------------------------------------
   6. CARDS FORMATION (landing) — glassmorphism violet
----------------------------------------------------------------------- */

.steps-item.border {
    background: rgba(138, 81, 251, 0.07) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(138, 81, 251, 0.3) !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 24px rgba(138, 81, 251, 0.12);
    transition: transform .3s, box-shadow .3s;
}

.steps-item.border:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 44px rgba(138, 81, 251, 0.28);
    border-color: rgba(138, 81, 251, 0.55) !important;
}




/* -----------------------------------------------------------------------
   8. MARQUEE — fade aux bords
----------------------------------------------------------------------- */

.marquee-area {
    position: relative;
}

.marquee-area::before,
.marquee-area::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 90px;
    z-index: 2;
    pointer-events: none;
}

.marquee-area::before {
    left: 0;
    background: linear-gradient(to right, #00172f 0%, transparent 100%);
}

.marquee-area::after {
    right: 0;
    background: linear-gradient(to left, #00172f 0%, transparent 100%);
}


/* -----------------------------------------------------------------------
   9. TEXTES ACCENTUÉS — lueur subtile sur l'orange/violet brand
----------------------------------------------------------------------- */

.text-orange,
.section-title .title span {
    text-shadow: 0 0 28px rgba(249, 199, 71, 0.22);
}

.text-violet {
    text-shadow: 0 0 24px rgba(138, 81, 251, 0.25);
}


/* -----------------------------------------------------------------------
   10. TITRES H2 — shadow légère pour la profondeur
----------------------------------------------------------------------- */

h2.title {
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}


/* -----------------------------------------------------------------------
   11. BLOG LIST — card avec hover lift + image radius
----------------------------------------------------------------------- */

.blog-post-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    overflow: hidden;
    margin: 0 !important;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}

.blog-post-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(54, 87, 205, 0.2);
    border-color: rgba(54, 87, 205, 0.25);
}

.blog-post-thumb {
    margin: 0 !important;
    overflow: hidden;
}

.blog-post-thumb img {
    width: 100%;
    display: block;
    transition: transform .4s;
}

.blog-post-item:hover .blog-post-thumb img {
    transform: scale(1.04);
}

.blog-post-content {
    padding: 20px 22px 24px;
}

.blog-post-content .title {
    font-size: 18px !important;
}


/* -----------------------------------------------------------------------
   12. BLOG POST — thumbnail radius + meta + article content
----------------------------------------------------------------------- */

.standard-post-thumb img {
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.standard-post-content {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 40px 48px !important;
    margin-top: 10px;
}

.standard-post-meta {
    gap: 20px;
    margin-bottom: 32px !important;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.standard-post-meta li {
    display: flex;
    align-items: center;
    gap: 6px;
}


/* -----------------------------------------------------------------------
   13. BLOG TOC — sommaire flottant sur les articles de blog
----------------------------------------------------------------------- */

#blog-toc {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 210px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(0, 23, 47, 0.92);
    border: 1px solid rgba(54, 87, 205, 0.25);
    border-radius: 12px;
    padding: 16px 14px;
    z-index: 100;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(54, 87, 205, 0.08);
    display: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(54, 87, 205, 0.3) transparent;
}

#blog-toc::-webkit-scrollbar { width: 4px; }
#blog-toc::-webkit-scrollbar-thumb { background: rgba(54, 87, 205, 0.3); border-radius: 4px; }

@media (min-width: 1600px) {
    #blog-toc { display: block; }
}

.toc-header {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(249, 199, 71, 0.9);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 7px;
}

.toc-header::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(249, 199, 71, 0.85);
    flex-shrink: 0;
}

#blog-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#blog-toc .toc-link {
    display: block;
    font-size: 11.5px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    padding: 6px 8px 6px 10px;
    border-radius: 7px;
    border-left: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

#blog-toc .toc-link:hover {
    color: rgba(255, 255, 255, 0.82);
    background: rgba(54, 87, 205, 0.13);
    border-left-color: rgba(54, 87, 205, 0.5);
}

#blog-toc .toc-link.active {
    color: #fff;
    background: rgba(54, 87, 205, 0.2);
    border-left-color: rgba(249, 199, 71, 0.9);
    font-weight: 500;
}

#blog-toc .toc-link--sub {
    padding-left: 20px;
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.32);
}

#blog-toc .toc-link--sub:hover {
    color: rgba(255, 255, 255, 0.7);
}

#blog-toc .toc-link--sub.active {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}


/* -----------------------------------------------------------------------
   14. BLOG SECTION TITLES — badge pill + gradient underline
----------------------------------------------------------------------- */

.blog-section-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.blog-section-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #3657cd 0%, #8A51FB 100%);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(54, 87, 205, 0.4);
}

.blog-section-title h3 {
    margin: 0 !important;
    position: relative;
    padding-bottom: 16px !important;
    background: linear-gradient(135deg, #ffffff 30%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-section-title h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 56px;
    height: 2px;
    background: linear-gradient(to right, #3657cd, transparent);
    border-radius: 2px;
}
