
/* ================================
   Background image with light overlay
   ================================ */
body {
    margin: 0;
    min-height: 100vh;
    position: relative;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Background image in a pseudo-element */
body::before {
    content: "";
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    background: url("../images/armoirie.png") no-repeat center center fixed;
    background-size: contain;
    opacity: 0.3;  /* 0 = fully invisible, 1 = fully opaque */
    z-index: -1;
}

/* Optional: overlay to keep cards readable */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.1); /* very subtle white fade */
    z-index: -1;
}

/* Keep content above overlay */
.container {
    position: relative;
    z-index: 1;
}

/* ================================
   Equal-height app cards (BEST SOLUTION)
   ================================ */

/* Make each column a flex container */
.app-item {
    display: flex;
}

/* Ensure the link fills the column */
.app-link {
    width: 100%;
    text-decoration: none;
    color: inherit;
    display: flex;
}

/* Card fills available height */
.app-card {
    width: 100%;
    height: 100%;
    /*background-color: rgba(255, 255, 255, 0.95);*/
    /*background-color: #87CEFA;*/
    background-color: #3F8844;
    color: white;
    display: flex;
    align-items: center;       /* vertical centering */
    justify-content: center;   /* horizontal centering */
    text-align: center;
    padding: 1.5rem;

    /* Visual polish */
    border-radius: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect */
.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* ================================
   Text handling
   ================================ */

/* Prevent long titles from breaking layout */
.app-card h5 {
    margin: 0;
    font-weight: 600;

    /* Optional line clamp (2 lines max) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ================================
   Optional: Minimum tile height
   ================================ */
.app-card {
    min-height: 140px;
}

