/* =========================================================
   RESET
   ========================================================= */

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


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --background-prune: #632F4D;
    --background-blue: #182A42;

    --text-primary: #F0F1F3;
    --text-secondary: #C8CDD6;
    --text-muted: rgba(200, 205, 214, 0.65);

    --accent-blue: #BBD9E7;
    --accent-pink: #D8B4C8;

    --glass-background: rgba(240, 241, 247, 0.07);
    --glass-border: rgba(240, 241, 247, 0.14);

    --radius: 14px;
}


/* =========================================================
   BODY
   ========================================================= */

body {
    min-height: 100vh;
    padding: 48px 20px 32px;

    display: flex;
    justify-content: center;

    color: var(--text-primary);

    font-family:
        'Segoe UI',
        -apple-system,
        BlinkMacSystemFont,
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    background:
        radial-gradient(circle at 15% 0%, rgba(216, 180, 200, 0.18), transparent 45%),
        radial-gradient(circle at 85% 100%, rgba(187, 217, 231, 0.12), transparent 45%),
        linear-gradient(
            135deg,
            var(--background-prune) 0%,
            var(--background-blue) 100%
        );

    background-attachment: fixed;
}

body.locked {
    overflow: hidden;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: 100%;
    max-width: 480px;

    text-align: center;
}


/* =========================================================
   PROFIL
   ========================================================= */

.profile {
    margin-bottom: 36px;
}

.profile-img {
    width: 104px;
    height: 104px;

    display: block;

    margin: 0 auto 18px;

    object-fit: cover;

    border-radius: 50%;

    border: 3px solid rgba(240, 241, 247, 0.85);

    box-shadow:
        0 0 0 6px rgba(216, 180, 200, 0.18),
        0 12px 32px rgba(0, 0, 0, 0.35);
}

h1 {
    color: var(--text-primary);

    font-size: 1.5rem;
    font-weight: 700;

    letter-spacing: 0.3px;
}

.handle {
    margin-top: 2px;

    color: var(--accent-pink);

    font-size: 0.9rem;
    font-weight: 500;
}

.bio {
    max-width: 340px;

    margin: 12px auto 0;

    color: var(--text-secondary);

    font-size: 0.95rem;
    line-height: 1.5;
}


/* =========================================================
   LIENS
   ========================================================= */

.links-wrapper {
    display: flex;
    flex-direction: column;

    gap: 28px;
}

.links-section {
    display: flex;
    flex-direction: column;

    gap: 10px;
}


/* =========================================================
   TITRES DE SECTION
   ========================================================= */

.section-title {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 2px;

    color: var(--text-muted);

    font-size: 0.7rem;
    font-weight: 600;

    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.section-title::before,
.section-title::after {
    content: "";

    height: 1px;

    flex: 1;

    background: rgba(240, 241, 247, 0.14);
}


/* =========================================================
   BOUTONS
   ========================================================= */

.link-btn {
    display: flex;
    align-items: center;

    gap: 14px;

    width: 100%;
    min-height: 64px;

    padding: 10px 16px 10px 10px;

    color: var(--text-primary);

    text-align: left;
    text-decoration: none;

    background: var(--glass-background);

    border: 1px solid var(--glass-border);
    border-radius: var(--radius);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.link-btn:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 3px;
}


/* =========================================================
   LOGOS
   ========================================================= */

.site-icon {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #FFFFFF;

    border-radius: 10px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);

    transition: transform 0.25s ease;
}

.site-icon img {
    width: 26px;
    height: 26px;

    object-fit: contain;
}

/* Initiale affichée si le logo ne se charge pas */
.site-icon.fallback {
    color: #FFFFFF;

    font-size: 1.1rem;
    font-weight: 700;

    background:
        linear-gradient(
            135deg,
            var(--background-prune),
            var(--background-blue)
        );
}


/* =========================================================
   TEXTE DES BOUTONS
   ========================================================= */

.link-text {
    flex: 1;
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 2px;
}

.link-title {
    font-size: 1rem;
    font-weight: 600;
}

.link-sub {
    color: var(--text-muted);

    font-size: 0.8rem;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    transition: color 0.25s ease;
}

.link-arrow {
    flex-shrink: 0;

    color: var(--text-muted);

    font-size: 1.5rem;
    line-height: 1;

    transition:
        transform 0.25s ease,
        color 0.25s ease;
}


/* =========================================================
   HOVER
   ========================================================= */

.link-btn:hover {
    color: var(--background-blue);

    background: var(--accent-blue);

    border-color: var(--accent-blue);

    transform: translateY(-2px);

    box-shadow:
        0 8px 24px rgba(187, 217, 231, 0.35);
}

.link-btn:hover .link-sub,
.link-btn:hover .link-arrow {
    color: rgba(24, 42, 66, 0.7);
}

.link-btn:hover .site-icon {
    transform: scale(1.06);
}

.link-btn:hover .link-arrow {
    transform: translateX(3px);
}


/* =========================================================
   MIS EN AVANT
   ========================================================= */

