/* Réinitialisation des styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Styles généraux */
body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: #000000;
    background: #f0f0f0;
    margin-top: 60px; /* Réduit pour le header */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* En-tête */
header {
    background: linear-gradient(90deg, #7b848a, #6fb9e0);
    color: #FFF;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header .logo {
    max-width: 130px;
    margin: -40px;
    float: left;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    gap: 1.5rem;
}

nav ul li a {
    color: #FFF;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #f0f0f0;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: #f0f0f0;
}

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #FFF;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Section Hero */
.hero {
    position: relative;
    height: 40vh;
    margin-top: 0;
    padding: 0;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider {
    position: relative;
    width: 500%;
    height: 100%;
    display: flex;
    transition: transform 0.7s ease-in-out;
}

.slide {
    position: relative;
    width: 20%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(10px) brightness(0.5);
    z-index: -1;
    transform: scale(1.1); /* Pour l'effet parallaxe */
    transition: transform 0.5s ease-out;
}

.slide:hover::before {
    transform: scale(1.15); /* Effet parallaxe au hover */
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 80%;
    max-width: 800px;
    z-index: 2;
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.slide-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.99);
    transform: translateY(20px);
    animation: slideUp 0.6s ease-out forwards;
    background: #ffffff;
    -webkit-background-clip: text;
    background-clip: text;
    color: #ffffff;
    font-weight: 700;
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    transform: translateY(20px);
    animation: slideUp 0.6s ease-out 0.2s forwards;
    background: #ffffff;
    -webkit-background-clip: text;
    background-clip: text;
    color: #ffffff;
    font-weight: 600;
}

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

.slide-content .btn {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(135deg, #015eea, #6fb9e0);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2),
                inset 0 2px 5px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.slide-content .btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #015eea, #015eea);
    transition: all 0.4s ease;
    z-index: -1;
}

.slide-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3),
                inset 0 2px 5px rgba(255, 255, 255, 0.3);
}

.slide-content .btn:hover:before {
    left: 0;
}

.slide-content .btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 3;
}

