/* ============================================================
   AKRA PREMIUM — Upgraded Design System (2026)
   Contient : Section dividers, card glows, animated counters,
   hero grid FX, premium badge effects, gradient borders,
   micro-animations, service-card redesign, testimonial cards
   ============================================================ */


/* ────────────────────────────────────────────────────────────
   1. SECTION DIVIDERS — Séparateurs de section premium
   ──────────────────────────────────────────────────────────── */

/* Ligne gradient horizontale */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 174, 239, 0.3) 20%,
            rgba(0, 174, 239, 0.6) 50%,
            rgba(0, 174, 239, 0.3) 80%,
            transparent 100%);
    position: relative;
    margin: 0;
}

.section-divider.glow::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 30%;
    right: 30%;
    height: 5px;
    background: radial-gradient(ellipse, rgba(0, 174, 239, 0.4) 0%, transparent 70%);
    filter: blur(4px);
}

/* Orbe de section — arrière-plan radial décoratif */
.section-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.section-orb--tl {
    top: -200px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 174, 239, 0.06) 0%, transparent 70%);
}

.section-orb--br {
    bottom: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 119, 182, 0.06) 0%, transparent 70%);
}


/* ────────────────────────────────────────────────────────────
   2. HERO SECTION — Grille animée en arrière-plan
   ──────────────────────────────────────────────────────────── */

.hero-grid-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0, 174, 239, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 174, 239, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridDrift 20s linear infinite;
    opacity: 0.8;
}

@keyframes gridDrift {
    0% {
        background-position: 0 0, 0 0;
    }

    100% {
        background-position: 60px 60px, 60px 60px;
    }
}

/* Orbe hero animée */
.hero-orb-1 {
    position: absolute;
    top: -100px;
    right: 5%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 174, 239, 0.12) 0%, transparent 70%);
    pointer-events: none;
    animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-2 {
    position: absolute;
    bottom: -50px;
    left: 10%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 119, 182, 0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: orbFloat 12s ease-in-out infinite reverse;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}


/* ────────────────────────────────────────────────────────────
   3. ANIMATED COUNTERS — Chiffres stats homepage
   ──────────────────────────────────────────────────────────── */

.stat-counter {
    transition: all 0.3s ease;
}

/* Numéros qui "tick" — state pendant l'animation */
.stat-counter.counting {
    color: var(--color-primary);
}


/* ────────────────────────────────────────────────────────────
   4. GRADIENT BORDERS — Bordures en dégradé live
   ──────────────────────────────────────────────────────────── */

.gradient-border {
    position: relative;
    background-clip: padding-box;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.5), rgba(0, 119, 182, 0.2), rgba(0, 174, 239, 0.5));
    background-size: 200% 200%;
    animation: gradientBorderShift 4s ease infinite;
    z-index: -1;
}

@keyframes gradientBorderShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


/* ────────────────────────────────────────────────────────────
   5. GLOW CARDS — Cards avec glow interactif au hover
   ──────────────────────────────────────────────────────────── */

.glow-card {
    position: relative;
    transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease;
}

.glow-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(0, 174, 239, 0.06),
            transparent 40%);
    pointer-events: none;
}

.glow-card:hover::after {
    opacity: 1;
}

.glow-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 174, 239, 0.15),
        0 0 30px rgba(0, 174, 239, 0.08);
}


/* ────────────────────────────────────────────────────────────
   6. SERVICE CARDS — Redesign complet
   ──────────────────────────────────────────────────────────── */

.service-card-premium {
    position: relative;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    overflow: hidden;
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease, border-color 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Noise texture overlay décoratif */
.service-card-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
    border-radius: inherit;
}

/* Gradient accent slice au hover */
.service-card-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-teal-500));
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-spring);
}

.service-card-premium:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 174, 239, 0.3);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.12),
        0 0 40px rgba(0, 174, 239, 0.1);
}

.service-card-premium:hover::after {
    transform: scaleX(1);
}

[data-theme="dark"] .service-card-premium {
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .service-card-premium:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 174, 239, 0.25);
}

.service-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.15), rgba(0, 119, 182, 0.1));
    border: 1px solid rgba(0, 174, 239, 0.2);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-5);
    transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease;
    position: relative;
    z-index: 1;
}

