/*
* IMALLAN Solutions - Styles spécifiques à la page Formations
*/

/*--------------------------------------------------------------
# En-tête de page
--------------------------------------------------------------*/
.page-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    padding: 8rem 0 4rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--highlight);
    border-radius: var(--border-radius-round);
}

.page-description {
    font-size: 1.25rem;
    opacity: 0.9;
    margin: 1.5rem auto 0;
    max-width: 600px;
}

.page-shapes .shape-1 {
    position: absolute;
    top: -15%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphShape 20s linear infinite alternate;
}

.page-shapes .shape-2 {
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphShape 25s linear infinite alternate-reverse;
}

.page-shapes .shape-3 {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphShape 15s linear infinite alternate;
}

/*--------------------------------------------------------------
# Section Filtres
--------------------------------------------------------------*/
.filter-section {
    background-color: var(--white);
    position: relative;
    z-index: 10;
    margin-top: -2rem;
}

.filter-container {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-tab {
    background-color: var(--light);
    color: var(--gray-dark);
    border: none;
    border-radius: var(--border-radius-round);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.filter-tab:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.filter-tab.active {
    background-color: var(--primary);
    color: var(--white);
}

.filter-search {
    display: flex;
    position: relative;
}

.search-input {
    width: 250px;
    height: 40px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius-round);
    padding: 0 1rem 0 2.5rem;
    font-size: 0.875rem;
    transition: var(--transition-normal);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.search-btn {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 1rem;
}

/*--------------------------------------------------------------
# Catalogue de formations
--------------------------------------------------------------*/
.formations-catalog {
    padding: 4rem 0 6rem;
    position: relative;
    background-color: var(--light);
}

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

.formation-item {
    transition: var(--transition-normal);
}

.formation-card {
    position: relative;
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.formation-header {
    position: relative;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

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

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

.formation-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-round);
    font-size: 0.75rem;
    font-weight: 600;
    background-color: var(--primary-light);
    color: var(--primary);
}

.formation-body {
    padding: 0 1.5rem 1.5rem;
    flex-grow: 1;
}

.formation-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--secondary);
    transition: var(--transition-normal);
}

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

.formation-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray);
}

.meta-item i {
    color: var(--accent);
}

.formation-excerpt {
    color: var(--gray-dark);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.formation-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-light);
}

.btn-details {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-normal);
}

.btn-details i {
    transition: var(--transition-normal);
}

.btn-details:hover {
    color: var(--primary-dark);
}

.btn-details:hover i {
    transform: translateX(5px);
}

/* Effet de survol sur les cartes de formation */
.formation-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 64, 87, 0.95) 0%, rgba(255, 107, 53, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    transform: scale(0.9);
    border-radius: var(--border-radius-lg);
}

.formation-card:hover .formation-hover {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hover-content {
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

.hover-content h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.hover-list {
    margin-bottom: 1.5rem;
    text-align: left;
}

.hover-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.hover-list li::before {
    content: '';
    position: absolute;
    top: 0.5rem;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: var(--highlight);
    border-radius: 50%;
}

/* Encart d'information pour formations supplémentaires */
.formations-info {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.info-icon {
    width: 60px;
    height: 60px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.75rem;
    flex-shrink: 0;
}

.info-content {
    flex-grow: 1;
}

.info-content h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.info-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--accent);
}

/* Formes décoratives du catalogue */
.catalog-shapes .shape-1 {
    position: absolute;
    top: 10%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--highlight-dark) 0%, var(--highlight) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.1;
    animation: morphShape 20s linear infinite alternate;
}

.catalog-shapes .shape-2 {
    position: absolute;
    bottom: 20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.1;
    animation: morphShape 25s linear infinite alternate-reverse;
}

.catalog-shapes .shape-3 {
    position: absolute;
    top: 40%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.1;
    animation: morphShape 15s linear infinite alternate;
}

/*--------------------------------------------------------------
# Section des thématiques
--------------------------------------------------------------*/
.themes-section {
    background-color: var(--white);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--border-radius-round);
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 800px;
    margin: 0 auto;
}

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

.theme-card {
    background-color: var(--light);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: var(--transition-normal);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.theme-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;
}

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

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

.theme-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-md);
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

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

.theme-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.theme-list {
    margin-bottom: 1.5rem;
}

.theme-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--gray-dark);
}

.theme-list li::before {
    content: '';
    position: absolute;
    top: 0.5rem;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
}

.theme-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.theme-link::after {
    content: '\2192';
    margin-left: 0.5rem;
    transition: var(--transition-normal);
}

.theme-link:hover::after {
    transform: translateX(5px);
}

/* Formes décoratives des thématiques */
.themes-shapes .shape-1 {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.1;
    animation: morphShape 20s linear infinite alternate;
}

.themes-shapes .shape-2 {
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.1;
    animation: morphShape 25s linear infinite alternate-reverse;
}

/*--------------------------------------------------------------
# Section méthodologie
--------------------------------------------------------------*/
.methodology-section {
    background-color: var(--light);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

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

.section-subtitle {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

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

.methodology-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.methodology-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.step-content p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.methodology-image {
    position: relative;
}

.methodology-image img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.image-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-md);
}

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

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

.badge-title {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--secondary);
    line-height: 1;
}

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

/* Formes décoratives de la méthodologie */
.methodology-shapes .shape-1 {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--highlight) 0%, var(--highlight-dark) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.1;
    animation: morphShape 20s linear infinite alternate;
}

.methodology-shapes .shape-2 {
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.1;
    animation: morphShape 25s linear infinite alternate-reverse;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 991px) {
    .methodology-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .methodology-image {
        order: -1;
    }
    
    .image-badge {
        bottom: -10px;
        right: -10px;
    }
}

@media (max-width: 767px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-description {
        font-size: 1.1rem;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-tabs {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .filter-search {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
    
    .formations-info {
        flex-direction: column;
        text-align: center;
    }
    
    .info-icon {
        margin: 0 auto 1rem;
    }
}

@media (max-width: 575px) {
    .section-title {
        font-size: 2rem;
    }
    
    .filter-tab {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .methodology-step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto 0.5rem;
    }
}