/* ============================================
   ABELOR - Styles CSS
   ============================================ */

:root {
    --primary-color: #1bb69c;
    --primary-dark: #159f89;
    --primary-light: #e8f8f5;
    --secondary-color: #2d3e50;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar .btn-primary {
    padding: 0.5rem 1.5rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 182, 156, 0.3);
}

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

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

.bg-primary-soft {
    background-color: var(--primary-light);
}

.bg-success-soft {
    background-color: #d4edda;
}

.bg-info-soft {
    background-color: #d1ecf1;
}

.bg-warning-soft {
    background-color: #fff3cd;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-info {
    color: var(--info) !important;
}

.text-warning {
    color: #856404 !important;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-section .display-3 {
    font-weight: 700;
    line-height: 1.2;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-wrapper img {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.floating-card {
    position: absolute;
    bottom: 50px;
    left: -30px;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    top: -200px;
    right: -200px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--info), var(--primary-color));
    bottom: -100px;
    left: -100px;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--warning), var(--primary-color));
    top: 50%;
    left: 10%;
}

.stat-item h3 {
    font-size: 2.5rem;
}

/* ============================================
   CATEGORY CARDS
   ============================================ */

.category-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(5deg) scale(1.1);
}

/* ============================================
   FORMATION CARDS
   ============================================ */

.formation-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.formation-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.formation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.formation-card:hover .formation-image img {
    transform: scale(1.1);
}

.badge-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
}

.badge-modalite {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #10b981;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
}

.formation-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.formation-content h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.formation-content p {
    flex-grow: 1;
}

.formation-meta {
    display: flex;
    align-items: center;
}

/* ============================================
   FEATURE CARDS
   ============================================ */

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

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

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.cta-box {
    padding: 3rem;
    border-radius: 20px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--secondary-color);
    color: var(--white);
}

.footer-brand h5 {
    color: var(--white);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* ============================================
   COOKIE POPUP
   ============================================ */

.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 350px;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-content h6 {
    color: var(--text-dark);
}

.cookie-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.cookie-content a:hover {
    text-decoration: underline;
}

/* ============================================
   UTILITIES
   ============================================ */

.text-muted {
    color: var(--text-muted) !important;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.rounded-4 {
    border-radius: 15px !important;
}

/* ============================================
   SECTION SPACING
   ============================================ */

section.py-5 + section.py-5 {
    padding-top: 3rem !important;
}

/* ============================================
   TESTIMONIAL CARDS
   ============================================ */

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

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

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
}

.testimonial-rating i {
    font-size: 1.2rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-style: italic;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    left: -15px;
    top: -10px;
    font-size: 3rem;
    color: var(--primary-light);
    font-family: Georgia, serif;
    opacity: 0.5;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}

.testimonial-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.testimonial-author h6 {
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.testimonial-author small {
    line-height: 1.3;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section .display-3 {
        font-size: 2.5rem;
    }
    
    .stat-item {
        margin-bottom: 1rem;
    }
    
    .cookie-popup {
        left: 10px;
        right: 10px;
        width: auto;
    }
}

@media (max-width: 767px) {
    .hero-section .display-3 {
        font-size: 2rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .formation-image {
        height: 200px;
    }

    .cta-box {
        padding: 2rem;
    }

    .testimonial-card {
        margin-bottom: 1rem;
    }

    .testimonial-text::before {
        font-size: 2rem;
        left: -10px;
        top: -5px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.slide-in {
    animation: slideIn 0.8s ease-out;
}