.featured {
    background:
        linear-gradient(
            135deg,
            rgba(216, 180, 200, 0.22),
            rgba(187, 217, 231, 0.10)
        );

    border-color: rgba(216, 180, 200, 0.45);
}


/* =========================================================
   JOUETS LOVENSE (LIENS AFFILIÉS)
   ========================================================= */

.tabs {
    display: flex;

    gap: 6px;

    padding: 4px;

    overflow-x: auto;

    background: rgba(240, 241, 247, 0.05);

    border: 1px solid var(--glass-border);
    border-radius: 999px;

    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    flex: 1 0 auto;

    padding: 8px 12px;

    color: var(--text-secondary);

    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;

    white-space: nowrap;

    background: transparent;

    border: none;
    border-radius: 999px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    color: var(--background-blue);

    background: var(--accent-pink);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 10px;
}

.product {
    position: relative;

    display: flex;
    flex-direction: column;

    padding: 8px 8px 10px;

    color: var(--text-primary);

    text-align: center;
    text-decoration: none;

    background: var(--glass-background);

    border: 1px solid var(--glass-border);
    border-radius: var(--radius);

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.product[hidden] {
    display: none;
}

.product-img {
    display: block;

    aspect-ratio: 1;

    margin-bottom: 8px;

    padding: 8px;

    background: #FFFFFF;

    border-radius: 10px;

    overflow: hidden;
}

.product-img img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    transition: transform 0.3s ease;
}

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;

    padding: 2px 7px;

    color: #FFFFFF;

    font-size: 0.62rem;
    font-weight: 700;

    letter-spacing: 0.5px;
    text-transform: uppercase;

    background: var(--background-prune);

    border-radius: 999px;
}

.product-name {
    font-size: 0.85rem;
    font-weight: 600;

    line-height: 1.25;
}

.product-type {
    margin-top: 2px;

    color: var(--text-muted);

    font-size: 0.7rem;

    line-height: 1.3;
}

.product:hover {
    background: rgba(240, 241, 247, 0.14);

    border-color: var(--accent-pink);

    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.product:hover .product-img img {
    transform: scale(1.06);
}

.product:focus-visible,
.tab:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

.affiliate-note {
    color: var(--text-muted);

    font-size: 0.72rem;
    line-height: 1.5;
}


/* =========================================================
   WISHLIST
   ========================================================= */

.wishlist {
    background:
        linear-gradient(
            135deg,
            rgba(150, 93, 120, 0.30),
            rgba(187, 217, 231, 0.10)
        );

    border-color: rgba(218, 176, 199, 0.40);

    box-shadow: 0 8px 25px rgba(99, 47, 77, 0.18);
}

.wishlist:hover {
    background:
        linear-gradient(
            135deg,
            var(--accent-blue),
            var(--accent-pink)
        );
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    margin-top: 44px;

    color: var(--text-muted);

    font-size: 0.75rem;
    line-height: 1.7;
}

.footer-note {
    opacity: 0.8;
}


/* =========================================================
   AVERTISSEMENT 18+
   ========================================================= */

.age-gate {
    position: fixed;
    inset: 0;
    z-index: 100;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(12, 18, 30, 0.75);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.age-gate[hidden] {
    display: none;
}

.age-card {
    width: 100%;
    max-width: 380px;

    padding: 32px 26px 26px;

    text-align: center;

    background:
        linear-gradient(
            160deg,
            var(--background-prune),
            var(--background-blue)
        );

    border: 1px solid var(--glass-border);
    border-radius: 18px;

    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 56px;
    height: 56px;

    margin-bottom: 16px;

    color: var(--background-blue);

    font-weight: 800;

    background: var(--accent-pink);

    border-radius: 50%;
}

.age-card h2 {
    margin-bottom: 8px;

    font-size: 1.2rem;
}

.age-card p {
    color: var(--text-secondary);

    font-size: 0.9rem;
    line-height: 1.5;
}

.age-actions {
    display: flex;
    flex-direction: column;

    gap: 10px;

    margin-top: 22px;
}

.age-btn {
    display: block;

    padding: 13px 16px;

    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;

    text-decoration: none;

    border-radius: var(--radius);

    cursor: pointer;

    transition: opacity 0.2s ease;
}

.age-btn:hover {
    opacity: 0.88;
}

.age-yes {
    color: var(--background-blue);

    background: var(--accent-blue);

    border: none;
}

.age-no {
    color: var(--text-secondary);

    background: transparent;

    border: 1px solid var(--glass-border);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 480px) {

    body {
        padding: 32px 16px 24px;
    }

    .profile-img {
        width: 92px;
        height: 92px;
    }

    h1 {
        font-size: 1.35rem;
    }

    .bio {
        font-size: 0.9rem;
    }

    .link-btn {
        min-height: 60px;
    }

    .site-icon {
        width: 40px;
        height: 40px;
    }

    .site-icon img {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 380px) {

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   ANIMATIONS RÉDUITES
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    * {
        transition: none !important;
    }
}
