/* Corps de la page */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* Conteneur principal */
.rss-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
    height: 100%; /* Prend toute la hauteur disponible */
    flex-wrap: wrap;
    justify-content: center;
}

/* Section des flux RSS (gauche) */
.rss-sections {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 28%; /* Réduction de la largeur */
    flex-grow: 1;
}

.rss-section {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    max-height: 300px; /* Hauteur réduite */
    overflow-y: auto; /* Scroll si nécessaire */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Contenu des articles RSS */
.rss-item {
    border-bottom: 1px solid #ddd;
    padding: 8px 0;
}

.rss-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 8px;
}

.rss-item h3 {
    margin: 0;
    font-size: 1.1em;
    color: #333;
}

.rss-item p {
    font-size: 0.85em;
    color: #555;
}

.rss-item small {
    color: #888;
    font-size: 0.75em;
}

.rss-item a {
    text-decoration: none;
    font-weight: bold;
    color: #0073e6;
    display: block;
    margin-top: 5px;
}

/* Section météo (centre) */
.weather-widget {
    width: 28%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background-color: #eef5fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: -20px;
}

.real-time-weather {
    text-align: center;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 280px;
}

#city {
    padding: 8px;
    width: 85%;
    margin-bottom: 10px;
}

button {
    padding: 8px 15px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

/* Section des tweets (droite) */
/* Section des tweets (droite) */
/* Section des tweets (droite) */
.tweets-container {
    width: 28%;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 30px; /* Augmentation de l'espacement entre les widgets */
    overflow-y: auto;
    max-height: 3000px; /* Augmenter la hauteur maximale du conteneur */
}

/* Widget Twitter */
.twitter-timeline {
    width: 100% !important;
    height: 1000px !important; /* Augmenter la hauteur de chaque widget pour plus de visibilité */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}




.weather-widget-iframe {
    display: block;
    margin: 0 auto;
    width: 100%; /* S'adapte à la largeur de son conteneur */
    max-width: 600px; /* Limite la largeur à 600px */
    height: 250px; /* Hauteur fixe */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .rss-container {
        flex-direction: column;
        align-items: center;
    }

    .rss-sections, .weather-widget, .tweets-container {
        width: 90%;
    }

    .twitter-timeline {
        height: 300px !important;
    }
}
