:root {
    --bg: #06070b;
    --bg-card: rgba(15, 18, 28, 0.72);
    --border: rgba(255, 255, 255, 0.10);
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.68);
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    --radius-xl: 32px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --cyan: #00e5ff;
    --pink: #ff2d8d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background:
        linear-gradient(180deg, #05060a 0%, #0b0e17 100%);
    overflow-x: hidden;
    position: relative;
}

/* Fond animé */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(circle at center, black 35%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.bg-blur {
    position: fixed;
    border-radius: 999px;
    filter: blur(120px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
    animation: floatBlob 10s ease-in-out infinite;
}

.bg-blur-1 {
    width: 320px;
    height: 320px;
    background: #00e5ff;
    top: 5%;
    left: -60px;
}

.bg-blur-2 {
    width: 360px;
    height: 360px;
    background: #ff2d8d;
    bottom: 5%;
    right: -80px;
    animation-delay: 2s;
}

.social-page {
    min-height: 100vh;
    padding: 32px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.social-card {
    width: 100%;
    max-width: 560px;
    padding: 32px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(0,229,255,0.35), rgba(255,45,141,0.25), rgba(255,255,255,0.08));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.logo-ring {
    width: 118px;
    height: 118px;
    margin: 0 auto 22px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--cyan), var(--pink));
    animation: pulseRing 4s ease-in-out infinite;
}

.logo-box {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #0f1220;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-header {
    text-align: center;
    margin-bottom: 28px;
}

.social-header h1 {
    font-size: 32px;
    line-height: 1.1;
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.social-header p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 420px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.social-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--text);
    min-height: 76px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    overflow: hidden;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.social-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.18),
        transparent
    );
    transition: left 0.65s ease;
}

.social-btn:hover::before {
    left: 140%;
}

.social-btn:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.20);
    box-shadow: 0 18px 35px rgba(0,0,0,0.22);
}

.social-btn__icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.08);
}

.social-btn__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.social-btn__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
}

.social-btn__subtitle {
    margin-top: 4px;
    font-size: 13px;
    color: var(--muted);
}

.social-btn__arrow {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
}

/* Couleurs par réseau */
.website:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(0,229,255,0.12));
}

.tiktok:hover {
    background: linear-gradient(135deg, rgba(37,244,238,0.16), rgba(254,44,85,0.16));
}

.instagram:hover {
    background: linear-gradient(135deg, rgba(131,58,180,0.18), rgba(253,29,29,0.14), rgba(252,176,69,0.18));
}

.facebook:hover {
    background: linear-gradient(135deg, rgba(24,119,242,0.18), rgba(255,255,255,0.06));
}

.linkedin:hover {
    background: linear-gradient(135deg, rgba(10,102,194,0.18), rgba(255,255,255,0.06));
}

.social-footer {
    margin-top: 26px;
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.back-link:hover {
    color: #fff;
    transform: translateX(-2px);
}

/* Animation apparition */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes floatBlob {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
    }
    50% {
        transform: translateY(-18px) translateX(12px) scale(1.05);
    }
}

@keyframes pulseRing {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(0,229,255,0.0);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 35px rgba(255,45,141,0.16);
    }
}

/* Responsive */
@media (max-width: 640px) {
    .social-card {
        padding: 24px 18px;
        border-radius: 24px;
    }

    .social-header h1 {
        font-size: 26px;
    }

    .social-header p {
        font-size: 14px;
    }

    .social-btn {
        min-height: 70px;
        padding: 14px;
        gap: 14px;
        border-radius: 18px;
    }

    .social-btn__icon {
        width: 46px;
        height: 46px;
        min-width: 46px;
        font-size: 20px;
        border-radius: 14px;
    }

    .social-btn__title {
        font-size: 15px;
    }

    .social-btn__subtitle {
        font-size: 12px;
    }

    .logo-ring {
        width: 102px;
        height: 102px;
    }
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}


/* =========================
   ANIMATIONS PREMIUM
========================= */

/* Carte avec léger effet 3D */
.social-card {
    transform-style: preserve-3d;
    transform:
        perspective(1000px)
        rotateX(var(--rotate-x, 0deg))
        rotateY(var(--rotate-y, 0deg));
    transition: transform 0.18s ease, box-shadow 0.25s ease;
}

.social-card:hover {
    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.55),
        0 0 45px rgba(0, 229, 255, 0.08),
        0 0 60px rgba(255, 45, 141, 0.08);
}

/* Lumière qui suit la souris sur la carte */
.social-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 255, 255, 0.14),
        transparent 38%
    );
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 0;
}

.social-card:hover::after {
    opacity: 1;
}

.social-card > * {
    position: relative;
    z-index: 1;
}

/* Titre avec effet dégradé animé */
.social-header h1 {
    background: linear-gradient(135deg, #ffffff, #00e5ff, #ff2d8d, #ffffff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: titleGradient 6s ease infinite;
}

/* Logo flottant */
.logo-ring {
    animation:
        pulseRing 4s ease-in-out infinite,
        floatLogo 5s ease-in-out infinite;
}

/* Boutons plus vivants */
.social-btn {
    isolation: isolate;
}

.social-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--btn-x, 50%) var(--btn-y, 50%),
        rgba(255, 255, 255, 0.16),
        transparent 34%
    );
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -1;
}

.social-btn:hover::after {
    opacity: 1;
}

.social-btn:hover .social-btn__icon {
    transform: scale(1.08) rotate(-3deg);
}

.social-btn__icon {
    transition: transform 0.25s ease;
}

/* Petite flèche qui bouge */
.social-btn:hover .social-btn__arrow {
    transform: translate(3px, -3px);
}

.social-btn__arrow {
    transition: transform 0.25s ease;
}

/* Effet clic */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(255, 255, 255, 0.35);
    animation: rippleEffect 0.65s ease-out;
    pointer-events: none;
}

/* Animations */
@keyframes titleGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes floatLogo {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.03);
    }
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}