/* =================================================================== */
/* ==================== ATIPIK HOME PAGE STYLES ====================== */
/* =================================================================== */

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.heading-display {
    font-family: var(--font-heading);
    font-weight: 800;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    height: clamp(80vh, 100vh, 100vh);
    min-height: 620px;
    overflow: hidden;
    color: #fff;
}

.hero-section .swiper,
.hero-section .swiper-wrapper,
.hero-section .swiper-slide {
    height: 100%;
}

.hero-section .swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: center;
    background-size: cover;
}

.slide--black {
    background: #000;
}

.overlay-veil {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.overlay-glow {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(800px 420px at 50% 38%, rgba(255, 204, 0, 0.15), transparent 60%),
        radial-gradient(880px 520px at 50% 70%, rgba(10, 60, 168, 0.2), transparent 60%);
}

.slide-content {
    position: relative;
    z-index: 2;
    width: min(1200px, 92%);
    margin-inline: auto;
    padding-inline: 1rem;
}

.hero-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centered for premium feel */
    text-align: center;
    gap: 1.5rem;
}

/* Typography */
.inline-phrase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.welcome {
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: var(--brand-yellow);
    margin-bottom: 0.5rem;
}

.hero-title {
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-size: clamp(2.5rem, 8vw, 5rem);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    opacity: 0.85;
    max-width: 650px;
    margin: 0 auto;
    font-weight: 400;
}

.brand-gold {
    color: var(--brand-yellow);
    text-shadow: 0 0 20px rgba(255, 204, 0, 0.3);
}

/* Typing Effect */
.typing-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.typing {
    display: inline-block;
    min-width: 1ch;
    white-space: nowrap;
}

.caret {
    width: 3px;
    height: 1.1em;
    background: var(--brand-yellow);
    margin-left: 0.22rem;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Buttons */
.cta-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

/* Animations */
.anim-in {
    opacity: 1;
    /* Visible by default for better LCP/no-js */
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--d, 0ms);
}

/* On applique l'état initial d'animation uniquement si le slice est prêt */
.hero-swiper .anim-in {
    opacity: 0;
    transform: translateY(30px);
}

.run .anim-in {
    opacity: 1;
    transform: translateY(0);
}

/* Pagination */
.hero-pagination .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    width: 10px;
    height: 10px;
    transition: all 0.3s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
    background: var(--brand-yellow);
    width: 30px;
    border-radius: 5px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-indicator .bounce {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    opacity: 0.8;
    gap: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* ===== COUNTER SECTION ===== */
.counter-section {
    background: #fff;
    position: relative;
    z-index: 10;
    margin-top: -50px;
    /* Overlap hero */
    padding-bottom: 4rem;
}

.counter-block {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 2.5rem;
    overflow: hidden;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 22, 89, 0.05);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.counter-block:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(10, 60, 168, 0.15);
}

.counter-bg-text {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-weight: 900;
    line-height: 1;
    z-index: 0;
    color: transparent;
    -webkit-text-stroke: 2px rgba(10, 60, 168, 0.05);
    font-size: 10rem;
    pointer-events: none;
    user-select: none;
}

.counter-fg-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.counter {
    font-weight: 800;
    font-size: 4rem;
    line-height: 1;
    font-family: var(--font-heading);
    color: var(--brand-blue);
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.counter-labels {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.counter-label-top {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-yellow-dark);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.counter-label-bottom {
    font-size: 1.2rem;
    font-weight: 600;
    color: #64748b;
}

/* ===== ABOUT SECTION ===== */
.composition-figure {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.composition-figure .main-image {
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: rotate(-2deg);
    transition: transform 0.5s ease;
}

/* ===== SERVICES SECTION ===== */
.svc-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    z-index: 2;
    border: 1px solid rgba(0, 22, 89, 0.08);
    border-radius: 1.25rem;
    padding: 2.25rem;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.svc-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(10, 60, 168, 0.15);
    border-color: transparent;
}

.svc-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--brand-blue-900) 0%, var(--brand-blue) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.svc-card:hover::before {
    opacity: 1;
}

.svc-card h4 {
    color: var(--brand-blue-900);
    font-weight: 700;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    transition: color 0.3s ease;
}

.svc-card p {
    color: var(--text-muted);
    font-size: 1rem;
    font-family: var(--font-body);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.svc-card:hover h4,
.svc-card:hover p {
    color: #fff;
}

.svc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(10, 60, 168, 0.1);
    color: var(--brand-blue);
    margin-top: auto;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.svc-card:hover .svc-badge {
    background: #fff;
    color: var(--brand-blue);
    transform: rotate(90deg);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .counter-section {
        margin-top: 0;
        padding-top: 4rem;
    }

    .composition-figure .secondary-image-wrapper {
        right: -1rem;
        bottom: -2rem;
    }
}

/* ====================================================== */
/* ============ ABOUT SECTION LOGO STYLES ================ */
/* ====================================================== */

.composition-figure .secondary-image-wrapper {
    position: absolute;
    bottom: -30px;
    right: -30px;
    border-radius: 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 55%;
    max-width: 260px;
    border: 4px solid #fff;
    overflow: hidden;
    z-index: 2;
    background: #fff;
    transform: rotate(3deg);
    transition: transform 0.4s ease;
}

.composition-figure:hover .secondary-image-wrapper {
    transform: rotate(0deg) scale(1.05);
}

/* Glow Effects */
.logo-glow-gold {
    box-shadow: 0 20px 50px rgba(255, 204, 0, 0.35) !important;
    border: 1px solid rgba(255, 204, 0, 0.2);
}

.logo-glow-blue {
    box-shadow: 0 20px 50px rgba(11, 42, 88, 0.35) !important;
    border: 1px solid rgba(11, 42, 88, 0.2);
}

@media (max-width: 768px) {
    .composition-figure .secondary-image-wrapper {
        right: -10px;
        bottom: -20px;
        width: 50%;
    }
}