/* formations.css */

html { 
    scroll-behavior: smooth; 
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
    position: relative;
}

/* Solution améliorée pour le fond fixe sur tous les appareils */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(to bottom, 
        #4a90e2 0%, 
        #357abd 40%, 
        #2c7cc4 65%, 
        #f8faff 65%, 
        #f8faff 100%);
    z-index: -1;
    pointer-events: none;
}

.separator {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.separatorx2 {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

/* Classes pour les couleurs adaptatives */
.adaptive-title {
    transition: color 0.3s ease;
}

.force-white { 
    color: white !important; 
}

.force-blue { 
    color: #4a90e2 !important; 
}

/* Amélioration des transitions pour les éléments de prix */
.price-box .price,
.price-box .price-detail {
    transition: color 0.3s ease;
}

.price-box.full {
    width: 100%;
}

.price-box h2 {
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 2rem;
    transition: color 0.3s ease;
}

.price-box
 {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 1.5rem;
    padding: 20px 25px;
    display: inline-block;
}

.price {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: -1px;
    transition: color 0.3s ease;
}

.price-detail {
    font-size: 1rem;
    opacity: 0.9;
    transition: color 0.3s ease;
}

/* Gestion des couleurs pour les éléments du hero */
.hero-section h1,
.hero-section .subtitle,
.hero-section .description {
    transition: color 0.3s ease;
}

/* Navigation */
.nav-header {
    background: white;
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #4a90e2;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.back-button {
    color: #4a90e2;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 8px;
    margin-left: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #4a90e2;
    position: relative;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Tooltips */
.back-button[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 15px;
    padding: 6px 12px;
    background: white;
    color: #4a90e2;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    pointer-events: none;
    opacity: 0;
    animation: tooltipFadeIn 0.2s ease-in-out forwards;
}

.back-button[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 2px;
    border: 6px solid transparent;
    border-bottom-color: white;
    z-index: 1001;
    pointer-events: none;
    opacity: 0;
    animation: tooltipFadeIn 0.2s ease-in-out forwards;
    filter: drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.1));
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.gradient-bg {
    padding-top: 30px;
    padding-bottom: 2em;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
}

.floating-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Style du bouton CTA avec effet hover élégant - adapté pour fond bleu */
.cta-button {
    background: white;
    color: #4a90e2;
    border: 2px solid white;
    padding: 18px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #4a90e2;
    border-radius: 50px;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.cta-button:hover::before {
    width: 100%;
    height: 100%;
}

.cta-button:hover {
    color: white;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta-button i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: scale(1.1);
}

/* Floating elements animation */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: floating 20s infinite ease-in-out;
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: -7s;
}

.floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 70%;
    animation-delay: -14s;
}

@keyframes floating {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    33% { 
        transform: translateY(-30px) rotate(120deg); 
    }
    66% { 
        transform: translateY(20px) rotate(240deg); 
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }

    .back-button {
        padding: 8px;
        margin-left: 8px;
    }

    /* Masquer les tooltips sur mobile */
    .back-button[data-tooltip]:hover::after,
    .back-button[data-tooltip]:hover::before {
        display: none;
    }
	.hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
    }
}