/* === SECTION LES ÉTAPES CLÉS DE NOTRE CROISSANCE === */
.history-cards-section {
    padding: 120px 5% 100px;
    position: relative;
    background-color: var(--dark-bg);
    overflow: hidden;
}

/* Header de la section */
.history-cards-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.history-cards-header.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.history-cards-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.history-cards-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 224, 255, 0.7);
}

.history-cards-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Grille de cartes */
.history-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Style des cartes */
.history-card {
    position: relative;
    background: rgba(26, 31, 46, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    text-align: center;
    overflow: hidden;
    height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    perspective: 1000px;
    transform: rotateY(30deg) rotateZ(5deg) scale(0.8);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.history-card.is-visible {
    transform: rotateY(0) rotateZ(0) scale(1);
    opacity: 1;
}

/* Année en filigrane */
.history-card-year {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(0, 224, 255, 0.1);
    line-height: 1;
    z-index: 0;
    transition: all 0.3s ease;
}

/* Icône */
.history-card-icon-wrapper {
    width: 100px;
    height: 100px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    transition: all 0.5s ease;
}

.history-card-icon {
    width: 100%;
    height: 100%;
}

/* Animation des éléments SVG */
.icon-circle {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: draw-circle 2s forwards ease-in-out;
    filter: drop-shadow(0 0 5px rgba(0, 224, 255, 0.5));
}

.icon-path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: draw-path 2s forwards ease-in-out;
    filter: drop-shadow(0 0 5px rgba(0, 224, 255, 0.5));
}

.icon-dot {
    opacity: 0;
    animation: fade-in 0.5s forwards ease-in-out;
    animation-delay: 1.5s;
    filter: drop-shadow(0 0 5px rgba(0, 224, 255, 0.5));
}

@keyframes draw-circle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes draw-path {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fade-in {
    to {
        opacity: 1;
    }
}

/* Titre et texte */
.history-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.history-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

/* Bordure lumineuse */
.history-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, #34c7ff, #2b8af9);
    border-radius: var(--border-radius-lg);
    z-index: -1;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

/* Effet de survol */
.history-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 224, 255, 0.3);
}

.history-card:hover::before {
    opacity: 0.6;
    animation: border-glow 2s infinite alternate;
}

@keyframes border-glow {
    0% {
        opacity: 0.3;
        box-shadow: 0 0 10px rgba(0, 224, 255, 0.3);
    }
    100% {
        opacity: 0.6;
        box-shadow: 0 0 20px rgba(0, 224, 255, 0.6);
    }
}

.history-card:hover .history-card-year {
    color: rgba(0, 224, 255, 0.2);
    transform: scale(1.1);
}

.history-card:hover .history-card-icon-wrapper {
    transform: translateZ(30px) scale(1.1);
}

.history-card:hover h3 {
    color: var(--accent-cyan);
    transform: translateZ(20px);
}

.history-card:hover p {
    transform: translateZ(10px);
}

/* Animation des icônes au survol */
.history-card:hover .icon-circle {
    animation: pulse-circle 2s infinite alternate;
}

.history-card:hover .icon-path {
    animation: pulse-path 2s infinite alternate;
}

.history-card:hover .icon-dot {
    animation: pulse-dot 2s infinite alternate;
}

@keyframes pulse-circle {
    0% {
        stroke-width: 3;
        opacity: 0.8;
    }
    100% {
        stroke-width: 4;
        opacity: 1;
    }
}

@keyframes pulse-path {
    0% {
        stroke-width: 3;
        filter: drop-shadow(0 0 5px rgba(0, 224, 255, 0.5));
    }
    100% {
        stroke-width: 4;
        filter: drop-shadow(0 0 10px rgba(0, 224, 255, 0.8));
    }
}

@keyframes pulse-dot {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(0, 224, 255, 0.5));
    }
    100% {
        transform: scale(1.2);
        filter: drop-shadow(0 0 10px rgba(0, 224, 255, 0.8));
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .history-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .history-card {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .history-cards-header h2 {
        font-size: 2.2rem;
    }
    
    .history-cards-header p {
        font-size: 1.1rem;
    }
    
    .history-card {
        padding: 30px 20px;
    }
    
    .history-card-year {
        font-size: 3.5rem;
    }
}

@media (max-width: 480px) {
    .history-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .history-cards-header h2 {
        font-size: 1.8rem;
    }
    
    .history-cards-header p {
        font-size: 1rem;
    }
    
    .history-card {
        height: auto;
        min-height: 320px;
    }
    
    .history-card-icon-wrapper {
        width: 80px;
        height: 80px;
    }
}