body {
    font-family: 'Century Gothic', Calibri, serif;
    font-size: 14px;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8; /* fond gris clair */
    color: #333;
}
h1, h2 {
    text-align: center;
    margin: 20px 0;
}
header {
    height: 70px;
    background: #002147;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}
header h1 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
}
header img {
    vertical-align: middle;
    border-radius: 50%;
}
nav {
    width: 100%;
    background-color: #00254e;
}
nav ul {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}
nav a {
    display: inline-block;
    padding: 15px 30px;
    color: #fff;
    text-transform: uppercase;
    font-size: 15px;
    transition: background 0.3s, color 0.3s;
}
nav li:hover a {
    background-color: #f1dc4f;
    color: #000;
}
#searchBar {
    display: block;
    margin: 0 auto 20px;
    padding: 10px;
    width: 60%;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}
.documents-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 90%;
    margin: auto;
}
.documents-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px;
}
.document-card {
    background: #f4f4f4;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 10px;
    width: 200px;
    text-align: center;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.document-card:hover {
    transform: scale(1.05);
}
.document-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}
.document-card p {
    margin-top: 10px;
    font-weight: bold;
    color: #0f0d0d;
    text-decoration: underline; /* <-- souligné */
}
.auteur {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: #888;
}
.arrow {
    background-color: rgba(0,0,0,0.5);
    border: none;
    color: white;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    border-radius: 50%;
}
.arrow.left {
    left: 5px;
}
.arrow.right {
    right: 5px;
}
.arrow:hover {
    background-color: rgba(0,0,0,0.8);
}
footer {
    text-align: center;
    background-color: #C5C5C5;
    padding: 20px 10px;
    border-top: 2px solid #AAA;
}
footer p {
    margin: 10px 0;
    color: #333;
    font-size: 14px;
    text-align: justify;
}
/* Liens des réseaux */
footer .social-links {
    margin-top: 10px;
}
footer .social-links a {
    margin: 0 10px;
    font-size: 24px;
    display: inline-block;
    transition: transform 0.3s, color 0.3s;
}
/* Couleurs spécifiques pour chaque réseau */
footer .social-links a .fa-instagram { color: #E1306C; }
footer .social-links a .fa-linkedin  { color: #0077B5; }
footer .social-links a .fa-whatsapp  { color: #25D366; }
footer .social-links a .fa-envelope  { color: #D44638; }
/* Effet au survol */
footer .social-links a:hover {
    transform: scale(1.2);
}

/* ===========================
   FOOTER TOUJOURS EN BAS
=========================== */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;        /* prend tout l’espace restant */
    display: flex;
    flex-direction: column;
}

.documents-wrapper {
    flex: 0 0 auto;
}

#noResults {
    margin: 30px 0;
}

footer {
    margin-top: auto;       /* pousse le footer en bas */
}
.pdf-preview {
    width: 100%;
    
    background: #f4f4f4;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #ddd;
}


