/* Variables */

/* Hero Section */
.hero {
    position: relative;
    min-height: 550px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    padding: 80px 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 1;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    display: flex;
    justify-content: right;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-background-dark-overlay);
    z-index: 2;
}

.hero-overlay-wrapper {
    position: relative;
    width: 55%;
    height: 100%;
    background: var(--color-primary-overlay);
    clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-overlay-wrapper::before,
.hero-overlay-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: linear-gradient(135deg, transparent 49.9%, var(--color-overlay-shine) 50%, transparent 50.1%);
}

.hero-overlay-wrapper::after {
    transform: translateX(-10px);
}

.hero-content {
    position: relative;
    z-index: 5;
    color: var(--color-background);
    max-width: 600px;
    padding: 60px;
    margin-left: auto;
    margin-right: 60px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-content .btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    background-color: var(--color-background);
    color: var(--color-primary);
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: none;
    font-weight: 500;
}

.hero-content .btn i {
    margin-left: 0.5rem;
    font-size: 0.9em;
}

.hero-content .btn:hover {
    background-color: var(--color-primary-light);
    color: var(--color-background);
    transform: translateY(-2px);
}

/* Formations Section */
.formation-card {
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px var(--color-shadow);
}

.formation-card:hover {
    transform: translateY(-5px);
}

.navigation-arrows .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Why Us Section - Design moderne et sobre */
.why-us {
    padding: 8rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
    position: relative;
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    top: 0;
    right: -200px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(107, 62, 137, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.why-us .container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.why-us-title {
    color: #1a202c;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.6rem;
    font-weight: 600;
    letter-spacing: -0.8px;
    position: relative;
}

.why-us-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.why-us-subtitle {
    text-align: center;
    color: #4a5568;
    font-size: 1.1rem;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem 3rem;
    margin-top: 2rem;
}

.why-us-item {
    background: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 2.8rem 2.2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.why-us-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
}

.why-us-item::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(107, 62, 137, 0.08) 0%, rgba(251, 194, 37, 0.08) 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.why-us-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.why-us-item:hover::after {
    opacity: 1;
}

.why-us-item-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.8rem;
    box-shadow: 0 4px 15px rgba(107, 62, 137, 0.25);
    overflow: hidden;
    position: relative;
}

.why-us-item-icon .reason-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.why-us-item-content {
    position: relative;
    z-index: 2;
}

.why-us-item-title {
    color: #1a202c;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.why-us-item-text {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.why-us-item-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.why-us-item-link:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.why-us-item-link i {
    transition: transform 0.3s ease;
}

.why-us-item-link:hover i {
    transform: translateX(3px);
}

/* Actualités Section */
.actualites .card {
    border: none;
    box-shadow: 0 4px 6px var(--color-shadow);
    transition: transform 0.3s ease;
}

.actualites .card:hover {
    transform: translateY(-5px);
}

/* Contact Section */
.contact {
    position: relative;
    overflow: hidden;
}

.contact .card {
    border: none;
    box-shadow: 0 4px 6px var(--color-shadow);
}

.social-links a {
    font-size: 1.5rem;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 0.8;
}

/* About Section - Stats Icons avec cercles */
.floating-stats .stats-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(107, 62, 137, 0.25);
    overflow: hidden;
    position: relative;
    margin-right: 1rem;
}

.floating-stats .stats-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Custom Styles */
.bg-primary {
    background-color: var(--color-primary) !important;
}

.text-primary {
    color: var(--color-primary) !important;
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .hero-overlay-wrapper {
        width: 70%;
        clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%);
    }

    .hero-content {
        margin: 0 auto;
        padding: 40px 20px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .hero {
        min-height: 500px;
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        text-align: center;
        padding: 3rem 1rem !important;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
    }
    
    .why-us-item {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .why-us {
        padding: 4rem 0;
    }
    
    .why-us-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .why-us-subtitle {
        font-size: 1rem;
        margin-bottom: 3rem;
    }

    .why-us-grid {
        gap: 2rem;
    }
    
    .why-us-item {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }
    
    .why-us-item-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 1.5rem;
    }
    
    .why-us-item-title {
        font-size: 1.2rem;
    }
    
    .why-us-item-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .why-us {
        padding: 4rem 0;
    }
    
    .why-us-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .why-us-item {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }
}
