* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
}

html, body {
    height: 100%;
}

body {
    min-height: 100svh;
    display: flex;
    justify-content: center;
    padding: 20px;
    background-color: var(--bg-color-light);
    color: var(--text-color-light);
    transition: background 0.3s, color 0.3s;
    overflow-y: auto;
}

html[data-theme="dark"] body {
    background-color: var(--bg-color-dark);
    color: var(--text-color-dark);
}

.container {
    position: relative;
    max-width: 580px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: auto;
    background: var(--container-bg, transparent);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

/* Ombre portée sur desktop */
@media (min-width: 768px) {
    .container {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
        border-radius: 20px;
        padding: 30px;
        background: var(--container-bg, #fff);
    }

    html[data-theme="dark"] .container {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
        background: var(--container-bg-dark, #1e1e1e);
    }
}

.header {
    width: 100%;
}

.logo {
    width: 140px;
    border-radius: 50%;
    margin-bottom: 10px;
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.intro {
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 10px;
}

/* Liens sociaux */
.socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.socials a {
    color: inherit;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.socials a:hover,
.socials a:focus-visible {
    transform: scale(1.2);
}

/* Boutons de lien */
.link-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--btn-bg);
    color: var(--btn-text);
    padding: 18px 55px 18px 55px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.15s ease, box-shadow 0.3s ease;
    text-align: center;
    overflow: hidden;
}

/* Hover et focus (translation) */
.link-btn:hover,
.link-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

/* Click / touch (réduction) */
.link-btn:active {
    transform: scale(0.97);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

/* Icône dans disque */
.link-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Hover/focus sur disque */
.link-btn:hover .link-icon,
.link-btn:focus-visible .link-icon {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* FontAwesome icône */
i.link-icon {
    font-size: 28px;
    line-height: 1;
    padding-top: 5px;
}

/* Icône image */
img.link-icon {
    object-fit: contain;
    display: block;
}

/* Label du lien */
.link-label {
    flex: 1;
    text-align: center;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    transition: color 0.3s ease;
}

/* Bouton de thème */
#theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    transition: transform 0.15s ease;
}

#theme-toggle:hover,
#theme-toggle:focus-visible {
    transform: scale(1.2);
}

#theme-toggle:active {
    transform: scale(0.97);
}

/* Thèmes */
html[data-theme="light"] .link-btn {
    background-color: var(--btn-bg-light);
    color: var(--btn-text-light);
}
html[data-theme="light"] .link-btn:hover,
html[data-theme="light"] .link-btn:focus-visible {
    background-color: var(--btn-hover-light);
}
html[data-theme="light"] .link-btn:active {
    background-color: var(--btn-hover-light);
}

html[data-theme="dark"] .link-btn {
    background-color: var(--btn-bg-dark);
    color: var(--btn-text-dark);
}
html[data-theme="dark"] .link-btn:hover,
html[data-theme="dark"] .link-btn:focus-visible {
    background-color: var(--btn-hover-dark);
}
html[data-theme="dark"] .link-btn:active {
    background-color: var(--btn-hover-dark);
}

html[data-theme="light"] .link-icon {
    background: #fff;
    color: var(--btn-text-light);
}

html[data-theme="dark"] .link-icon {
    background: #f9f9f9;
    color: var(--btn-text-light);
}