/* Styles généraux du site */
body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

header {
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

footer {
    margin-top: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Styles pour les projets */
.projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.project {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    margin: 20px;
    padding: 20px;
    max-width: 30%;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.project img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.project h2 {
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.project p {
    color: #666;
}

/* Custom styles for interactivity */
.icon {
    font-size: 1.5em;
    margin-right: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.icon:hover {
    color: #007bff;
    transform: scale(1.2);
}

img.interactive {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img.interactive:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in;
}

.fade-in-visible {
    opacity: 1;
}

/* Slide-in animation */
@keyframes slide-in {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-in {
    opacity: 0;
    animation: slide-in 1s forwards;
}

.slide-in-delay-1 {
    animation-delay: 0.3s;
}

.slide-in-delay-2 {
    animation-delay: 0.6s;
}

.slide-in-delay-3 {
    animation-delay: 0.9s;
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: block;
    visibility: hidden;
    opacity: 0;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    visibility: visible;
    opacity: 1;
}

.scroll-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.scroll-to-top i {
    font-size: 24px;
    line-height: 50px;
}

/* Progress bar */
#progressBarContainer {
    position: fixed;
    width: 100%;
    height: 5px;
    top: 0;
    left: 0;
    z-index: 9999;
    background-color: #f3f3f3;
}

#progressBar {
    width: 0;
    height: 100%;
    background-color: #007bff;
    transition: width 0.25s ease-in-out, background-color 0.25s ease-in-out;
}

.context-title {
    margin-bottom: 15px;
}

.context-text {
    margin-bottom: 20px;
    text-align: justify;
}

/* Styles spécifiques pour la page de veille technologique */

/* Titre principal */
.veille-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #007bff;
    display: inline-block;
    font-weight: 600;
}

/* Conteneurs de sections */
.veille-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.veille-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* En-têtes des sections */
.veille-section-header {
    color: #007bff;
    border-left: 4px solid #007bff;
    padding-left: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.veille-section-header i {
    font-size: 1.6rem;
    margin-right: 10px;
    color: #007bff;
}

/* Cartes d'information */
.info-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.info-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid rgba(0, 123, 255, 0.2);
    font-weight: 600;
    padding: 15px 20px;
}

.info-card .card-body {
    padding: 20px;
}

.info-card .card-title {
    margin-bottom: 0;
    font-weight: 600;
    color: #2c3e50;
}

.info-card.primary-card .card-header {
    background: linear-gradient(90deg, #007bff, #4da6ff);
    color: white;
}

.info-card.dark-card .card-header {
    background: linear-gradient(90deg, #343a40, #6c757d);
    color: white;
}

/* Listes */
.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 30px;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li:before {
    content: "✓";
    color: #28a745;
    position: absolute;
    left: 0;
    top: 10px;
    font-weight: bold;
}

/* Liste numérotée stylisée */
.implementation-steps {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.implementation-steps li {
    position: relative;
    padding: 15px 0 15px 40px;
    border-bottom: 1px solid #eee;
}

.implementation-steps li:last-child {
    border-bottom: none;
}

.implementation-steps li:before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 14px;
    width: 28px;
    height: 28px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-weight: bold;
}

.implementation-steps li strong {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
}

/* Tableau */
.tech-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    margin: 25px 0;
}

.tech-table thead th {
    background-color: #343a40;
    color: white;
    padding: 15px;
    text-align: left;
    border: none;
}

.tech-table tbody tr {
    transition: background-color 0.3s;
}

.tech-table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.tech-table tbody td {
    padding: 12px 15px;
    border-top: 1px solid #eee;
}

/* Flux RSS */
.rss-feed {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.rss-item {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.rss-item:hover {
    background-color: #f1f4f9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.rss-item:last-child {
    margin-bottom: 0;
}

.rss-item h5 {
    margin-bottom: 10px;
}

.rss-item a {
    color: #007bff;
    text-decoration: none;
}

.rss-item a:hover {
    text-decoration: underline;
}

/* Alerte stylisée */
.alert {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.alert-info {
    border-left: 4px solid #17a2b8;
}

.alert i {
    margin-right: 8px;
}

/* Ressources */
.resources-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.resources-title {
    margin-bottom: 20px;
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 2px solid #007bff;
}

.resource-link {
    display: block;
    padding: 12px 15px;
    background-color: #fff;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
}

.resource-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #007bff;
}

.resource-link i {
    margin-right: 10px;
    color: #007bff;
}

/* Animations pour les éléments de la page */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pied de page de la veille */
.veille-footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    color: #6c757d;
    font-style: italic;
    border-top: 1px solid #eee;
}

/* Icônes dans les titres de sections */
h4 i {
    margin-right: 8px;
    color: #007bff;
}

/* Responsive design */
@media (max-width: 992px) {
    .project {
        max-width: 45%;
    }

    .veille-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .project {
        max-width: 100%;
    }

    .veille-section {
        padding: 15px;
    }

    .veille-title {
        font-size: 1.8rem;
    }

    .tech-table thead th,
    .tech-table tbody td {
        padding: 10px;
    }

    .implementation-steps li {
        padding-left: 35px;
    }

    .implementation-steps li:before {
        width: 24px;
        height: 24px;
        line-height: 24px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 15px;
    }

    .veille-title {
        font-size: 1.6rem;
    }

    .resources-section {
        padding: 15px;
    }

    .resource-link {
        padding: 10px;
    }
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 30px;
}

.timeline-item:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: #007bff;
}

.timeline-item:after {
    content: "";
    position: absolute;
    left: -8px;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #007bff;
}

.timeline-date {
    font-weight: bold;
    color: #007bff;
    margin-bottom: 5px;
}

.timeline-title {
    margin-bottom: 5px;
}

.timeline-subtitle {
    font-style: italic;
    color: #6c757d;
    margin-bottom: 10px;
}

.social-links a {
    font-size: 1.5rem;
    color: #007bff;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    color: #0056b3;
    transform: scale(1.2);
}

.badge {
    padding: 8px 12px;
    font-size: 1rem;
}

.language-level {
    margin-top: 10px;
}