/* Styles spécifiques pour la page de veille technologique */
body {
    background-color: #001129;
}

/* Fond de la page et overlay */
.main-content {
    position: relative;
    min-height: 100vh;
    overflow-y: auto;
    margin-left: 300px;
    padding: 0;
    background-image: none;
}

.background-container {
    position: fixed;
    top: 0;
    left: 300px;
    right: 0;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
}

.background-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.overlay {
    position: fixed;
    top: 0;
    left: 300px;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

/* Style pour le cadre du titre */
.title-box {
    position: relative;
    width: 300px;
    border: 2px solid #f0f0f0;
    padding: 15px 20px;
    margin: 0 0 30px 0;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 5;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

#typed-name {
    color: #e5d9a8; /* Couleur dorée/beige */
    font-size: 2.5rem;
    font-weight: bold;
    font-family: 'Lucida Console', monospace;
    margin: 0;
    padding: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
    text-align: center;
    line-height: 1.2;
}

/* Section d'introduction de la veille */
.veille-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 50px 0 100px;
    padding: 20px;
}

.veille-intro-content {
    flex: 1;
    padding-right: 40px;
}

.veille-title {
    font-size: 4rem;
    color: white;
    margin-bottom: 30px;
    font-weight: bold;
}

.veille-description {
    color: #e0e0e0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.veille-description p {
    margin-bottom: 20px;
}

.veille-theme {
    color: #4ecdc4;
    font-size: 1.2rem;
    margin-top: 30px;
    font-weight: 500;
}

.emoji {
    font-size: 1.4rem;
}

.veille-images {
    flex: 1;
    max-width: 45%;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.grid-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Section des articles de veille */
.veille-content {
    padding: 20px;
}

.veille-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: #00285a;
    color: white;
    border: 2px solid #4ecdc4;
    border-radius: 30px;
    padding: 10px 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: #4ecdc4;
    color: #001129;
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.5);
}

.articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Cartes d'articles */
.article-card {
    background-color: #002654;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid #003a80;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: #4ecdc4;
}

.article-image {
    height: 200px;
    overflow: hidden;
    border-bottom: 3px solid #4ecdc4;
}

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

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

.article-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    color: #4ecdc4;
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-info {
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.rating {
    color: #ffcc00;
}

/* Style pour le bouton "Voir plus/Voir moins" */
.toggle-excerpt {
    background-color: #0d4b66;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    margin-top: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    align-self: center;
    width: 100%;
    text-align: center;
}

.toggle-excerpt:hover {
    background-color: #4ecdc4;
    color: #001129;
}

.article-excerpt {
    color: #cccccc;
    margin-bottom: 20px;
    flex: 1;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.article-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 0;
}

.action-btn {
    background-color: #003a80;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    margin: 0 5px;
    font-size: 0.9rem;
}

.details-btn {
    background-color: #2e7c74;
}

.action-btn:hover {
    background-color: #4ecdc4;
    color: #001129;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .veille-intro {
        flex-direction: column;
    }
    
    .veille-intro-content {
        width: 100%;
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .veille-images {
        max-width: 100%;
    }
    
    .articles-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .title-box {
        width: 280px;
        margin: 0 0 30px 0;
    }
    
    #typed-name {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding-top: 60px;
    }
    
    .background-container, .overlay {
        left: 0;
    }
    
    .veille-intro {
        flex-direction: column;
        margin: 30px 0 80px;
        padding: 15px;
    }
    
    .veille-intro-content {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .veille-title {
        font-size: 3rem;
        margin-bottom: 20px;
    }
    
    .veille-images {
        max-width: 100%;
    }
    
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .veille-content {
        padding: 15px;
    }
    
    .veille-filters {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: 30px;
    }
    
    .filter-btn {
        width: 80%;
        max-width: 200px;
    }
    
    .articles-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .article-card {
        max-width: 100%;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .title-box {
        width: 250px;
        padding: 12px 15px;
        margin: 20px 0 30px 0;
    }
    
    #typed-name {
        font-size: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .veille-intro {
        margin: 20px 0 60px;
        padding: 10px;
    }
    
    .veille-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .veille-description {
        font-size: 1rem;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .veille-content {
        padding: 10px;
    }
    
    .veille-filters {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .filter-btn {
        width: 90%;
        padding: 8px 20px;
    }
    
    .articles-container {
        gap: 15px;
        padding: 0 5px;
    }
    
    .article-content {
        padding: 20px 15px;
    }
    
    .article-title {
        font-size: 1.2rem;
    }
    
    .article-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-btn {
        margin: 0;
        padding: 8px 12px;
    }
    
    .title-box {
        width: 220px;
        padding: 10px;
        margin: 15px 0 25px 0;
    }
    
    #typed-name {
        font-size: 1.8rem;
    }
}