body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f7f9fc;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 700px;
    margin: 2em auto;
    background: #fff;
    padding: 0.75em 2em 2em 2em; /* haut | droite | bas | gauche */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

h1 {
    text-align: center;
    color: #3FA5D9;
}

h2 {
    text-align: center;
    color: #3FA5D9;
}

.lang{
text-align: right;
font-size: 0.85em;


}

form input[type="url"],
form input[type="text"],
form input[type="email"],
form button {
    width: 100%;
    padding: 0.8em;
    margin: 0.5em 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
}

form button {
    background-color: #3FA5D9;
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

form button:hover {
    background-color: #81C252;
}

.share-buttons {
    margin-top: 1.5em;
    text-align: center;
}

.share-buttons a {
    display: inline-block;
    margin: 0 10px;
    font-size: 1.6em;
    color: #3FA5D9;
    transition: transform 0.2s;
}

.share-buttons a:hover {
    transform: scale(1.2);
    color: #003f7f;
}


.lang-btn {
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 6px;
    margin-right: 10px;
    display: inline-block;
}

.lang-btn input {
    margin-right: 5px;
}
.lang-choice {
    margin: 10px 0;
}

.lang-choice label {
    margin-right: 15px;
    cursor: pointer;
    font-size: 14px;
}

.lang-choice input {
    margin-right: 5px;
}


@media screen and (max-width: 600px) {
    .container {
        margin: 1em;
        padding: 1.5em;
    }

    .share-buttons a {
        margin: 5px;
        font-size: 1.4em;
    }

    form input,
    form button {
        font-size: 1em;
    }
}


.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

a {
    color: #3FA5D9;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
.share-buttons {
    margin-top: 1em;
    font-size: 1.1em;
}

.share-buttons a {
    margin-right: 10px;
    text-decoration: none;
    color: #3FA5D9;
    font-weight: bold;
}

.share-buttons a:hover {
    text-decoration: underline;
}

.short-result {
    margin-top: 2em;
    text-align: center;
}

.short-url-box {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 0.5em;
    flex-wrap: wrap;
}

.short-url-box input {
    width: 300px;
    padding: 0.6em;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
}

.short-url-box button {
    padding: 0.6em 1em;
    background-color: #3FA5D9;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.short-url-box button:hover {
    background-color: #81C252;
}

.policy{
    border-radius: 6px;
    background-color: #EBE8E6;
    font-size: 0.75em;
    text-align: left;
}


.copy-confirm {
    color: green;
    font-weight: bold;
    display: none;
    margin-top: 0.5em;
    animation: fadeOut 2s forwards;
}

@keyframes fadeOut {
    0%   { opacity: 1; }
    80%  { opacity: 1; }
    100% { opacity: 0; display: none; }
}

.qr-code {
  margin-top: 1rem;
  text-align: center;
}
.qr-code img {
  border: 1px solid #ccc;
  padding: 0.5rem;
  background: #fff;
  border-radius: 4px;
}
.logo-center {
  text-align: center;
  margin-bottom: 1em;
}

.logo {
  width: 200px;
  height: auto;
}


.modal-content {
  background-color: #fff;
  margin: 2% auto;
  padding: 5px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.close {
  position: absolute;
  top: 10px; right: 15px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}
/* Style du formulaire de contact dans la popup */
.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-content label {
    font-weight: bold;
    color: #333;
    font-size: 1rem;
}

.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="number"],
.modal-content textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s ease;
}

.modal-content input:focus,
.modal-content textarea:focus {
    border-color: #3FA5D9;
    outline: none;
    box-shadow: 0 0 5px rgba(138, 75, 175, 0.4);
}

.modal-content textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-content button[type="submit"] {
    background-color: #3FA5D9;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.modal-content button[type="submit"]:hover {
    background-color: #81C252;
}

/* Message de succès ou d’erreur */
.success, .error {
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.footer {
    text-align: center;
    padding: 20px;
    background-color: #f5f5f5;
    color: #555;
    font-size: 0.95rem;
    border-top: 1px solid #ddd;
    margin-top: 40px;
}

.footer p {
    margin: 0;
}
.daily-articles-grid {
    padding: 30px 20px;
    background-color: #f7f7f7;
    font-size: 13px;
}

.daily-articles-grid h3 {
    font-size: 1.4em;
    margin-bottom: 20px;
    text-align: center;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.article-card {
    position: relative; /* Permet de positionner l'heure en absolu */
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    padding-bottom: 35px; /* Laisse de la place pour l'heure en bas */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
    font-size: 12px; /* Police plus petite comme demandé */
}

.article-time {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 11px;
    color: #888;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-card h4 {
    margin: 0 0 8px;
    font-size: 1em;
}

.article-card h4 a {
    color: #0077cc;
    text-decoration: none;
}

.article-card h4 a:hover {
    text-decoration: underline;
     color: #81C252;
}

.source-name {
    font-size: 11px;
    color: #000;
    margin-bottom: 6px;
}
 .more-articles {
        text-align: center;
        margin-top: 20px;
    }
    .more-articles .link {
        background-color: #0066cc;
        color: white;
        padding: 10px 20px;
        text-decoration: none;
        border-radius: 5px;
    }
    .more-articles .link:hover {
        background-color: #81C252;
    }
    
    
/* Filtres */
.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.filters select,
.filters input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    background-color: #f9f9f9;
}

.filters button {
    padding: 8px 16px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.filters button:hover {
    background-color: #555;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    gap: 15px;
}

.pagination a {
    padding: 8px 14px;
    background-color: #eee;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #ccc;
    transition: background-color 0.3s;
}

.pagination a:hover {
    background-color: #ddd;
}
    
.highlight { 
background: yellow; font-weight: bold; 
}

.result { 
margin: 15px 0; padding: 10px; border-left: 4px solid #3FA5D9; background: #f7fbff; 
}