* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-image: url('assets/allo_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    backdrop-filter: blur(4px);
}

.subtit {
    margin-left: 2em;
    margin-top: 1.3em;
    font-size: 1.4em;
    font-weight: 800;
    display: inline-block;
    transform-origin: bottom center;
    background-color: #2b1405;
    background-size: cover;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    top: 50%;
}

li {
    list-style-type: none;
}

.title {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    gap: 0.05em;
    text-decoration: none;
    width: 100vh;
}

.title .letter {
    font-size: clamp(2.5rem, 10vw, 9rem);
    font-weight: 900;
    display: inline-block;
    transform-origin: bottom center;
    background-image: url('./assets/textureTitre3.png');
    background-size: cover;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 3px #2b1405;
    text-shadow:
        2px 2px 0 #2b1405,
        4px 4px 0 #2b1405,
        6px 6px 0 #2b1405,
        8px 8px 10px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s ease;
}

.title .letter:hover {
    transform: scale(1.3);
}

#back {
    position: fixed;
    list-style: none;
    margin-left: 1em;
    margin-top: 0.5em;
}

#back a {
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.2s ease;
}

#back a img {
    width: 3em;
    height: 3em;
    object-fit: contain;
    display: block;
}

#back a:hover {
    transform: translateX(-5px);
    opacity: 0.7;
}

.command {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5em;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: white;
    text-align: center;
    justify-content: center;

    cursor: pointer;
    font-size: 1.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: background 0.2s ease, transform 0.2s ease;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    margin-bottom: 0.4em;
    margin-right: 0.4em;
}

.command:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.03);
}

.command:active {
    transform: scale(0.97);
}

input:checked+label .command {
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0.35s;
}

#title {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    gap: 0.05em;
    text-decoration: none;
    font-size: 6em;
}

.wrapper {
    width: 95%;
    height: 120vh;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.container {
    height: 600px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: start;
    margin-top: 2%;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 2em;
    position: fixed;
}

.card {
    width: 65px;
    height: 85%;
    align-self: center;
    border-radius: .75rem;
    background-size: cover;
    cursor: pointer;
    overflow: hidden;
    border-radius: 2rem;
    margin: 0 10px;
    display: flex;
    align-items: stretch;
    transition: .6s cubic-bezier(.28, -0.03, 0, .99);
    box-shadow: 0px 10px 30px -5px rgba(0, 0, 0, 0.8);
    margin-left: 2em;
    margin-right: 2em;
    flex-direction: column;
    justify-content: flex-end;
}

.card[for="c1"],
.card[for="c2"],
.card[for="c3"] {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.menu-grid {
    width: 100%;
    height: fit-content;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 15px;
    flex: 1;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
    height: 50%;
}


input:checked+label .menu-grid {
    opacity: 1;
    transition-delay: 0.35s;
}


.menu-item {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5em;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: white;
    text-align: center;
    justify-content: center;
    width: 90%;
}

.menu-name {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.menu-price {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.phone {
    right: 10%;
}

.card>.row {
    color: white;
    display: flex;
    flex-wrap: nowrap;
}

.card>.row>.icon {
    background: #223;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px;
}


.card>.row>.description {
    display: flex;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    height: 80px;
    width: 520px;
    opacity: 0;
    transform: translateY(30px);
    transition-delay: .3s;
    transition: all .3s ease;
}

.description p {
    color: #b0b0ba;
    padding-top: 5px;
}

.description h4 {
    text-transform: uppercase;
}

input[type="radio"] {
    display: none;
}

input:checked+label {
    width: 800px;
}

input:checked+label .description {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.card[for="c1"] {
    background-color: transparent;
    backdrop-filter: blur(10px);
}

.card[for="c2"] {
    background-color: transparent;
    backdrop-filter: blur(10px);
}

.card[for="c3"] {
    background-color: transparent;
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {


    .title {
        top: 10px;
        gap: 0.03em;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
    }

    .title .letter {
        font-size: clamp(2.2rem, 13vw, 4.5rem);
        -webkit-text-stroke: 2px #2b1405;
    }

    .subtit {
        display: none;
    }

    .wrapper {
        height: auto;
        min-height: 100svh;
        align-items: center;
        justify-content: center;
        padding-top: 120px;
        padding-bottom: 2.5em;
        width: 100%;
    }

    .container {
        position: relative;
        flex-direction: column;
        height: auto;
        width: 75vw;
        margin: 0 auto;
        border-radius: 1.5em;
    }

    .card {
        width: 100% !important;
        min-height: 68px;
        height: 68px;
        margin: 6px 0;
        margin-left: 0;
        margin-right: 0;
        border-radius: 1.2rem;
        transition: height 0.6s cubic-bezier(.28, -0.03, 0, .99),
            min-height 0.6s cubic-bezier(.28, -0.03, 0, .99);
    }

    input:checked+label {
        width: 100% !important;
        min-height: 365px;
        height: auto;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        height: auto;
        max-height: 280px;
        padding: 8px;
        gap: 6px;
    }

    .menu-name {
        font-size: 0.8rem;
    }

    .menu-price {
        font-size: 0.7rem;
    }

    .card>.row {
        align-items: center;
    }

    .card>.row>.description {
        width: auto;
        flex: 1;
        min-width: 0;
        height: auto;
    }

    .card>.row>.icon {
        margin: 8px;
        width: 36px;
        height: 36px;
        font-size: 0.7rem;
        flex-shrink: 0;
    }

    .command {
        font-size: 0.75rem;
        padding: 6px 8px;
        margin-bottom: 0.3em;
        margin-right: 0.3em;
        width: auto;
        align-self: flex-end;
        flex-shrink: 0;
    }

    #back {
        margin-top: 0.3em;
        margin-left: 0.5em;
    }

    #back a img {
        width: 2.4em;
        height: 2.4em;
    }
}

@media (max-width: 380px) {
    .title .letter {
        font-size: clamp(1.9rem, 14vw, 3.5rem);
    }

    .container {
        width: 85vw;
    }

    .menu-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5px;
        padding: 6px;
    }

    .menu-name {
        font-size: 0.72rem;
    }

    input:checked+label {
        min-height: 400px;
    }

    .card {
        height: 0vh;
        border-radius: none;
    }

    .title {
        position: fixed;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 9999;
        display: flex;
        gap: 0.05em;
        text-decoration: none;
        width: 100vh;
    }

    .title .letter {
        font-size: clamp(2.5rem, 10vw, 9rem);
        font-weight: 900;
        display: inline-block;
        transform-origin: bottom center;
        background-image: none !important;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-stroke: 3px #2b1405;
        text-shadow:
            2px 2px 0 #2b1405,
            4px 4px 0 #2b1405,
            6px 6px 0 #2b1405,
            8px 8px 10px rgba(0, 0, 0, 0.6);
        transition: transform 0.2s ease;
        color: #d25500;
    }

    .title .letter:hover {
        transform: scale(1.3);
    }
}
