/* Landing OS d'origine — chargée uniquement sur /os */

.mission-launcher {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.tile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.tile-square {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: 0.3s;
    overflow: hidden;
}

.tile-container:hover { transform: translateY(-8px); }
.tile-container:hover .tile-square {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.tile-square.yellow { background: #f4c042; }
.tile-square.blue   { background: #3d5afe; }
.tile-square.red    { background: #e53935; }
.tile-square.green  { background: #2d5a54; }
.tile-square.cyan   { background: #56b9e2; }
.tile-square.dark   { background: #1a1a2e; }

.tile-icon {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.tile-container:hover .tile-icon {
    transform: scale(1.15) rotate(-5deg);
}

@media (max-width: 768px) {
    .tile-container {
        width: 100%;
    }

    .tile-container:active {
        transform: scale(0.96);
        transition: transform 0.1s ease-out;
    }
}

@media (max-width: 480px) {
    .mission-launcher {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 20px 40px;
    }

    .tile-square {
        border-radius: 20px;
    }
}
