/* ==============================
   audit-web.css
   ============================== */

/* ── Navbar forcée en clair sur hero vidéo ── */
.aw-hero-active .navbar-nav .nav-link,
.aw-hero-active .navbar-brand,
.aw-hero-active .navbar-toggler {
    color: rgba(255,255,255,.85) !important;
}
.aw-hero-active .navbar-nav .nav-link:hover {
    color: #fff !important;
}

@media (max-width: 767px) {
    [data-bs-theme="light"] .aw-hero-active .navbar-nav .nav-link,
    [data-bs-theme="light"] .aw-hero-active .navbar-brand,
    [data-bs-theme="light"] .aw-hero-active .navbar-toggler {
        color: rgba(28, 28, 28, 0.85) !important;
    }
    [data-bs-theme="light"] .aw-hero-active .navbar-nav .nav-link:hover {
        color: rgba(28, 28, 28, 0.85) !important;
    }
}

/* ── Animations scroll ── */
.aw-lazy {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease;
}
.aw-lazy.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Badge section ── */
.aw-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6366f1;
    background: rgba(99,102,241,.1);
    border: 1px solid rgba(99,102,241,.25);
    border-radius: 50px;
    padding: .3rem .85rem;
    margin-bottom: 1rem;
}

/* ── Hero vidéo ── */
.aw-hero {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 0;
}
.aw-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.aw-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 8, 25, 0.55);
    z-index: 1;
}
.aw-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 140px 0 80px;
}
.aw-hero-title {
    font-size: clamp(1.85rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}
.aw-hero-title span {
    color: #a78bfa;
}
.aw-hero-sub {
    font-size: clamp(.95rem, 2vw, 1.15rem);
    color: rgba(255,255,255,.7);
    max-width: 540px;
    line-height: 1.75;
}

@media (max-width: 767px) {
    .aw-hero { min-height: 100dvh; }
    .aw-hero-content { padding: 110px 0 60px; }
    .aw-hero-title { font-size: clamp(1.4rem, 7vw, 1.75rem); }
    .aw-hero-br { display: none; }
}

/* ── Fix sticky hero scroll overlap ── */
html, body {
    overflow-x: hidden;
}

/* ── Fond initial page ── */
[data-bs-theme="light"] body {
    background-color: #0a0819;
}
[data-bs-theme="light"] .page-wrapper {
    background-color: #0a0819;
}
.page-wrapper {
    overflow: visible;
}

/* ── Glassmorphism content wrapper ── */
.aw-content-wrapper {
    position: relative;
    z-index: 10;
    margin-top: -60px;
    border-radius: 2rem 2rem 0 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: clip;
    opacity: 0;
    transform: translateY(40px);
    animation: aw-reveal .9s cubic-bezier(.22,1,.36,1) .2s forwards;
}
[data-bs-theme="dark"] .aw-content-wrapper {
    background: rgba(10, 8, 30, 0.85);
    border-top: 1px solid rgba(99,102,241,.15);
}
[data-bs-theme="light"] .aw-content-wrapper {
    background: rgba(255,255,255,.85);
    border-top: 1px solid rgba(99,102,241,.12);
}
@keyframes aw-reveal {
    from {
        opacity: 0;
        transform: translateY(40px);
        background: transparent;
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Scroll indicator ── */
.aw-scroll-hint-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    overflow: hidden;
    border-radius: 2rem 2rem 0 0;
    z-index: 20;
}
.aw-scroll-hint-line {
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #a78bfa, #6366f1, transparent);
    animation: aw-scroll-hint 4s ease-in-out infinite;
}
@keyframes aw-scroll-hint {
    0%   { left: -40%; opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}
@media (max-width: 767px) {
    .aw-scroll-hint-line {
        width: 25%;
        animation: aw-scroll-hint-mobile 4s linear infinite;
    }
    @keyframes aw-scroll-hint-mobile {
        0%   { left: -25%; opacity: 0; }
        20%  { left: 5%; opacity: 1; }
        80%  { left: 70%; opacity: 1; }
        100% { left: 125%; opacity: 0; }
    }
}
.aw-content-wrapper::after {
    display: none;
}

/* ── Sections services ── */
.aw-service-wrap {
    position: relative;
    padding: 60px 0 70px;
}
.aw-service-wrap + .aw-service-wrap {
    border-top: 1px solid rgba(99,102,241,.07);
}

/* ── Image avec glow ── */
.aw-img-wrap {
    position: relative;
}
.aw-img {
    border-radius: 1.25rem;
    width: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    transition: transform .4s ease, box-shadow .4s ease;
}
.aw-img:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(99,102,241,.2);
}
[data-bs-theme="dark"] .aw-img {
    box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
[data-bs-theme="light"] .aw-img {
    box-shadow: 0 12px 40px rgba(0,0,0,.1);
}
.aw-img-glow {
    position: absolute;
    bottom: -24px;
    left: 10%;
    width: 80%;
    height: 60px;
    background: rgba(99,102,241,.3);
    filter: blur(32px);
    border-radius: 50%;
    z-index: 0;
    transition: opacity .4s ease;
}
.aw-img-wrap:hover .aw-img-glow {
    opacity: .7;
}
[data-bs-theme="light"] .aw-img-glow {
    background: rgba(99,102,241,.15);
}
.aw-service-wrap:nth-child(even) .aw-img-glow {
    background: rgba(99,102,241,.2);
}
.aw-service-wrap:nth-child(odd) .aw-img-glow {
    background: rgba(167,139,250,.2);
}

/* ── Tags ── */
.aw-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: 1.25rem;
}
.aw-tag {
    font-size: .72rem;
    font-weight: 600;
    padding: .22rem .7rem;
    border-radius: 50px;
    background: rgba(99,102,241,.1);
    color: #6366f1;
    border: 1px solid rgba(99,102,241,.2);
}

/* ── Mini-cards 2x2 ── */
.aw-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin-top: 1.5rem;
}
.aw-grid-card {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    border-radius: .85rem;
    padding: .9rem 1rem;
    border: 1px solid rgba(99,102,241,.12);
    transition: border-color .25s, box-shadow .25s;
}
.aw-grid-card:hover {
    border-color: rgba(99,102,241,.35);
    box-shadow: 0 4px 16px rgba(99,102,241,.08);
}
[data-bs-theme="dark"] .aw-grid-card {
    background: rgba(255,255,255,.04);
}
[data-bs-theme="light"] .aw-grid-card {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.aw-grid-icon {
    width: 36px;
    height: 36px;
    border-radius: .6rem;
    background: rgba(99,102,241,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    font-size: 1rem;
    flex-shrink: 0;
}
.aw-grid-card h3 {
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: .15rem;
    line-height: 1.3;
}
.aw-grid-card p {
    font-size: .75rem;
    opacity: .65;
    margin: 0;
    line-height: 1.4;
}
@media (max-width: 575px) {
    .aw-grid { grid-template-columns: 1fr; }
}

/* ── Section situations ── */
.aw-situations {
    padding: 60px 0 70px;
    border-top: 1px solid rgba(99,102,241,.07);
}
.aw-situation-card {
    border-radius: 1rem;
    padding: 1.75rem;
    border: 1px solid rgba(99,102,241,.12);
    height: 100%;
    transition: border-color .3s, box-shadow .3s, transform .3s;
}
.aw-situation-card:hover {
    border-color: rgba(99,102,241,.35);
    box-shadow: 0 8px 32px rgba(99,102,241,.1);
    transform: translateY(-4px);
}
[data-bs-theme="dark"] .aw-situation-card {
    background: rgba(255,255,255,.03);
}
[data-bs-theme="light"] .aw-situation-card {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.aw-situation-icon {
    width: 48px;
    height: 48px;
    border-radius: .85rem;
    background: rgba(99,102,241,.12);
    border: 1px solid rgba(99,102,241,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
@media (max-width: 767px) {
    .aw-situations { padding: 40px 0 50px; }
}

/* ── Séparateur inter-FAQ ── */
.aw-separator {
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}
.aw-separator::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99,102,241,.08) 0%, rgba(99,102,241,.02) 50%, rgba(167,139,250,.06) 100%);
    z-index: 0;
}
.aw-separator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(99,102,241,.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.aw-separator-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    border: 1px solid rgba(99,102,241,.15);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
[data-bs-theme="dark"] .aw-separator-inner {
    background: rgba(99,102,241,.06);
}
[data-bs-theme="light"] .aw-separator-inner {
    background: rgba(255,255,255,.7);
    box-shadow: 0 8px 32px rgba(99,102,241,.08);
}
.aw-separator-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .5rem;
    flex: 1;
    min-width: 160px;
    padding: 1rem 1.5rem;
}
.aw-separator-icon {
    width: 44px;
    height: 44px;
    border-radius: .75rem;
    background: rgba(99,102,241,.12);
    border: 1px solid rgba(99,102,241,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    font-size: 1.1rem;
    margin-bottom: .25rem;
}
.aw-separator-number {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.aw-separator-label {
    font-size: .82rem;
    font-weight: 500;
    opacity: .65;
    line-height: 1.5;
}
.aw-separator-divider {
    width: 1px;
    height: 70px;
    background: linear-gradient(to bottom, transparent, rgba(99,102,241,.25), transparent);
    flex-shrink: 0;
}
@media (max-width: 767px) {
    .aw-separator { padding: 40px 0; }
    .aw-separator-divider { display: none; }
    .aw-separator-inner {
        gap: 0;
        padding: 1.5rem 1rem;
        border-radius: 1rem;
    }
    .aw-separator-stat {
        min-width: 140px;
        padding: .75rem 1rem;
    }
}

/* ── FAQ ── */
.aw-faq {
    padding: 60px 0 70px;
    border-top: 1px solid rgba(99,102,241,.07);
}
.aw-faq-2 {
    border-top: none;
}
.aw-faq-sticky {
    position: sticky;
    top: 100px;
}
.aw-faq-accordion .aw-faq-item {
    border: 1px solid rgba(99,102,241,.12) !important;
    border-radius: .85rem !important;
    overflow: hidden;
    transition: border-color .3s, box-shadow .3s;
}
.aw-faq-accordion .aw-faq-item:has(.accordion-button:not(.collapsed)) {
    border-color: rgba(99,102,241,.4) !important;
    box-shadow: 0 6px 24px rgba(99,102,241,.08);
}
[data-bs-theme="dark"] .aw-faq-item {
    background: rgba(255,255,255,.04);
}
[data-bs-theme="light"] .aw-faq-item {
    background: #fff;
}
.aw-faq-btn {
    font-size: .95rem;
    font-weight: 600;
    padding: 1.1rem 1.25rem;
    background: transparent !important;
    color: inherit !important;
}
.aw-faq-btn:not(.collapsed) {
    color: #6366f1 !important;
}
.aw-faq-btn::after {
    filter: invert(40%) sepia(80%) saturate(500%) hue-rotate(210deg);
}
.aw-faq-body {
    font-size: .88rem;
    line-height: 1.75;
    opacity: .75;
    padding: 0 1.25rem 1.25rem;
}
@media (max-width: 767px) {
    .aw-faq { padding: 40px 0 50px; }
    .aw-faq-sticky { position: relative; top: 0; }
}

/* ── Responsive global ── */
@media (max-width: 767px) {
    .aw-content-wrapper {
        margin-top: -40px;
        border-radius: 1.25rem 1.25rem 0 0;
    }
    .aw-service-wrap { padding: 40px 0 50px; }
    .aw-img-glow { display: none; }
    .aw-img:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .aw-lazy { opacity: 1; transform: none; transition: none; }
}

/* ── CTA Final ── */
.cta-final {
    position: relative;
    border-radius: 1.5rem;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, rgba(99,102,241,.15) 0%, rgba(99,102,241,.04) 100%);
    border: 1px solid rgba(99,102,241,.25);
    overflow: hidden;
}
.cta-final-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,.18) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
}
.cta-final-badge {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #6366f1;
    background: rgba(99,102,241,.1);
    border: 1px solid rgba(99,102,241,.25);
    border-radius: 50px;
    padding: .3rem .9rem;
}
.cta-final-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
}
.cta-final-sub {
    font-size: 1rem;
    opacity: .72;
    max-width: 480px;
}
.cta-final-box {
    background: rgba(99,102,241,.06);
    border: 1px solid rgba(99,102,241,.15);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: .85rem;
}
.cta-final-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .92rem;
    font-weight: 500;
}
.cta-final-item i {
    color: #6366f1;
    font-size: 1.1rem;
    flex-shrink: 0;
}
@media (max-width: 767px) {
    .cta-final { padding: 2.5rem 1.5rem; }
    .cta-final-glow {
        width: 250px;
        height: 250px;
        top: -60px;
        right: -60px;
    }
    .cta-final-sub { max-width: 100%; }
}