.service-card-premium:hover .service-card-icon {
    transform: scale(1.12) rotate(-6deg);
    box-shadow: 0 8px 24px rgba(0, 174, 239, 0.3);
}

.service-card-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-3);
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.service-card-desc {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.7;
    flex: 1;
    position: relative;
    z-index: 1;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-primary);
    margin-top: var(--space-5);
    text-decoration: none;
    position: relative;
    z-index: 1;
    transition: gap 0.2s ease;
}

.service-card-link:hover {
    gap: var(--space-3);
}

.service-card-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-xs);
    font-weight: 700;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 999px;
    padding: 3px 10px;
    margin-bottom: var(--space-4);
    position: relative;
    z-index: 1;
}


/* ────────────────────────────────────────────────────────────
   7. TESTIMONIALS — Cards améliorées avec photo + rating
   ──────────────────────────────────────────────────────────── */

.testimonial-card-premium {
    position: relative;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease, border-color 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

[data-theme="dark"] .testimonial-card-premium {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.06);
}

.testimonial-card-premium::before {
    content: '"';
    position: absolute;
    top: 12px;
    right: 24px;
    font-size: 120px;
    font-weight: 800;
    line-height: 1;
    color: var(--color-primary);
    opacity: 0.06;
    font-family: Georgia, serif;
    pointer-events: none;
}

.testimonial-card-premium:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 174, 239, 0.2);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1), 0 0 24px rgba(0, 174, 239, 0.06);
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    color: #fbbf24;
    font-size: 1rem;
}

.testimonial-quote {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.75;
    font-style: italic;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-teal-500));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    font-size: var(--text-lg);
    flex-shrink: 0;
    overflow: hidden;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-name {
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--color-text);
}

.testimonial-role {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    margin-top: 2px;
}

.testimonial-verified {
    margin-left: auto;
    flex-shrink: 0;
    color: #22c55e;
    font-size: 1.25rem;
}


/* ────────────────────────────────────────────────────────────
   8. FLOATING BADGES — Labels flottants animés
   ──────────────────────────────────────────────────────────── */

.floating-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid;
    animation: badgeFloat 3s ease-in-out infinite;
}

.floating-badge--blue {
    background: rgba(0, 174, 239, 0.12);
    border-color: rgba(0, 174, 239, 0.3);
    color: var(--color-primary);
}

.floating-badge--green {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
    animation-delay: 0.5s;
}

.floating-badge--orange {
    background: rgba(249, 115, 22, 0.12);
    border-color: rgba(249, 115, 22, 0.3);
    color: #f97316;
    animation-delay: 1s;
}

@keyframes badgeFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}


/* ────────────────────────────────────────────────────────────
   9. SECTION LABELS — Labels de section premium
   ──────────────────────────────────────────────────────────── */

.section-label-premium {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.1), rgba(0, 119, 182, 0.1));
    border: 1px solid rgba(0, 174, 239, 0.25);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.section-label-premium::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 8px var(--color-primary);
    animation: pulse 2s ease-in-out infinite;
}


/* ────────────────────────────────────────────────────────────
   10. GLOWING BUTTON — Bouton CTA avec glow pulsant
   ──────────────────────────────────────────────────────────── */

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(90deg,
            transparent, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    animation: shimmerSlide 3s ease infinite;
    background-size: 200% 100%;
}

@keyframes shimmerSlide {
    0% {
        background-position: -100% 0;
        opacity: 0.6;
    }

    50% {
        background-position: 100% 0;
        opacity: 0;
    }

    100% {
        background-position: -100% 0;
        opacity: 0.6;
    }
}

.btn-primary.btn-glow {
    box-shadow:
        0 4px 6px -1px rgba(0, 174, 239, 0.25),
        0 0 20px rgba(0, 174, 239, 0.2);
    animation: btnPulseGlow 3s ease-in-out infinite;
}

@keyframes btnPulseGlow {

    0%,
    100% {
        box-shadow: 0 4px 6px -1px rgba(0, 174, 239, 0.25), 0 0 20px rgba(0, 174, 239, 0.2);
    }

    50% {
        box-shadow: 0 4px 12px -1px rgba(0, 174, 239, 0.4), 0 0 40px rgba(0, 174, 239, 0.35);
    }
}


/* ────────────────────────────────────────────────────────────
   11. MARQUEE UPGRADE — Double ligne + effet premium
   ──────────────────────────────────────────────────────────── */

