/* General Styles for UTA DIGITALFORMA Website */

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f0f0;
    overflow-x: hidden;
}

a {
    color: #007C37;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #00A34A;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Container adjustments */
.container {
    max-width: 1200px;
    padding: 0 15px;
}

/* Header Styles */
header {
    padding: 80px 0;
}

/* Footer Styles */
.matrix-footer {
    background-color: #222;
    color: #f5f5f5;
    padding: 50px 0 20px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #00A34A;
}

.matrix-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 100, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 0;
}

.matrix-footer .container {
    position: relative;
    z-index: 1;
}

.matrix-footer h3 {
    color: #00A34A;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
}

.matrix-footer ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.matrix-footer ul li {
    margin-bottom: 10px;
}

.matrix-footer a {
    color: #444;
}

.matrix-footer a:hover {
    color: #00A34A;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.5rem;
    color: #ccc;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: #00A34A;
    transform: translateY(-3px);
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* Sidebar Styles */
.sidebar-section {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-section h3 {
    color: #007C37;
    font-family: 'Segoe UI', sans-serif;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.contact-form .form-control {
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
    margin-bottom: 15px;
}

.contact-form .form-control:focus {
    background-color: #fff;
    border-color: #00A34A;
    box-shadow: 0 0 5px rgba(0, 163, 74, 0.3);
}

.contact-form .form-label {
    color: #444;
}

.other-formations {
    list-style: none;
    padding: 0;
}

.other-formations li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.other-formations li::before {
    content: ">";
    position: absolute;
    left: 0;
    top: 0;
    color: #00A34A;
    font-family: 'Segoe UI', sans-serif;
}

/* Matrix Specific Elements */
.matrix-bg {
    background-color: #f8f8f8;
    color: #007C37;
    font-family: 'Segoe UI', sans-serif;
}

.cta-section {
    background-color: #e8f5f0;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(248, 248, 248, 0.9), rgba(232, 245, 240, 0.7), rgba(248, 248, 248, 0.9));
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    color: #007C37;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: 'Segoe UI', sans-serif;
    animation: pulse 2s infinite;
}

.cta-text {
    color: #333;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Media Queries for Responsive Design */
@media (max-width: 992px) {
    header {
        padding: 60px 0;
    }

    .matrix-title {
        font-size: 2rem;
    }

    .matrix-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 40px 0;
    }

    .formation-content {
        padding: 20px;
    }

    .matrix-footer {
        padding: 30px 0 20px;
    }

    .matrix-footer h3 {
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .matrix-title {
        font-size: 1.8rem;
    }

    .matrix-subtitle {
        font-size: 1rem;
    }

    .matrix-btn {
        padding: 8px 20px;
        margin: 5px;
    }

    .cta-title {
        font-size: 1.8rem;
    }
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f0f0f0;
}

::-webkit-scrollbar-thumb {
    background: #00A34A;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #007C37;
}

/* Additional styles for formation pages */
.thumbnail-container {
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.thumbnail-container img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.thumbnail-container:hover img {
    transform: scale(1.05);
}

.formation-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    border: 1px solid #ddd;
    aspect-ratio: 16/9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.highlight-box {
    background-color: #e8f5f0;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.highlight-box h4 {
    color: #007C37;
    font-family: 'Segoe UI', sans-serif;
    margin-bottom: 15px;
}

.progress-container {
    width: 100%;
    background-color: #ddd;
    border-radius: 5px;
    margin: 10px 0;
    height: 25px;
}

.progress-bar {
    height: 100%;
    background-color: #00A34A;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
}

/* Testimonials section */
.testimonial {
    background-color: #fff;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 3px solid #00A34A;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease;
}

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

.testimonial::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 60px;
    color: rgba(0, 163, 74, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content {
    position: relative;
    z-index: 1;
    padding: 0 0 0 20px;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-author {
    text-align: right;
    margin-top: 15px;
}

.testimonial-author p {
    margin: 0;
    padding: 0;
    font-weight: 600;
    color: #007C37;
    font-style: normal;
}

.testimonial-author span {
    font-weight: normal;
    color: #666;
    font-size: 0.9em;
}

/* Partners Section Styles */
.partners-section {
    background-color: #fff;
    padding: 70px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    position: relative;
}

.partners-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(248, 248, 248, 0.7), rgba(255, 255, 255, 1), rgba(248, 248, 248, 0.7));
    z-index: 0;
}

.partners-section .container {
    position: relative;
    z-index: 1;
}

.partners-section h2 {
    text-align: center;
    color: #007C37;
    margin-bottom: 40px;
    position: relative;
}

.partners-section h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #00A34A;
    margin: 15px auto 0;
}

.partners-section p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #555;
}

.partners-logo-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-bottom: 50px;
    justify-items: center;
    align-items: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 0;
}

.partner-logo {
    width: 100%;
    max-width: 140px;
    height: 70px;
    object-fit: contain;
    filter: grayscale(50%);
    transition: all 0.3s ease;
    border-radius: 6px;
    padding: 8px;
    background-color: #f8f8f8;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    will-change: transform; /* Optimisation pour animation */
}

.partner-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
    transition: all 0.3s ease;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03);
    width: 100%;
}

