@font-face {
    font-family: "instrument";
    src: url(src/typo/InstrumentSerif-Regular.ttf);
    font-weight: normal;
    font-style: normal;
}


* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

         body {
            font-family: "instrument", serif;
            background: linear-gradient(135deg, #360185 0%, #330066 50%, #1a0033 100%);
            color: #fff;
            overflow-x: hidden;
        }

        /* Section 1: Tirage de carte */
        .reading-section {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 40px 20px;
            position: relative;
        }

        .ornamental-border {
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            width: 90%;
            max-width: 600px;
            height: calc(100% - 40px);
            pointer-events: none;
        }

        h1 {
            font-family: "instrument", serif;
            text-transform: uppercase;
            text-align: center;
            margin-top: 100px;
            font-size: 2.7em;
            color: #DE1A58;
            letter-spacing: 8px;
            margin-bottom: 10px;
            text-shadow: 0 0 20px rgba(255, 31, 125, 0.5);
            z-index: 1;
            user-select: none;
        }

        .draw-button {
            font-family: "Instrument", serif;
            background: #8F0177;
            color: #F4B342;
            border: none;
            padding: 20px 60px;
            font-size: 1.3em;
            cursor: pointer;
            border-radius: 10px;
            margin: 30px 0;
            text-transform: lowercase;
            box-shadow: 0 10px 30px rgba(217, 70, 166, 0.4);
            transition: all 0.3s ease;
            z-index: 1;
            user-select: none;
        }

        .draw-button:hover {
            color: #F7E396;
            box-shadow: 0 5px 20px rgba(217, 70, 166, 0.6);
        }

        .card-container {
            position: relative;
            margin: 40px 0;
            z-index: 1;
        }

        .hands {
            position: absolute;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }

        .hand {
            position: absolute;
            width: 300px;
            height: 400px;
            bottom: -50px;
        }

        .hand.left {
            left: -200px;
            bottom: -150px;
            transform: rotate(50deg);
        }

        .hand.right {
            right: -200px;
            bottom: -150px;
            transform: rotate(-50deg);
        }

        .tarot-card {
            width: 250px;
            height: 450px;
            background: white;
            border-radius: 10px;
            padding: 5px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            opacity: 0;
            transform: scale(0.5) rotateY(180deg);
            transition: all 0.8s ease;
            margin-top: -30px;

            z-index: 100;
        }

        .tarot-card.show {
            opacity: 1;
            transform: scale(1) rotateY(0deg);
        }

        .tarot-card img {
            width: 100%;
            height: 90%;
            object-fit: cover;
            border-radius: 5px;
        }

        .card-title {
            display: none;
            font-size: 1.3em;
            color: #330066;
            font-weight: bold;
            text-transform: uppercase;
            margin-top: 10px;
        }

        .card-description {
            font-family: "Instrument", serif;
            max-width: 400px;
            margin: 30px auto 0;
            text-align: center;
            font-size: 1.2em;
            line-height: 1.8;
            color: #ffd700;
            font-style: italic;
            text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
            z-index: 1;
            padding: 10px;
        }

        /* Section 2: Collection */
        .collection-section {
            min-height: 100vh;
            padding: 80px 20px;
            background: rgba(0, 0, 0, 0.3);
        }

        .collection-title {
            font-family: "Instrument", serif;
            font-size: 3em;
            color: #DE1A58;
            text-align: center;
            text-transform: uppercase;
            letter-spacing: 8px;
            margin-bottom: 60px;
            text-shadow: 0 0 20px rgba(255, 31, 125, 0.5);
        }

        .nft-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 30px;
            max-width: 1400px;
            margin: 0 auto;
        }

        .nft-item {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 15px;
            padding: 15px;
            transition: all 0.3s ease;
            cursor: pointer;
            border: 2px solid transparent;
        }

        .nft-item:hover {
            transform: translateY(-10px);
            border-color: #d946a6;
            box-shadow: 0 15px 40px rgba(217, 70, 166, 0.4);
        }

        .nft-item img {
            width: 100%;
            height: auto;
            border-radius: 10px;
            display: block;
        }

        .nft-item .card-name {
            text-align: center;
            margin-top: 15px;
            font-size: 1.1em;
            color: #ffd700;
            text-transform: uppercase;
        }

        .loading {
            text-align: center;
            font-size: 1.5em;
            color: #ffd700;
            margin-top: 50px;
        }


        @media (max-width: 1200px) {
            .nft-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 768px) {
            .nft-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 20px;
            }

            h1 {
                font-size: 2em;
            }

            .collection-title {
                font-size: 2em;
            }

            .tarot-card {
                width: 250px;
                height: 420px;
            }

            .hand {
                width: 100px;
                height: 150px;
            }

            .hand.left {
                left: -60px;
            }

            .hand.right {
                right: -60px;
            }
        }