/* Conteneur dual-row marquee */
.marquee-dual {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    overflow: hidden;
    position: relative;
    padding: var(--space-4) 0;
}

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

.marquee-dual::before {
    left: 0;
    background: linear-gradient(to right, var(--color-bg), transparent);
}

.marquee-dual::after {
    right: 0;
    background: linear-gradient(to left, var(--color-bg), transparent);
}

.marquee-row {
    display: flex;
    gap: var(--space-4);
    width: max-content;
}

.marquee-row:nth-child(1) {
    animation: marquee 25s linear infinite;
}

.marquee-row:nth-child(2) {
    animation: marquee 30s linear infinite reverse;
}

.marquee-dual:hover .marquee-row {
    animation-play-state: paused;
}

/* Pill individuel enrichi */
.marquee-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: var(--text-sm);
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text-secondary);
    transition: all 0.25s ease;
    cursor: default;
}

.marquee-pill:hover {
    border-color: rgba(0, 174, 239, 0.3);
    color: var(--color-primary);
    background: rgba(0, 174, 239, 0.04);
    transform: translateY(-2px);
}

.marquee-pill-icon {
    font-size: 1.1rem;
    color: var(--color-primary);
}

[data-theme="dark"] .marquee-pill {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .marquee-pill:hover {
    background: rgba(0, 174, 239, 0.1);
    border-color: rgba(0, 174, 239, 0.25);
    color: rgba(255, 255, 255, 0.9);
}


/* ────────────────────────────────────────────────────────────
   12. ABOUT SECTION — Photo ring glow + floating metrics
   ──────────────────────────────────────────────────────────── */

.photo-glow-ring {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
            rgba(0, 174, 239, 0) 0%,
            rgba(0, 174, 239, 0.6) 25%,
            rgba(0, 174, 239, 0) 50%,
            rgba(0, 174, 239, 0.3) 75%,
            rgba(0, 174, 239, 0) 100%);
    animation: ringRotate 6s linear infinite;
    opacity: 0.6;
    pointer-events: none;
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Couche masque pour isoler l'anneau */
.photo-glow-ring-mask {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--color-bg);
}


/* ────────────────────────────────────────────────────────────
   13. RESULT CARDS — Réalisations avec overlay hover
   ──────────────────────────────────────────────────────────── */

.realisation-card {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    aspect-ratio: 3/2;
    cursor: pointer;
}

.realisation-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-spring);
}

.realisation-card:hover .realisation-card-img {
    transform: scale(1.08);
}

.realisation-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(2, 12, 27, 0.95) 0%,
            rgba(2, 12, 27, 0.6) 40%,
            transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-6);
}

.realisation-card:hover .realisation-card-overlay {
    opacity: 1;
}

.realisation-card-title {
    color: #fff;
    font-weight: 700;
    font-size: var(--text-lg);
    transform: translateY(12px);
    transition: transform 0.4s var(--ease-spring);
}

.realisation-card:hover .realisation-card-title {
    transform: translateY(0);
}


/* ────────────────────────────────────────────────────────────
   14. ANIMATED COUNTER — Script-less base style
   ──────────────────────────────────────────────────────────── */

.counter-value {
    font-variant-numeric: tabular-nums;
    transition: color 0.3s ease;
}

/* ────────────────────────────────────────────────────────────
   15. PREMIUM PAGE HEADERS — Section hero interne premium
   ──────────────────────────────────────────────────────────── */

.page-hero-premium {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #020c1b 0%, #0a1628 60%, #061a2e 100%);
    padding: calc(var(--space-20) + 80px) 0 var(--space-16);
}

.page-hero-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 174, 239, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 174, 239, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
}

.page-hero-premium .container {
    position: relative;
    z-index: 1;
}

.page-hero-gradient-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 6px 18px;
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.15), rgba(0, 119, 182, 0.1));
    border: 1px solid rgba(0, 174, 239, 0.3);
    border-radius: 999px;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7dd3f8;
    margin-bottom: var(--space-5);
}


/* ────────────────────────────────────────────────────────────
   16. STICKY BOTTOM BAR MOBILE — CTA premium
   ──────────────────────────────────────────────────────────── */

.sticky-cta-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: none;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: rgba(2, 12, 27, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}

