/*
* IMALLAN Solutions - Styles spécifiques à la page d'accueil
*/

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
    padding: 1rem 0 6rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light) 0%, #f0f4f9 100%);
    min-height: 110vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-content-inner {
    padding-right: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    position: relative;
}

.title-highlight {
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.title-highlight::after {
    content: '';
    position: absolute;
    bottom: 0.2em;
    left: 0;
    width: 100%;
    height: 0.3em;
    background-color: var(--highlight);
    z-index: -1;
    opacity: 0.5;
    border-radius: 2px;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.typewriter {
    color: var(--primary);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.typewriter::after {
    content: '|';
    position: absolute;
    right: -4px;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
}

.hero-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

.stats-badge {
    position: absolute;
    display: flex;
    align-items: center;
    background-color: var(--white);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    gap: 1rem;
    z-index: 3;
}

.stats-badge-1 {
    top: -90px;
    right: -20px;
    animation: float 5s ease-in-out infinite;
}

.stats-badge-2 {
    bottom: -20px;
    left: -20px;
    animation: float 5s ease-in-out infinite;
    animation-delay: 2.5s;
}

.stats-badge-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
}

.stats-badge-content {
    display: flex;
    flex-direction: column;
}

.stats-number {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--secondary);
    line-height: 1;
}

.stats-text {
    font-size: 0.75rem;
    color: var(--gray);
}

.hero-shapes .shape-1 {
    top: -10%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    opacity: 0.3;
    animation: morphShape 20s linear infinite alternate;
}

.hero-shapes .shape-2 {
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    opacity: 0.2;
    animation: morphShape 25s linear infinite alternate-reverse;
}

.hero-shapes .shape-3 {
    top: 20%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--highlight) 0%, var(--accent) 100%);
    opacity: 0.15;
    animation: morphShape 15s linear infinite alternate;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes morphShape {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about-section {
    position: relative;
    background-color: var(--white);
    padding: 7rem 0;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-wrapper img {
    width: 100%;
    transition: transform 0.5s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
}

.about-image:hover .image-wrapper img {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    right: -30px;
    bottom: 30px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 15px;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    z-index: 2;
}

.experience-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.experience-text {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.about-content .section-title::after {
    margin-bottom: 2rem;
}

.about-description {
    margin-bottom: 2rem;
    color: var(--gray);
}

.about-features {
    margin-bottom: 2rem;
}

.about-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.about-features li i {
    color: var(--accent);
    margin-right: 1rem;
    background-color: var(--accent-light);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.about-shapes .shape-1 {
    top: -10%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    opacity: 0.1;
    animation: morphShape 20s linear infinite alternate;
}

.about-shapes .shape-2 {
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    opacity: 0.1;
    animation: morphShape 25s linear infinite alternate-reverse;
}

/*--------------------------------------------------------------
# Formations Section
--------------------------------------------------------------*/
.formations-section {
    position: relative;
    background-color: var(--light);
    padding: 7rem 0;
}

.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.formation-card {
    height: 100%;
    perspective: 1000px;
}

.formation-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    z-index: 1;
    overflow: hidden;
}

.formation-card:hover .formation-card-inner {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.formation-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-light) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.formation-card:hover .formation-bg {
    opacity: 1;
}

.formation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.formation-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.formation-card:hover .formation-icon {
    background-color: var(--primary);
    color: var(--white);
    transform: rotateY(180deg);
}

.formation-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.formation-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background-color: var(--primary-light);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.formation-duration {
    font-size: 0.75rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.formation-content {
    margin-bottom: 1.5rem;
}

.formation-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary);
    transition: color 0.3s ease;
}

.formation-card:hover .formation-title {
    color: var(--primary);
}

.formation-description {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

.formation-footer {
    margin-top: auto;
}

.formations-action {
    margin-top: 3rem;
}

.formations-shapes .shape-1 {
    top: 10%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--highlight) 0%, var(--primary) 100%);
    opacity: 0.1;
    animation: morphShape 20s linear infinite alternate;
}

.formations-shapes .shape-2 {
    bottom: 20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    opacity: 0.1;
    animation: morphShape 25s linear infinite alternate-reverse;
}

.formations-shapes .shape-3 {
    top: 40%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    opacity: 0.1;
    animation: morphShape 15s linear infinite alternate;
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services-section {
    position: relative;
    background-color: var(--white);
    padding: 7rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background-color: var(--light);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: height 0.5s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    height: 100%;
    opacity: 0.05;
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: var(--primary);
    color: var(--white);
    transform: rotateY(360deg);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.service-description {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.service-link:hover i {
    transform: translateX(5px);
}

.services-shapes .shape-1 {
    top: -10%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    opacity: 0.1;
    animation: morphShape 20s linear infinite alternate;
}

.services-shapes .shape-2 {
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    opacity: 0.1;
    animation: morphShape 25s linear infinite alternate-reverse;
}

/*--------------------------------------------------------------
# Stats Section
--------------------------------------------------------------*/
.stats-section {
    background-color: var(--secondary);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.1);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.stats-shapes .shape-1 {
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary-dark) 100%);
    opacity: 0.1;
    animation: morphShape 25s linear infinite alternate;
}

.stats-shapes .shape-2 {
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary-dark) 100%);
    opacity: 0.1;
    animation: morphShape 20s linear infinite alternate-reverse;
}

/*--------------------------------------------------------------
# CTA Section
--------------------------------------------------------------*/
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: var(--white);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-shapes .shape-1 {
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    animation: morphShape 25s linear infinite alternate;
}

.cta-shapes .shape-2 {
    bottom: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    animation: morphShape 20s linear infinite alternate-reverse;
}

.cta-shapes .shape-3 {
    top: 20%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    animation: morphShape 15s linear infinite alternate;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .stats-badge {
        padding: 0.75rem;
    }
    
    .stats-badge-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 991px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content-inner {
        padding-right: 0;
        order: 1;
    }
    
    .hero-image {
        order: 0;
        margin-bottom: 2rem;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .experience-badge {
        right: 20px;
    }
    
    .about-content {
        text-align: center;
    }
    
    .about-features li {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 8rem 0 4rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .stats-badge {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .stats-badge-icon {
        width: 30px;
        height: 30px;
        font-size: 0.875rem;
    }
    
    .stats-number {
        font-size: 1rem;
    }
    
    .stats-text {
        font-size: 0.7rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.875rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}