:root {
    --bg-color: #f4f7f6;
    --item-bg: #ffffff;
    --text-color: #1a1a1a;
    --accent-color: #888;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header { text-align: center; margin-bottom: 20px; }
.logo { width: 90px; height: auto; }
#main-content { width: 100%; max-width: 600px; }
.link-section { margin-bottom: 40px; }

h2 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    margin-bottom: 20px;
    color: var(--accent-color);
}

#linktree-container, #static-links-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tree-item {
    background-color: var(--item-bg);
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s;
    border: 1px solid #e0e0e0;
    min-height: 50px;
}

.tree-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.tree-thumb {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.tree-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    /* On laisse de la place à droite pour compenser la photo à gauche */
    margin-right: 44px; 
}

/* Si l'image est absente (cas erreur), on retire la marge pour bien centrer */
.tree-item img[style*="display: none"] + .tree-info,
.tree-item:not(:has(img)) .tree-info {
    margin-right: 0;
}

.tree-title {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
}

.tree-category {
    font-size: 0.7rem;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-top: 3px;
}

.loader { text-align: center; font-size: 0.9rem; color: #bbb; }