@font-face {
    font-family: 'Opensea';
    src: url('./fonts/NftOpensea-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Nerlios';
    src: url('./fonts/NerliosDemo-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    font-family: 'Opensea', Arial, sans-serif;
    font-size: 30px;
    background: #f5f5f5;
}

/* ===================== */
/* NAVBAR */
/* ===================== */

nav {
    background: #000000;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 50px;
    color: red;
}

/* Checkbox cachée */
#menu-toggle {
    display: none;
}

.content {
    position: relative;
    padding: 40px;
    z-index: 1;
    overflow: hidden;
    background: #ffffff;
    border-radius: 12px;
    font-family: 'Nerlios', Arial, sans-serif;
}

/* Conteneur principal */
.contentform {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    min-height: 100vh;
    padding: 20px;
    
    text-align: center;
}

/* Titre */
.contentform h1 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* Formulaire */
.search-form {
    width: 100%;
    max-width: 400px;
    
    display: flex;
    flex-direction: column;
    gap: 15px;
    
    padding: 25px;
    
    background: #ffffff;
    border-radius: 10px;
    
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Label */
.search-form label {
    text-align: left;
    font-weight: 600;
}

/* Input */
.search-form input[type="text"] {
    width: 100%;
    
    padding: 12px;
    
    border: 1px solid #ccc;
    border-radius: 6px;
    
    font-size: 16px;
}

/* Bouton */
.search-form button {
    padding: 12px;
    
    border: none;
    border-radius: 6px;
    
    background: #000;
    color: white;
    
    font-size: 16px;
    cursor: pointer;
    
    transition: 0.3s;
}

.search-form button:hover {
    background: #333;
}

/* Responsive téléphone */
@media (max-width: 600px) {

    .contentform {
        padding: 15px;
    }

    .search-form {
        padding: 20px;
    }

    .contentform h1 {
        font-size: 1.5rem;
    }

}

/* ===================== */
/* RESPONSIVE 576px */
/* ===================== */
@media (max-width: 576px) {
    .content {
        padding: 30px;
    }
    .content::before {
        width: 300px;
        height: 300px;
        filter: blur(80px);
    }
}

/* ===================== */
/* BURGER (mobile only) */
/* ===================== */

.burger {
    width: 30px;
    cursor: pointer;
    display: none; /* caché par défaut (ordi) */
    flex-direction: column;
    position: relative;
    z-index: 1002;
}

.burger span {
    height: 3px;
    background: rgb(255, 0, 0);
    margin: 5px 0;
    transition: 0.4s;
}

/* ===================== */
/* MENU VERSION ORDI */
/* ===================== */

.menu {
    display: flex;
    gap: 30px;
}

.menu a {
    color: rgb(255, 0, 0);
    text-decoration: none;
    font-size: 30px;
    transition: 0.3s;
}

.menu a:hover {
    color: #00ffff;
    text-shadow: 0 0 8px #00ffff;
}

/* Overlay caché par défaut */
.overlay {
    display: none;
}

/* ===================== */
/* LISTING RESPONSIVE NFT */
/* ===================== */

.listing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.nft-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.nft-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(255,0,0,0.3);
}

.nft-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.nft-info {
    padding: 15px;
}

.nft-info h3 {
    margin-top: 0;
    color: red;
}

.nft-info p {
    margin: 5px 0;
    font-size: 25px;
}

/* ===================== */
/* RESPONSIVE 576px */
/* ===================== */

@media (max-width: 576px) {

    .listing-grid {
        grid-template-columns: 1fr;
    }

}

/* ================================= */
/* 📱 VERSION MOBILE (max 576px) */
/* ================================= */

@media (max-width: 576px) {

    /* Burger visible */
    .burger {
        display: flex;
    }

    /* Menu devient slide */
    .menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 200px;
        height: 100vh;
        background: #000000;
        flex-direction: column;
        padding-top: 80px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1001;
    }

    .menu a {
        display: block;
        padding: 15px;
        font-size: 22px;
        color: red;
    }

    .menu a:hover {
        background: #333;
        color: white;
    }

    /* Overlay activé en mobile */
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
        z-index: 1000;
        display: block;
    }

    /* MENU OUVERT */
    #menu-toggle:checked ~ .menu {
        transform: translateX(0);
    }

    #menu-toggle:checked ~ .overlay {
        opacity: 1;
        visibility: visible;
    }

    /* Animation burger */
    #menu-toggle:checked + .burger span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    #menu-toggle:checked + .burger span:nth-child(2) {
        opacity: 0;
    }

    #menu-toggle:checked + .burger span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Cartes en colonne */
    .cards {
        flex-direction: column;
    }

    .card {
        width: 100%;
    }
}

/* ===================== */
/* FORMULAIRE */
/* ===================== */

.search-form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    max-width: 400px;
    gap: 15px;
}

.search-form input {
    padding: 10px;
    border: 2px solid red;
    border-radius: 5px;
    font-family: 'Nerlios', Arial, sans-serif;
}

.search-form button {
    padding: 10px;
    background: red;
    color: white;
    border: none;
    cursor: pointer;
    font-family: 'Nerlios', Arial, sans-serif;
    transition: 0.3s;
}

.search-form button:hover {
    background: black;
    color: red;
    border: 2px solid red;
}

