/* ==========================
   Papers Grid & Cards
   ========================== */
.papers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.paper-card {
    display: flex;
    flex-direction: column;
    color: #fff;
    background: #333;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    border: 2px solid #fff;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
}

.paper-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.paper-card h3 {
    margin: 0;
    padding: 0.5rem;
    text-align: center;
    background: #333;
}

.paper-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
    background-color: #444;
    border-color: #fff;
}

/* ==========================
   Footer Social Icons
   ========================== */
.footer-social-icons {
    display: inline-flex;
    gap: 0.5em;
    vertical-align: middle;
}

.footer-social-icons .footer-social-icon,
.footer-social-icon {
    width: 1.2em;
    height: 1.2em;
    vertical-align: middle;
    fill: currentColor;
}

/* ==========================
   Profile Section
   ========================== */
.home-profile-bandeau {
    display: flex;
    flex-direction: column;
    margin-top: 1.5rem;
}

.profile {
    margin: 0;
    padding: 0;
    min-height: auto;
}

.profile .profile_inner {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.profile .profile_inner h1 {
    font-size: 2.5rem;
}

.profile img {
    border-radius: 50%;
    border: 1px solid var(--tertiary);
}

.profile .buttons {
    margin-bottom: 0;
    flex-wrap: wrap;
}

.button {
    background: var(--tertiary);
    border-radius: var(--radius);
    margin: 6px 12px 6px 0px;
    padding: 10px;
}

.button-inner {
    padding: 0 8px;
}

.button:hover {
    background: var(--lightcolor);
}

/* ==========================
   Bandeau Carousel
   ========================== */
.home-bandeau {
    margin: 0;
    padding: 0;
}

.bandeau-container {
    display: flex;
    align-items: center;  /* arrows vertically centered */
    width: 100%;
    gap: 10px;
    margin-bottom: 0;     /* remove big gap below */
}

.bandeau-wrapper {
    overflow: hidden;
    flex: 1;               /* fills space between arrows */
}

.bandeau-items {
    display: flex;
    transition: transform 0.4s ease;
}

.bandeau-pair {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 100%;
}

.bandeau-items-row {
    display: flex;
    gap: 10px;
}

.bandeau-item {
    flex: 0 0 47%;
    max-width: 49%;
    background-color: #222;
    border: 0.5px solid #888;
    border-radius: 6px;
    text-align: center;
    color: #fff;
    text-decoration: none;
    padding: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, background-color 0.2s, border-color 0.2s;
}

.bandeau-item img {
    width: 80%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    border-radius: 5px;
    margin: 5px auto;
    display: block;
}

.bandeau-item:hover {
    transform: scale(1.005);
    background-color: #333;
    border: 0px solid #888;
}

.bandeau-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 5px 0;
    text-align: center;
}

@media (max-width: 600px) {
    .bandeau-item-title {
        font-size: 0.9rem;
    }

    .bandeau-item img {
        width: 70%;
        aspect-ratio: 1.5 / 1;
    }
}

.bandeau-section-title {
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
    color: #fff;
    font-size: 1.1rem;
}

.bandeau-arrow {
    background: none;
    border: 1px solid #888;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
}

.bandeau-arrow:hover {
    background-color: #444;
}

/* ==========================
   Main Page Layout
   ========================== */
.main {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* ensures footer at bottom */
}

.main .profile {
    flex: 1;
    padding-bottom: 1rem; /* small spacing above footer */
}


.logo-and-social {
    display: flex;
    align-items: center;
    gap: 10px; /* spacing between name/logo and icons */
}

.social-icons-container {
    display: flex;
    gap: 0.5rem;       /* spacing between each icon */
    margin-left: .8rem;  /* push the icons away from the left/logo */
    align-items: center; /* vertically align with logo/menu */
}

