/* Styles unifiés pour les hero sections de toutes les pages */

/* Style de base pour toutes les hero sections */
.page-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #050505, #151515);
    z-index: 0;
}

/* Styles spécifiques pour chaque page tout en maintenant une cohérence */
.hero.copy-trading-hero {
    background: linear-gradient(135deg, #050505, #151515);
}

.hero.formation-hero {
    background: linear-gradient(135deg, #050505, #151515);
}

.hero.algo-hero {
    background: linear-gradient(135deg, #050505, #151515);
}

.hero.ia-hero {
    background: linear-gradient(135deg, #050505, #151515);
}

.hero.mentorat-hero {
    background: linear-gradient(135deg, #050505, #151515);
}

/* Fond animé commun à toutes les pages */
.page-hero .animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Styles spécifiques pour les fonds animés de chaque page */
.animated-bg.copy-trading-bg .animated-shape.shape-1 {
    top: 20%;
    left: 15%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(20, 20, 20, 0.8), rgba(10, 10, 10, 0.4));
    animation: float 25s infinite ease-in-out;
}

.animated-bg.copy-trading-bg .animated-shape.shape-2 {
    bottom: 15%;
    right: 10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(25, 25, 25, 0.8), rgba(15, 15, 15, 0.4));
    animation: float 20s infinite ease-in-out reverse;
}

.animated-bg.copy-trading-bg .animated-shape.shape-3 {
    top: 60%;
    left: 30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(30, 30, 30, 0.8), rgba(20, 20, 20, 0.4));
    animation: float 30s infinite ease-in-out;
}

.animated-bg.formation-hero .animated-shape.shape-1 {
    top: 15%;
    left: 10%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(20, 20, 20, 0.8), rgba(10, 10, 10, 0.4));
    animation: float 28s infinite ease-in-out;
}

.animated-bg.algorithme-bg .animated-shape.shape-1 {
    top: 25%;
    left: 20%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(20, 20, 20, 0.8), rgba(10, 10, 10, 0.4));
    animation: float 22s infinite ease-in-out;
}

.animated-bg.ia-factory-bg .animated-shape.shape-1 {
    top: 18%;
    left: 12%;
    width: 290px;
    height: 290px;
    background: radial-gradient(circle, rgba(20, 20, 20, 0.8), rgba(10, 10, 10, 0.4));
    animation: float 26s infinite ease-in-out;
}

.animated-bg.home-bg .animated-shape.shape-1 {
    top: 22%;
    left: 18%;
    width: 310px;
    height: 310px;
    background: radial-gradient(circle, rgba(20, 20, 20, 0.8), rgba(10, 10, 10, 0.4));
    animation: float 24s infinite ease-in-out;
}

.animated-bg.mentorat-bg .animated-shape.shape-1 {
    top: 20%;
    left: 15%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(20, 20, 20, 0.8), rgba(10, 10, 10, 0.4));
    animation: float 27s infinite ease-in-out;
}

.animated-bg.mentorat-bg .animated-shape.shape-2 {
    bottom: 20%;
    right: 15%;
    width: 270px;
    height: 270px;
    background: radial-gradient(circle, rgba(25, 25, 25, 0.8), rgba(15, 15, 15, 0.4));
    animation: float 23s infinite ease-in-out reverse;
}

/* Formes animées communes */
.page-hero .animated-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
}

/* Particules communes */
.page-hero .particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-hero .particle {
    position: absolute;
    background: rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    width: 5px;
    height: 5px;
    animation: float 15s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Variation des particules pour un effet plus dynamique */
.page-hero .particle:nth-child(odd) {
    background: rgba(212, 175, 55, 0.4);
    width: 3px;
    height: 3px;
    animation-duration: 18s;
}

.page-hero .particle:nth-child(3n) {
    background: rgba(212, 175, 55, 0.5);
    width: 4px;
    height: 4px;
    animation-duration: 20s;
    animation-delay: 2s;
}

.page-hero .particle:nth-child(5n) {
    background: rgba(212, 175, 55, 0.6);
    width: 6px;
    height: 6px;
    animation-duration: 25s;
    animation-delay: 5s;
}

/* Étoiles communes */
.page-hero .stars-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-hero .star {
    position: absolute;
    background: #d4af37;
    border-radius: 50%;
    width: 2px;
    height: 2px;
    animation: twinkle 4s infinite ease-in-out;
    box-shadow: 0 0 5px #d4af37;
}

/* Variation des étoiles pour un effet plus dynamique */
.page-hero .star:nth-child(odd) {
    width: 1px;
    height: 1px;
    animation-duration: 3s;
}

.page-hero .star:nth-child(3n) {
    width: 1.5px;
    height: 1.5px;
    animation-duration: 5s;
    animation-delay: 1s;
}

.page-hero .star:nth-child(5n) {
    width: 2.5px;
    height: 2.5px;
    animation-duration: 6s;
    animation-delay: 2s;
}

/* Lignes de connexion communes */
.page-hero .connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/connection-lines.png');
    background-size: cover;
    opacity: 0.08;
    z-index: 0;
    filter: sepia(30%) hue-rotate(320deg);
}

/* Vagues communes */
.page-hero .wave-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: url('../images/wave-bg.png');
    background-size: cover;
    opacity: 0.08;
    z-index: 0;
    filter: sepia(20%) hue-rotate(320deg);
}

.page-hero .wave-bg.wave-2 {
    bottom: -50px;
    opacity: 0.05;
    animation: wave 20s infinite linear;
    filter: sepia(30%) hue-rotate(340deg);
}

.page-hero .wave-bg.wave-3 {
    bottom: -80px;
    opacity: 0.03;
    animation: wave 25s infinite linear reverse;
    filter: sepia(40%) hue-rotate(300deg);
}

/* Contenu de la hero section */
.page-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.page-hero h1 .accent-text {
    color: #d4af37;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.page-hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.page-hero .hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Style amélioré pour les boutons */
.page-hero .btn {
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.page-hero .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    z-index: -1;
}

.page-hero .btn:hover::before {
    left: 0;
}

.page-hero .btn-primary {
    background: linear-gradient(135deg, #151515, #252525);
    color: #fff;
    border: 1px solid #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-hero .btn-primary:hover {
    background: linear-gradient(135deg, #252525, #353535);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-hero .btn-secondary {
    background: transparent;
    color: #d4af37;
    border: 1px solid #d4af37;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-hero .btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-hero .btn-premium {
    background: linear-gradient(135deg, #a38728, #d4af37);
    color: #000;
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.page-hero .btn-premium:hover {
    background: linear-gradient(135deg, #d4af37, #f5d76e);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(0) translateX(20px);
    }
    75% {
        transform: translateY(20px) translateX(10px);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.1;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

@keyframes wave {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100% 0;
    }
}

/* Media queries pour la responsivité */
@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .page-hero p {
        font-size: 1rem;
    }
    
    .page-hero .hero-buttons {
        flex-direction: column;
    }
}
