/* Reset et polices */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #222;
    background-color: #f8f9fa;
}

/* Header principal */
.main-header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 10px 20px;
}
.top-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}
.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

/* Barre de recherche */
.search-bar {
    flex: 1;
    margin: 10px;
}
.search-bar form {
    display: flex;
}
.search-bar input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
}
.search-bar button {
    padding: 8px 12px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}
.search-bar button:hover {
    background-color: #0056b3;
}

/* Boutons et actions */
.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}
.icon-link {
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
}
.icon-link i {
    margin-right: 5px;
}
.cta-button {
    background-color: #007bff;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
}
.cta-button:hover {
    background-color: #0056b3;
}

/* Navigation */
.main-nav {
    background-color: #f1f1f1;
    margin-top: 10px;
}
.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 10px 0;
    justify-content: center;
    gap: 15px;
}
.main-nav a {
    color: #333;
    text-decoration: none;
    padding: 8px 12px;
    transition: background 0.3s;
}
.main-nav a:hover {
    background-color: #ddd;
    border-radius: 5px;
}

/* Contenu principal */
.container {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Cartes de documents */
.documents {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.document-card {
    background: white;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
}
.document-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.document-card a {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    color: #007bff;
}
.document-card a:hover {
    text-decoration: underline;
}

/* Footer */
.main-footer {
    background-color: #2c3e50;
    color: #eee;
    padding: 40px 20px 20px;
    font-size: 0.9rem;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-column h4 {
    margin-bottom: 10px;
    color: #fff;
}
.footer-column ul {
    list-style: none;
}
.footer-column ul li {
    margin-bottom: 8px;
}
.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
}
.footer-column ul li a:hover {
    text-decoration: underline;
}
.social-links i {
    margin-right: 5px;
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 10px;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .search-bar {
        order: 2;
        width: 100%;
    }
    .header-actions {
        order: 3;
        justify-content: space-between;
        margin-top: 10px;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
}