.slider-nav button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-nav button:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.dot {
    width: 30px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.dot.active {
    background: white;
    width: 50px;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero {
        height: 50vh;
    }

    .slide-content h1 {
        font-size: 1.8rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .slider-nav button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .slide-content .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 40vh;
    }

    .slide-content h1 {
        font-size: 1.5rem;
    }

    .slide-content p {
        font-size: 0.9rem;
    }

    .slider-nav button {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .slide-content .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 768px) {
    header {
        padding: 0.5rem 0;
    }

    header .container {
        position: relative;
        padding: 0.5rem;
    }

    header .logo {
        max-width: 100px;
        margin: -25px;
    }

    .hamburger {
        display: block;
        top: 40%;
    }

    body {
        margin-top: 45px;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(90deg, #015eea, #6fb9e0);
        padding: 1rem 0;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    nav.active {
        transform: translateY(0);
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        display: block;
        padding: 0.8rem;
    }
}

/* Section "À propos" */
.about {
    background: #FFF;
    color: #333;
    text-align: center;
    padding: 4rem 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Section Services */
.services {
    padding: 4rem 0;
    background: #f0f0f0;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.services .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.services .card {
    background: #FFF;
    padding: 1.5rem;
    text-align: center;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(1, 94, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.services .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(1, 94, 234, 0.2);
}

.services .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.1), rgba(211, 47, 47, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.services .card:hover::before {
    opacity: 1;
}

.services .service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Section Contact */
.contact {
    background: #FFF;
    padding: 4rem 2rem;
    text-align: center;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.contact form input,
.contact form textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 16px;
    width: 100%;
    margin-bottom: 15px;
}

.contact form input:focus,
.contact form textarea:focus {
    border-color: #015eea;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
    outline: none;
}

.contact form button {
    background: linear-gradient(135deg, #015eea, #6fb9e0);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    width: auto;
    min-width: 150px;
}

.contact form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact p,
.footer-col p {
    margin: 10px 0;
    line-height: 1.6;
}

.contact p a,
.footer-col p a {
    transition: color 0.3s ease;
}

.phone-number {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0;
}

.phone-number i {
    color: #015eea;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
}

.contact-item i {
    color: #015eea;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #015eea;
}

.contact-item1 {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(135deg, #015eea, #6fb9e0);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2),
                inset 0 2px 5px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-item1 i {
    color: #fff;
    font-size: 30px;
    width: 30px;
    text-align: center;
}

.contact-item1 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item1:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #015eea, #015eea);
    transition: all 0.4s ease;
    z-index: -1;
}

.contact-item1:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3),
                inset 0 2px 5px rgba(255, 255, 255, 0.3);
}

.contact-item1:hover:before {
    left: 0;
}

.contact-item1:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #015eea, #6fb9e0);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Pied de page */
footer {
    background: #0A1F3C;
    color: white;
    padding: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer .footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
}

footer .footer-col {
    flex: 1;
    min-width: 200px;
}

footer .footer-col h3 {
    margin-bottom: 1rem;
    color: #ffccbc;
}

footer .footer-col ul {
    list-style: none;
    padding: 0;
}

footer .footer-col ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .footer-col ul li a:hover {
    color: #ffccbc;
}

.social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.social-icon {
    color: white;
    font-size: 24px;
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    transform: translateY(-3px);
    color: #90caf9;
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
}

footer .contact-info {
    margin-top: 10px;
}

footer .contact-item {
    color: white;
}

footer .contact-item i {
    color: #90caf9;
}

footer .contact-item a:hover {
    color: #90caf9;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    overflow-y: auto;
}

.modal.show {
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #FFF;
    margin: 2rem auto;
    padding: 30px;
    border: 1px solid #6fb9e0;
    border-radius: 12px;
    width: 80%;
    max-width: 900px;
    position: relative;
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-body {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.modal-image {
    flex: 0 0 45%;
}

.modal-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.modal-description {
    flex: 1;
}

.modal-description h3 {
    color: #015eea;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

.modal-description p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    color: #015eea;
    background-color: #f5f5f5;
}

@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        max-height: 80vh;
        margin: 15% auto;
        padding: 15px;
        border-radius: 12px;
        overflow-y: auto;
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-image {
        flex: none;
        width: 100%;
        margin-bottom: 15px;
    }

    .modal-img {
        height: 180px;
        object-fit: cover;
        width: 100%;
        border-radius: 8px;
    }

    .modal-description {
        padding: 0 5px;
    }

    .modal-description h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
}

/* Animation des éléments */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Added parallax effect, smooth animations, and loading screen styles */

.section {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateZ(-10px) scale(2);
    z-index: -1;
    background-attachment: fixed;
}

/* Animation d'apparition pour les éléments */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Amélioration des cartes de service */
.service-card {
    background: #FFF;
    border: 1px solid rgba(111, 185, 224, 0.2);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: #015eea;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Loading animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #015eea, #6fb9e0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f0f0f0;
    border-top: 5px solid #015eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Barre de recherche et filtres */
.search-filter-container {
    margin-bottom: 2rem;
    text-align: center;
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto 1rem;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #015eea;
    background: rgba(255, 255, 255, 0.1);
}

.search-box .fa-search {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
}

.filter-buttons {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #015eea, #6fb9e0);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: white;
}

.faq-toggle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Styles pour la section Formation */
.formation {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.formation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.formation-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
    min-height: 400px;
}

.formation-card p {
    flex-grow: 1;
    margin-bottom: 0;
}

.formation-card:hover {
    transform: translateY(-5px);
}

.formation-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.formation-card h3 {
    color: #333;
    padding: 1rem;
    margin: 0;
    font-size: 1.5rem;
}

.formation-card p {
    color: #666;
    padding: 0 1rem 1rem;
    margin: 0;
    line-height: 1.6;
}

.formation-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    z-index: 1;
}

.formation-info {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    background-color: #f5f5f5;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.formation-info span {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
}

.formation-info i {
    margin-right: 5px;
    color: #333;
}

.formation-card:hover .formation-badge {
    background-color: var(--primary-color);
}

/* Responsive design pour la section Formation */
@media (max-width: 768px) {
    .formation-grid {
        grid-template-columns: 1fr;
    }
    
    .formation-card {
        margin: 0 1rem;
    }
    
    .formation-info {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 15px;
    }
    
    .formation-info span {
        margin: 5px 0;
    }
}

/* Styles spécifiques pour les modales de formation */
.modal-body .modal-text h3 {
    color: #333;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.2rem;
}

.modal-body .modal-text ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-body .modal-text ul li {
    margin: 0.5rem 0;
    color: #666;
}

.modal-body .modal-text p {
    margin: 0.5rem 0;
    color: #666;
    line-height: 1.6;
}

/* Curseur pointeur pour les cartes de formation */
.formation-card {
    cursor: pointer;
}

/* Styles pour les détails de formation dans les modales */
.formation-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f8f8;
    border-radius: 8px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.detail-item span {
    color: #444;
    font-weight: 500;
}

/* Responsive pour les détails de formation */
@media (max-width: 768px) {
    .formation-details {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}