/**
 * sticky-cards.css - Styles pour les cartes sticky au scroll
 */

/* Section Sticky Cards */
.sticky-cards-section {
    background-color: #0f172a; /* slate-950 */
}

/* Solution Cards */
.solution-card-wrapper {
    text-decoration: none;
}

.solution-card {
    position: relative;
}

.solution-card-content {
    position: relative;
    z-index: 1;
}

.solution-card-hover {
    z-index: 10;
}

.solution-card:hover {
    transform: translateY(-8px);
}

.sticky-cards-hero {
    background-color: #0f172a;
    background-image: 
        linear-gradient(to right, rgba(79, 79, 79, 0.18) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(79, 79, 79, 0.18) 1px, transparent 1px);
    background-size: 54px 54px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .sticky-cards-hero {
        min-height: 100vh;
    }
}

/* Conteneur des cartes sticky */
.sticky-cards-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 0 1rem;
}

@media (max-width: 1024px) {
    .sticky-cards-container {
        flex-direction: column;
        padding: 0 1rem;
    }
}

/* Grille des cartes */
.sticky-cards-grid {
    display: grid;
    gap: 0.5rem;
    flex: 1;
}

/* Figure conteneur pour chaque carte */
.sticky-card-figure {
    position: sticky;
    top: 0;
    height: auto;
    min-height: 100vh;
    display: grid;
    place-content: center;
    padding: 1rem 0;
    perspective: 1000px;
}

@media (min-width: 768px) {
    .sticky-card-figure {
        height: 100vh;
        padding: 0;
    }
}

/* Carte article */
.sticky-card {
    width: 100%;
    max-width: 100%;
    min-height: 16rem;
    border-radius: 1rem;
    padding: 1.5rem;
    display: grid;
    place-content: center;
    gap: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 1 !important;
    background-color: rgba(255, 255, 255, 1);
    transform-style: preserve-3d;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        4px 4px 0 rgba(0, 0, 0, 0.05),
        8px 8px 0 rgba(0, 0, 0, 0.03);
}

@media (min-width: 640px) {
    .sticky-card {
        max-width: 32rem;
        min-height: 20rem;
        padding: 2rem;
        border-radius: 1.25rem;
        gap: 0.875rem;
    }
}

@media (min-width: 1024px) {
    .sticky-card {
        max-width: 36rem;
        min-height: 26rem;
        padding: 3rem;
        border-radius: 1.5rem;
        gap: 1rem;
    }
}

.sticky-card:hover {
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.sticky-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .sticky-card h3 {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .sticky-card h3 {
        font-size: 2rem;
    }
}

.sticky-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #374151;
    margin: 0;
    font-weight: 400;
}

@media (min-width: 640px) {
    .sticky-card p {
        font-size: 1rem;
        line-height: 1.7;
    }
}

@media (min-width: 1024px) {
    .sticky-card p {
        font-size: 1.1rem;
    }
}

.sticky-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 0.625rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
}

@media (min-width: 640px) {
    .sticky-card-link {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
        border-radius: 0.75rem;
    }
}

@media (min-width: 1024px) {
    .sticky-card-link {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
}

.sticky-card-link:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    transform: translateX(4px);
}

.sticky-card-link i {
    transition: transform 0.3s ease;
}

.sticky-card-link:hover i {
    transform: translateX(4px);
}

/* Rotations - Cartes legerement penchees les unes aux autres */
.rotate-6 {
    transform: rotate(3deg) skewX(-1deg);
}

@media (min-width: 768px) {
    .rotate-6 {
        transform: rotate(5deg) skewX(-2deg);
    }
}

.rotate-0 {
    transform: rotate(-2deg) skewX(1deg);
}

@media (min-width: 768px) {
    .rotate-0 {
        transform: rotate(-3deg) skewX(2deg);
    }
}

.-rotate-6 {
    transform: rotate(-3deg) skewX(1deg);
}

@media (min-width: 768px) {
    .-rotate-6 {
        transform: rotate(-5deg) skewX(2deg);
    }
}

.rotate-3 {
    transform: rotate(2deg) skewX(-1deg);
}

@media (min-width: 768px) {
    .rotate-3 {
        transform: rotate(4deg) skewX(-2deg);
    }
}

.-rotate-3 {
    transform: rotate(-2deg) skewX(1deg);
}

@media (min-width: 768px) {
    .-rotate-3 {
        transform: rotate(-4deg) skewX(2deg);
    }
}

/* Nouvelles rotations pour plus de variete */
.rotate-2 {
    transform: rotate(1deg) skewX(-0.5deg);
}

@media (min-width: 768px) {
    .rotate-2 {
        transform: rotate(2.5deg) skewX(-1deg);
    }
}

.-rotate-2 {
    transform: rotate(-1deg) skewX(0.5deg);
}

@media (min-width: 768px) {
    .-rotate-2 {
        transform: rotate(-2.5deg) skewX(1deg);
    }
}

.rotate-5 {
    transform: rotate(3deg) skewX(-1deg);
}

@media (min-width: 768px) {
    .rotate-5 {
        transform: rotate(6deg) skewX(-2deg);
    }
}

.-rotate-5 {
    transform: rotate(-3deg) skewX(1deg);
}

@media (min-width: 768px) {
    .-rotate-5 {
        transform: rotate(-6deg) skewX(2deg);
    }
}

/* Sidebar sticky */
.sticky-sidebar {
    position: relative;
    height: auto;
    display: grid;
    place-content: center;
    flex-shrink: 0;
    padding: 2rem 1rem;
}

@media (min-width: 1024px) {
    .sticky-sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        padding: 2rem;
    }
}

.sticky-sidebar h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: white;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

@media (min-width: 640px) {
    .sticky-sidebar h2 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .sticky-sidebar h2 {
        font-size: 4.5rem;
    }
}

/* Footer sticky section */
.sticky-footer {
    background-color: #0f172a;
    overflow: hidden;
}

.sticky-footer-title {
    font-size: 12vw;
    transform: translateY(5rem);
    line-height: 100%;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(to right, #9ca3af, #374151);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s linear;
}

@media (min-width: 768px) {
    .sticky-footer-title {
        font-size: 16vw;
    }
}

.sticky-footer-bottom {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    height: 8rem;
    position: relative;
    z-index: 10;
    display: grid;
    place-content: center;
    border-top-left-radius: 100% 50%;
    border-top-right-radius: 100% 50%;
}

@media (min-width: 768px) {
    .sticky-footer-bottom {
        height: 10rem;
    }
}

/* Animations au scroll avec smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation d'apparition des cartes - DESACTIVE */
@keyframes cardSlideIn {
    from {
        opacity: 1;
        transform: none;
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.sticky-card-figure.in-view .sticky-card {
    animation: none;
    opacity: 1;
}

/* Icône dans la carte */
.sticky-card-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.25);
}

@media (min-width: 640px) {
    .sticky-card-icon {
        width: 3.5rem;
        height: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .sticky-card-icon {
        width: 4rem;
        height: 4rem;
        border-radius: 1rem;
    }
}

.sticky-card-icon i {
    font-size: 1.25rem;
    color: white;
}

@media (min-width: 640px) {
    .sticky-card-icon i {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .sticky-card-icon i {
        font-size: 1.75rem;
    }
}

/* Section responsive - already covered above but keeping specific mobile overrides */
@media (max-width: 480px) {
    .sticky-card {
        padding: 1.25rem;
    }
    
    .sticky-card h3 {
        font-size: 1.125rem;
    }
    
    .sticky-card p {
        font-size: 0.85rem;
    }
    
    .sticky-card-link {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }
}