@media (max-width: 767px) {
    .sticky-cta-mobile {
        display: flex;
    }
}


/* ────────────────────────────────────────────────────────────
   17. NEON ACCENT — Texte avec glow primaire
   ──────────────────────────────────────────────────────────── */

.text-neon {
    color: var(--color-primary);
    text-shadow: 0 0 20px rgba(0, 174, 239, 0.5), 0 0 40px rgba(0, 174, 239, 0.2);
}

.text-gradient-premium {
    background: linear-gradient(135deg, #00AEEF 0%, #00B4D8 40%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ────────────────────────────────────────────────────────────
   18. SECTION HEADING UPGRADES
   ──────────────────────────────────────────────────────────── */

/* Underline animé sur les titres de section */
.section-title .title-underline {
    position: relative;
    display: inline-block;
}

.section-title .title-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-teal-500));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--ease-spring);
}

.reveal.is-visible .section-title .title-underline::after {
    transform: scaleX(1);
}

/* ────────────────────────────────────────────────────────────
   19. TARIFS PAGE UPGRADE — Highlight badge populaire
   ──────────────────────────────────────────────────────────── */

.tarifs-popular-glow {
    box-shadow:
        0 0 0 2px var(--color-primary),
        0 0 40px rgba(0, 174, 239, 0.2),
        0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ────────────────────────────────────────────────────────────
   20. MICRO-INTERACTIONS
   ──────────────────────────────────────────────────────────── */

/* Hover lift léger sur tous les liens nav */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Icons — wiggle sur hover */
.icon-wiggle:hover {
    animation: iconWiggle 0.5s ease;
}

@keyframes iconWiggle {

    0%,
    100% {
        transform: rotate(0);
    }

    25% {
        transform: rotate(-12deg);
    }

    75% {
        transform: rotate(12deg);
    }
}

/* Boutons — ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: scale(0);
    animation: rippleExpand 0.6s linear;
    pointer-events: none;
}

@keyframes rippleExpand {
    to {
        transform: scale(4);
        opacity: 0;
    }
}
/* ─── TYPEWRITER cursor blink ──────────────────────── */
.akra-cursor-blink {
    animation: cursorBlink 0.85s step-end infinite;
    color: var(--color-primary, #00AEEF);
    font-weight: 400;
    margin-left: 1px;
}
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ─── COUNTER ANIMATION (scroll-triggered) ────────────────── */
.akra-counter {
    display: inline-block;
    transition: color 0.3s ease;
}

/* ─── SECTION ORB DECORATIVES ────────────────────────────── */
.section-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: orbFloat 8s ease-in-out infinite;
}
.section-orb--tl {
    width: 500px; height: 500px;
    top: -150px; left: -150px;
    background: radial-gradient(circle, rgba(0,174,239,0.12) 0%, transparent 70%);
}
.section-orb--br {
    width: 400px; height: 400px;
    bottom: -100px; right: -100px;
    background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
    animation-delay: -4s;
}
@keyframes orbFloat {
    0%,100% { transform: translate(0,0) scale(1); }
    33%      { transform: translate(20px,-30px) scale(1.05); }
    66%      { transform: translate(-15px,20px) scale(0.97); }
}

/* ─── SCROLL PROGRESS BAR ────────────────────────────────── */
#akra-scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, #00AEEF, #6366f1);
    width: 0%;
    transition: width 0.1s linear;
    z-index: 100000;
    pointer-events: none;
}

/* ─── PAGE TRANSITION FADE ───────────────────────────────── */
body { animation: pageFadeIn 0.4s ease forwards; }
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── CARD HOVER LIFT ─────────────────────────────────────── */
.card-base {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card-base:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border-color: rgba(0,174,239,0.25);
}

/* ─── LINK HOVER UNDERLINE ANIMATION ─────────────────────── */
a.link-animated {
    position: relative;
    text-decoration: none;
}
a.link-animated::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}
a.link-animated:hover::after { width: 100%; }

/* ─── GLOWING BTN EFFECT ───────────────────────────────── */
.btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    transform: translate(-50%,-50%);
    transition: width 0.5s ease, height 0.5s ease;
}
.btn-primary:hover::before {
    width: 300px; height: 300px;
}

