/* ============================================================
 *   THÈME — variables à modifier pour changer toute l'apparence
 *   ============================================================ */
:root {
    /* Couleurs principales */
    --color-bg-top:        #1a1525;   /* fond haut (violet très sombre) */
    --color-bg-bottom:     #0e1520;   /* fond bas (bleu nuit) */
    --color-accent-1:      #7c17fc;   /* violet vif */
    --color-accent-2:      #5771e1;   /* bleu électrique */
    --color-text:          #f0eaf8;   /* blanc légèrement violacé */
    --color-text-muted:    rgba(220, 200, 255, 0.72);
    --color-btn-bg:        rgba(30, 20, 50, 0.75);
    --color-btn-border:    rgba(155, 92, 246, 0.45);
    --color-btn-hover-bg:  rgba(50, 30, 80, 0.90);
    --color-btn-hover-border: rgba(155, 92, 246, 0.95);
    --color-glow:          rgba(120, 60, 220, 0.18);
    --color-grid:          rgba(155, 92, 246, 0.07);

    /* Typographie */
    --font-display:        sans-serif;   /* titres, boutons */
    --font-body:           sans-serif;     /* description */

    /* Tailles */
    --font-size-h1:        2.8rem;
    --font-size-desc:      1.1rem;
    --font-size-btn:       1.5rem;

    /* Formes */
    --radius-btn:          24px;
    --radius-avatar:       50%;

    /* Espacements */
    --gap-buttons:         14px;
    --btn-max-width:       420px;
    --btn-min-height:      64px;
    --btn-padding:         12px 24px;

    /* Pattern */
    --bg-pattern:          var(--pattern-circuit);      /* --pattern-honeycomb , --pattern-pcb , --pattern-circuit */
    --bg-pattern-size:     var(--pattern-circuit-size); /* --pattern-honeycomb-size , --pattern-pcb-size , --pattern-circuit-size */

}

/* ============================================================
 *   RESET & BASE
 *   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: var(--font-body);
    background: linear-gradient(160deg, var(--color-bg-top) 0%, var(--color-bg-bottom) 100%);
    color: var(--color-text);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow-x: hidden;
    position: relative;
}

/* ============================================================
 *   BACKGROUND : grille + lueur ambiante
 *   ============================================================ */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image: var(--bg-pattern);
    background-size: var(--bg-pattern-size);
    pointer-events: none;
    z-index: 0;
}

.bg-glow {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse at center, var(--color-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.bg-glow-bottom {
    position: fixed;
    bottom: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================================
 *   LAYOUT
 *   ============================================================ */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 700px;
    padding: 48px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ============================================================
 *   AVATAR
 *   ============================================================ */
.profile-wrapper {
    position: relative;
    width: 170px;
    height: 170px;
    margin-bottom: 28px;
}

.profile-image {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: var(--radius-avatar);
    position: relative;
    z-index: 1;
    display: block;
}

/* Anneau animé autour de l'avatar */
.profile-ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        var(--color-accent-1),
        var(--color-accent-2),
        var(--color-accent-1)
    );
    z-index: 0;
    animation: ring-spin 4s linear infinite;
    opacity: 0.85;
}

.profile-ring::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: var(--color-bg-top);
    border-radius: 50%;
}

@keyframes ring-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ============================================================
 *   TYPOGRAPHIE
 *   ============================================================ */
/*h1 {
    font-family: var(--font-display);
    font-size: var(--font-size-h1);
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    margin-bottom: 14px;
    background: linear-gradient(90deg, var(--color-accent-1), var(--color-accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}*/
.name-wrapper {
    position: relative;
    width: 300px;
    height: 150px;
    margin-bottom: 28px;
}
.name-image {
    width: 300px;
    height: 150px;
    object-fit: cover;

    position: relative;
    z-index: 1;
    display: block;
}

/*.description {
    font-size: var(--font-size-desc);
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 12px;
    font-weight: 500;
}*/

/* ============================================================
 *   BOUTONS
 *   ============================================================ */
.button-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-buttons);
}

.link-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;

    width: 100%;
    max-width: var(--btn-max-width);
    min-height: var(--btn-min-height);
    padding: var(--btn-padding);

    text-decoration: none;
    color: var(--color-text);
    font-family: var(--font-display);
    font-size: var(--font-size-btn);
    font-weight: 400;
    letter-spacing: 0.05em;

    background: var(--color-btn-bg);
    border: 2px solid var(--color-accent-2);
    border-radius: var(--radius-btn);
    backdrop-filter: blur(8px);

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

.link-button:hover {
    transform: translateY(-2px) scale(1.02);
    background: var(--color-btn-hover-bg);
    border: 3px solid var(--color-accent-1);
    border-color: var(--color-btn-hover-border);
    box-shadow:
    0 0 16px rgba(155, 92, 246, 0.35),
    0 0 40px rgba(59, 130, 246, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.link-button:active {
    transform: scale(0.97);
}

.link-button:focus-visible {
    outline: 2px solid var(--color-accent-1);
    outline-offset: 4px;
}

.btn-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.btn-label {
    flex: 1;
    text-align: center;
}

/* ============================================================
 *   RÉSEAUX SOCIAUX — ligne d'icônes
 *   ============================================================ */

.social-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 12px;
}

.social-icon {
    display: block;
    width: 48px;
    height: 48px;

    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 36px 36px;

    border: none;
    border-radius: 50%;

    transition:
    box-shadow   0.18s ease,
    transform    0.18s ease,
    background-image 0.18s ease;
}

.social-icon:hover {
    transform: translateY(-2px) scale(1.1);
}


.social-icon:focus-visible {
    outline: 2px solid var(--color-accent-1);
    outline-offset: 4px;
}

/* --- Icône : Instagram --- */
.social-icon--instagram {
    background-image: var(--icon-instagram);
}
.social-icon--instagram:hover {
    background-image: var(--icon-instagram-hover);
}

/* --- Icône : Reddit --- */
.social-icon--reddit {
    background-image: var(--icon-reddit);
}
.social-icon--reddit:hover {
    background-image: var(--icon-reddit-hover);
}

/* ============================================================
 *   RESPONSIVE
 *   ============================================================ */
@media (max-width: 600px) {
    .profile-wrapper,
    .profile-image {
        width: 130px;
        height: 130px;
    }

    :root {
        --font-size-h1:   2rem;
        --font-size-desc: 0.95rem;
        --font-size-btn:  1rem;
        --btn-min-height: 48px;
        --gap-buttons:    12px;
    }
}