.partner-name {
    font-size: 0.9rem;
    margin-top: 8px;
    font-weight: 500;
    color: #555;
}

.partner-link {
    text-decoration: none;
    color: inherit;
}

.partner-item:hover {
    transform: translateY(-3px);
}

.funding-info {
    background-color: #e8f5f0;
    padding: 30px;
    border-radius: 8px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.funding-info h3 {
    color: #007C37;
    margin-bottom: 20px;
    font-weight: 600;
}

.funding-info ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.funding-info ul li {
    padding: 10px 0 10px 25px;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.funding-info ul li:last-child {
    border-bottom: none;
}

.funding-info ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 10px;
    color: #00A34A;
    font-weight: bold;
}

@media (max-width: 768px) {
    .partner-logo {
        height: 60px;
        max-width: 150px;
    }

    .partners-logo-container {
        gap: 20px;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .partners-logo-container {
        grid-template-columns: repeat(1, 1fr);
    }
}

.testimonials-section {
    background-color: #f8f8f8;
    position: relative;
}

.testimonials-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 100, 0, 0.05) 0%, rgba(248, 248, 248, 0.8) 80%);
    z-index: 0;
}

.testimonials-section .container {
    position: relative;
    z-index: 1;
}

.testimonials-section .section-title {
    color: #007C37;
    position: relative;
}

.testimonials-section .section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #00A34A;
    margin: 15px auto 0;
}

/* Styles pour les cartes de formation */
.card {
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-body {
    position: relative;
    z-index: 1;
}

.card-title {
    color: #00732f;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.card-text, .card-body ul li {
    color: #222;
    font-weight: 500;
    font-size: 0.95rem;
}

.card-img-top {
    height: 180px;
    object-fit: cover;
    border-bottom: 3px solid #00A34A;
}

.formation-title-container {
    background-color: #00732f;
    display: inline-block;
    padding: 10px 30px;
    margin-bottom: 30px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.formation-title-container h2 {
    color: white;
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Styles pour les visuels de formation */
.formation-visual-container {
    margin: 30px 0;
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
}

.formation-visual {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 300px;
}

.visual-content {
    padding: 25px;
}

.instructor-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.instructor-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #00A34A;
}

.instructor-details h4 {
    color: #007C37;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.instructor-details p {
    color: #555;
    margin: 0;
    font-size: 0.9rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tech-tag {
    display: inline-block;
    padding: 6px 12px;
    background-color: #e0f5e9;
    color: #007C37;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Responsive design pour les visuels */
@media (min-width: 768px) {
    .formation-visual-container {
        flex-direction: row;
    }

    .visual-media {
        width: 50%;
    }

    .formation-visual {
        height: 100%;
        max-height: none;
    }

    .visual-content {
        width: 50%;
    }
}

@media (max-width: 767px) {
    .instructor-info {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .instructor-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .tech-tags {
        justify-content: center;
    }
}