/* ─── TESTIMONIAL CARD SHIMMER ───────────────────────────── */
.testimonial-card {
    position: relative;
    overflow: hidden;
}
.testimonial-card::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.04) 50%, transparent 60%);
    animation: cardShimmer 4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes cardShimmer {
    0%   { transform: translateX(-100%) rotate(15deg); }
    100% { transform: translateX(100%) rotate(15deg); }
}

/* ─── MOBILE RESPONSIVE ABOUT HERO ───────────────────────── */
@media (max-width: 768px) {
    .page-header .container > div[style*="grid-template-columns:1fr 420px"] {
        grid-template-columns: 1fr !important;
    }
    .page-header .container > div[style*="grid-template-columns:1fr 340px"] {
        grid-template-columns: 1fr !important;
    }
}

/* ─── MOBILE STICKY HEADER ─────────────────────────────────────── */
@media (max-width: 768px) {
    .site-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9990 !important;
        background: var(--color-bg) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 2px 20px rgba(0,0,0,0.12) !important;
        transition: background 0.3s ease, box-shadow 0.25s ease;
    }
    /* Push content below sticky header */
    body:not(.notif-hidden) main,
    body:not(.notif-hidden) .hero-section {
        padding-top: calc(var(--header-h, 70px) + 44px) !important;
    }
    body.notif-hidden main,
    body.notif-hidden .hero-section {
        padding-top: var(--header-h, 70px) !important;
    }
    /* Hero section specifically */
    .hero-section {
        padding-top: calc(var(--space-16) + 120px) !important;
    }
    /* Dark mode header bg */
    [data-theme="dark"] .site-header,
    .dark .site-header {
        background: rgba(5,5,15,0.92) !important;
    }

    /* ── MOBILE OVERFLOW FIXES ─────────────────────────────────── */
    /* Prevent horizontal scroll */
    html, body { overflow-x: hidden !important; max-width: 100vw !important; }

    /* Hero 2-col → 1 col */
    .hero-section .container > .grid,
    .hero-section .container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    /* Hide widget on mobile */
    .hero-widget-container { display: none !important; }

    /* Section-about 2-col → 1-col  */
    .section-about-grid,
    #about .container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Comparison table 2-col → 1-col */
    div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Certifications & toolgroups wrap */
    div[style*="grid-template-columns:repeat(3,1fr)"],
    div[style*="grid-template-columns:repeat(4,1fr)"] {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Resultats: 3-col → 1-col */
    .resultats-grid {
        grid-template-columns: 1fr !important;
    }

    /* Services cards: 3-col → 1-col */
    .services-grid {
        grid-template-columns: 1fr !important;
    }

    /* Marquee: don't overflow */
    .logo-track { white-space: nowrap; }

    /* Page header on service/about pages */
    .page-header .container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Footer 4-col → 1-col */
    .footer-grid {
        grid-template-columns: 1fr !important;
    }

    /* GEO main grid */
    .geo-main-grid {
        grid-template-columns: 1fr !important;
    }

    /* Notification bar text truncate */
    .akra-notif-text { font-size: 0.68rem !important; }

    /* Stats grid */
    div[style*="grid-template-columns:repeat(auto-fill"] {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Sur mesure 3-step → 1-col */
    div[style*="grid-template-columns:repeat(3,1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* Tarifs comparison */
    div[style*="grid-template-columns:1fr 420px"],
    div[style*="grid-template-columns:1fr 340px"] {
        grid-template-columns: 1fr !important;
    }
    div[style*="grid-template-columns:1fr 340px"] > div:last-child,
    div[style*="grid-template-columns:1fr 420px"] > div:last-child {
        display: none !important;
    }

    /* Buttons full width on mobile */
    .btn { font-size: 0.82rem !important; padding: var(--space-3) var(--space-5) !important; }

    /* WhatsApp float adjust for notif bar */
    .akra-wa-float { bottom: 16px !important; right: 16px !important; width: 48px !important; height: 48px !important; font-size: 22px !important; }

    /* Exit popup full width */
    .akra-exit-popup { padding: 24px 20px !important; }
}

/* ─── TABLET (769–1024) ─────────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-section .container > .grid { grid-template-columns: 1fr 1fr !important; }
    div[style*="grid-template-columns:repeat(4,1fr)"] { grid-template-columns: repeat(2,1fr) !important; }
    div[style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns: repeat(2,1fr) !important; }
    .footer-grid { grid-template-columns: 1fr 1fr !important; }
}
