body {
    font-family: Arial, sans-serif;
    background: #111;
    color: #eee;
    margin: 0;
    padding: 20px;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.header-right {
    margin-left: auto;
}

/* Contact */
.contact-btn {
    margin-left: 15px;
    padding: 8px 14px;
    background: #000;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #333;
    display: inline-block;
}
.contact-btn:hover {
    background: #111;
}

/* Langue */
.lang-select {
    background: #222;
    color: #eee;
    border: 1px solid #333;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

/* Tabs */
.tabs {
    text-align: center;
    margin-bottom: 30px;
}

.tabs button {
    padding: 12px 25px;
    margin: 5px;
    background: #222;
    border-radius: 8px;
    border: 1px solid #333;
    cursor: pointer;
    font-size: 1.1em;
    color: #eee;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Icônes OS */
.tab-icon::before {
    content: "";
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
}

.windows::before { background-image: url("https://cdn-icons-png.flaticon.com/512/732/732225.png"); }
.linux::before   { background-image: url("https://cdn-icons-png.flaticon.com/512/518/518713.png"); }
.mac::before     { background-image: url("https://cdn-icons-png.flaticon.com/512/2/2235.png"); }
.android::before { background-image: url("https://cdn-icons-png.flaticon.com/512/226/226770.png"); }
.web::before     { background-image: url("https://cdn-icons-png.flaticon.com/512/3899/3899530.png"); }

.tabs button:hover { background: #333; }
.tabs button.active { background: #555; }

/* Cards & Grid fixes */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.card {
    width: 100%;
    max-width: 300px;
    height: 160px;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card img {
    max-width: 85%;
    max-height: 85%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: auto;
    transition: transform 0.3s ease;
}

/* GROSSISSEMENT SPECIFIQUE ECHOCLIP */
.card[data-project="echoclip"] img,
.card img[src*="echoclip"],
.card img[src*="EchoClip"],
.card img[alt*="echoclip"],
.card img[alt*="EchoClip"] {
    max-width: 120% !important;
    max-height: 120% !important;
    transform: scale(1.4);
}

.card .info {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    pointer-events: none;
}

.card:hover .info {
    opacity: 1;
    pointer-events: auto;
}

/* HEADER PLEINE LARGEUR */
.project-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    box-sizing: border-box;
}

/* CONTENU CENTRÉ */
.project-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px 40px;
    color: #f2f2f2;
    box-sizing: border-box;
}

/* TITRES LISIBLES */
.project-page h1,
.project-page h2,
.project-page h3 {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* TEXTE LISIBLE */
.project-page p,
.project-page li,
.project-page a {
    color: #e8e8e8;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

.download-row, .repo-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
    margin-bottom: 15px;
}

/* FIX BOUTONS TELECHARGEMENT SOUS-PAGES */
.download-btn {
    background: #4CAF50;
    color: white !important;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.05em;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    line-height: 1;
    box-sizing: border-box;
    transition: background 0.2s ease;
}

.download-btn:hover {
    background: #45a049;
}

.download-btn.windows::before,
.download-btn.linux::before,
.download-btn.mac::before,
.download-btn.android::before,
.download-btn.web::before {
    content: "";
    width: 20px;
    height: 20px;
    display: inline-block;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.download-btn.windows::before { background-image: url("https://cdn-icons-png.flaticon.com/512/732/732225.png"); }
.download-btn.linux::before   { background-image: url("https://cdn-icons-png.flaticon.com/512/518/518713.png"); }
.download-btn.mac::before     { background-image: url("https://cdn-icons-png.flaticon.com/512/2/2235.png"); }
.download-btn.android::before { background-image: url("https://cdn-icons-png.flaticon.com/512/226/226770.png"); }
.download-btn.web::before     { background-image: url("https://cdn-icons-png.flaticon.com/512/3899/3899530.png"); }

.repo-link {
    background: #333;
    color: white !important;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.repo-link:hover {
    background: #555;
}

.preview {
    width: 200px;
    margin: 10px;
    border-radius: 8px;
}

.back {
    color: #f2f2f2;
    text-decoration: none;
    font-size: 1.1em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.back:hover {
    color: #ffffff;
}

/* FOND SOMBRE STYLISÉ */
body {
    background:
        linear-gradient(
            rgba(25, 40, 110, 0.92),
            rgba(70, 45, 150, 0.92),
            rgba(95, 50, 165, 0.92)
        ),
        url("https://www.transparenttextures.com/patterns/hexellence.png");
    background-blend-mode: multiply;
    background-attachment: fixed;
    color: #f2f2f2;
}

/* Badge */
.title-with-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vibecoder-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #0b0b0b;
    border: 1px solid #7a3cff;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 0 8px rgba(122, 60, 255, 0.5);
}

.vc-dot {
    width: 10px;
    height: 10px;
    background: #7a3cff;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(122, 60, 255, 0.8);
}
