/* ======== THEME TECHNEWS365 ======== */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fond général */
body {
    background: linear-gradient(135deg, #0a0f1e, #1a103d);
    color: #e0e0ff;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    padding: 20px;
}

/* Bannière */
.header-logo img {
    width: 60%;
    max-width: 600px;
    height: auto;
    max-height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 12px #3b82f6);
}

/* Titre */
h1 {
    color: #7aa2ff;
    text-shadow:
        0 0 12px #3b82f6,
        0 0 24px #6d28d9,
        0 0 36px #6d28d9;
    margin-bottom: 10px;
}

/* Texte */
p {
    color: #c7c7ff;
    margin-bottom: 20px;
}

/* ======== LISTE DES DISTROS ======== */

#distro-list {
    margin: 20px auto;
    max-width: 900px; /* plus large pour 4 colonnes */
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes */
    gap: 14px;
}


/* Carte distro */
.distro-item {
    background: rgba(10, 15, 30, 0.95);
    border-radius: 10px; /* plus petit */
    padding: 10px;       /* plus compact */
    display: flex;
    align-items: center;
    justify-content: center; /* centré dans la tuile */
    flex-direction: column;  /* icône au-dessus du texte */
    gap: 6px;                /* espace réduit */
    color: #f5f5ff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;

    border: 1px solid rgba(0, 255, 255, 0.25);
    box-shadow: 0 0 6px rgba(0, 255, 255, 0.15);
    transition:
        transform 0.18s ease-out,
        box-shadow 0.18s ease-out,
        border-color 0.18s ease-out,
        background 0.18s ease-out;

    animation: distroFadeSlide 0.45s ease forwards;
}

/* Glow néon */
.distro-item:hover {
    transform: translateY(-4px);
    background: rgba(10, 15, 30, 0.85); /* hover visible */
    border-color: rgba(0, 255, 255, 0.7);
    box-shadow:
        0 0 14px rgba(0, 255, 255, 0.55),
        0 0 26px rgba(138, 43, 226, 0.45);
}

/* Halo néon */
.distro-item::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 20px;
    background: linear-gradient(
        135deg,
        rgba(0, 255, 255, 0.18),
        rgba(138, 43, 226, 0.18)
    );
    opacity: 0;
    filter: blur(12px); /* moins fort */
    transition: opacity 0.25s ease-out;
    z-index: 0; /* DERRIÈRE la tuile */
}

.distro-item:hover::before {
    opacity: 1;
}

/* Sélection */
.distro-item.selected {
    background: rgba(60, 120, 255, 0.25);
    border-color: #3b82f6;
    box-shadow: 0 0 18px #3b82f6;
    color: white;
}

/* Logos */
.distro-item img {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.45));
    transition: transform 0.18s ease-out, filter 0.18s ease-out;
}

.distro-item:hover img {
    transform: scale(1.08);
    filter: drop-shadow(0 0 12px rgba(0, 255, 255, 0.9));
}

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

form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

label {
    text-align: left;
    color: #c7c7ff;
}

input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #3b3b5a;
    background: rgba(20, 20, 40, 0.6);
    color: #e0e0ff;
    font-size: 16px;
}

button {
    margin-top: 10px;
    padding: 12px;
    background: linear-gradient(135deg, #3b82f6, #6d28d9);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: 0.25s;
    box-shadow: 0 0 12px #3b82f6;
}

button:hover {
    box-shadow: 0 0 18px #6d28d9;
    transform: scale(1.03);
}

/* Animation apparition */
@keyframes distroFadeSlide {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apparition en cascade */
.distro-item:nth-child(1) { animation-delay: 0.05s; }
.distro-item:nth-child(2) { animation-delay: 0.12s; }
.distro-item:nth-child(3) { animation-delay: 0.19s; }
.distro-item:nth-child(4) { animation-delay: 0.26s; }
.distro-item:nth-child(5) { animation-delay: 0.33s; }
.distro-item:nth-child(6) { animation-delay: 0.40s; }
.copy-button {
    margin-top: 10px;
    padding: 10px 20px;
    background: #0d0d1a;
    color: #6ab8ff;
    border: 2px solid #6ab8ff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: 0.3s ease;
    text-shadow: 0 0 8px #6ab8ff;
    box-shadow: 0 0 12px #6ab8ff;
}

.copy-button:hover {
    background: #6ab8ff;
    color: #0d0d1a;
    box-shadow: 0 0 20px #6ab8ff, 0 0 40px #6ab8ff;
}

.copy-button.copied {
    background: #00ff9d;
    border-color: #00ff9d;
    color: #00331f;
    box-shadow: 0 0 20px #00ff9d, 0 0 40px #00ff9d;
}
.instructions-box {
    margin: 30px auto;
    max-width: 700px;
    background: rgba(15, 20, 40, 0.7);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 255, 0.25);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.15);
    text-align: left;
}

.instructions-box h2 {
    color: #7aa2ff;
    text-shadow: 0 0 12px #3b82f6;
    margin-bottom: 10px;
}

.instructions-box h3 {
    color: #6ab8ff;
    margin-top: 15px;
}

.instructions-box pre {
    background: rgba(0, 0, 0, 0.4);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #3b82f6;
    color: #9cd3ff;
    box-shadow: 0 0 8px #3b82f6;
}
.yellow-text {
    color: #FFD700 !important; /* Jaune or */
    text-shadow: 0 0 6px #FFD700;
}