/* ===================== */
/* TABLEAU RESULTAT */
/* ===================== */

.result-text {
    font-size: 20px;
    margin-bottom: 20px;
}

.highlight {
    color: red;
    font-weight: bold;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.result-table th {
    background: black;
    color: red;
    padding: 12px;
}

.result-table td {
    padding: 10px;
    border: 1px solid #ccc;
}

.result-table tr:hover {
    background: #f2f2f2;
}

/* ========================= */
/* TABLE RESPONSIVE MOBILE */
/* ========================= */

@media (max-width: 576px) {

    .result-table,
    .result-table thead,
    .result-table tbody,
    .result-table th,
    .result-table td,
    .result-table tr {
        display: block;
        width: 100%;
    }

    .result-table tr {
        margin-bottom: 15px;
        background: white;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .result-table th {
        display: none; /* cache l'entête */
    }

    .result-table td {
        border: none;
        padding: 8px 10px;
        text-align: left;
        position: relative;
    }

    .result-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: red;
        display: block;
        margin-bottom: 3px;
    }
}

/* ===================== */
/* SECTION DEFINITION NFT */
/* ===================== */

.nft-definition {
    padding: 60px 40px;
    background: #111;
    color: white;
    font-family: 'Nerlios', Arial, sans-serif;
}

.definition-container {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: auto;
}

.definition-image {
    flex: 1;
}

.definition-image img {
    width: 100%;
    border-radius: 12px;
    transition: transform 0.5s ease;
}

.definition-image img:hover {
    transform: scale(1.05);
}

.definition-text {
    flex: 1;
}

.definition-text h2 {
    color: red;
    font-size: 32px;
    margin-bottom: 20px;
}

.definition-text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* ===================== */
/* RESPONSIVE 576px */
/* ===================== */

@media (max-width: 576px) {

    .definition-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .definition-text h2 {
        font-size: 24px;
    }

    .definition-text p {
        font-size: 16px;
    }

}

/* ===================== */
/* SECTION FONCTIONNEMENT NFT */
/* ===================== */

.nft-functioning {
    padding: 70px 40px;
    background: linear-gradient(135deg, #f5f5f5, #eaeaea);
    font-family: 'Nerlios', Arial, sans-serif;
}

.functioning-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.functioning-text {
    flex: 1;
}

.functioning-text h2 {
    font-size: 32px;
    color: red;
    margin-bottom: 20px;
}

.functioning-text p {
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.nft-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.nft-list li {
    background: white;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-left: 4px solid red;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.nft-list li:hover {
    transform: translateX(8px);
    box-shadow: 0 5px 15px rgba(255,0,0,0.2);
}

/* VISUEL BLOCS */

.functioning-visual {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.block {
    background: black;
    color: red;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.block:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255,0,0,0.3);
}

/* ===================== */
/* RESPONSIVE 576px */
/* ===================== */

@media (max-width: 576px) {

    .functioning-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .functioning-text h2 {
        font-size: 24px;
    }

    .functioning-text p {
        font-size: 16px;
    }

}

/* ===================== */
/* SECTION USAGE NFT */
/* ===================== */

.nft-usage {
    padding: 60px 40px;
    background: #000000;
    font-family: 'Nerlios', Arial, sans-serif;
}

.usage-container {
    max-width: 1100px;
    margin: auto;
}

.nft-usage h2 {
    text-align: center;
    color: red;
    font-size: 30px;
    margin-bottom: 40px;
}

/* Grille des éléments */

.usage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.usage-item {
    background: white;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: 0.3s;
    font-size: 18px;
}

.usage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(255,0,0,0.2);
}

/* Bloc important */

.usage-important {
    background: white;
    border-left: 5px solid red;
    padding: 25px;
    border-radius: 8px;
    font-size: 17px;
    line-height: 1.6;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* ===================== */
/* RESPONSIVE 576px */
/* ===================== */

@media (max-width: 576px) {

    .usage-grid {
        grid-template-columns: 1fr;
    }

    .nft-usage h2 {
        font-size: 22px;
    }

    .usage-item {
        font-size: 16px;
    }

    .usage-important {
        font-size: 15px;
    }
}

/* ===================== */
/* SECTION CONCLUSION NFT */
/* ===================== */

.nft-conclusion {
    padding: 80px 40px;
    background: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    text-align: center;
    font-family: 'Nerlios', Arial, sans-serif;
}

.conclusion-container {
    max-width: 900px;
    margin: auto;
}

.nft-conclusion h2 {
    color: red;
    font-size: 34px;
    margin-bottom: 30px;
}

.conclusion-main {
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.conclusion-highlight {
    background: rgb(0, 0, 0);
    color: rgb(255, 0, 0);
    padding: 25px;
    border-radius: 10px;
    font-size: 22px;
    font-weight: bold;
    box-shadow: 0 6px 20px rgba(255,0,0,0.3);
    transition: 0.3s;
}

.conclusion-highlight:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(255,0,0,0.5);
}

/* ===================== */
/* RESPONSIVE 576px */
/* ===================== */

@media (max-width: 576px) {

    .nft-conclusion {
        padding: 60px 20px;
    }

    .nft-conclusion h2 {
        font-size: 24px;
    }

    .conclusion-main {
        font-size: 16px;
    }

    .conclusion-highlight {
        font-size: 18px;
        padding: 18px;
    }

}