
/* ==========================================
   LES PIERRES D'AELIA
   Page des reseaux sociaux
   ========================================== */


/* 1. PALETTE GRAPHIQUE */

:root {
    --ivory: #fff5e3;
    --champagne: #e7ccaa;
    --gold: #b58b45;
    --copper: #79563a;
    --plum: #381c39;
    --ink: #503c32;
    --paper: #fffbf3;
    --serif: Georgia, "Times New Roman", serif;
}


/* 2. CONFIGURATION GENERALE */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;

    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    flex-direction: column;

    font-family: var(--serif);
    color: var(--ink);
    line-height: 1.6;

    background:
        radial-gradient(
            ellipse at 50% 0%,
            #fffdf6 0%,
            transparent 58%
        ),
        linear-gradient(
            110deg,
            #f3e2ca,
            var(--paper) 35%,
            var(--paper) 65%,
            #f3e2ca
        );
}


/* 3. CONTENEUR PRINCIPAL */

.social-page {
    flex: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 520px;

    margin: 0 auto;
    padding: 32px 24px;

    text-align: center;
}


/* 4. LOGO */

.logo {
    display: block;

    width: 160px;
    max-width: 100%;
    height: auto;

    border-radius: 50%;
    margin-bottom: 15px;
}


/* 5. TITRES ET PRESENTATION */

h1 {
    margin: 0 0 8px;

    color: var(--plum);

    font-size: clamp(2rem, 6vw, 2.8rem);
    font-weight: normal;
    font-style: italic;
    line-height: 1.2;
}

.signature {
    margin: 0;

    color: var(--copper);
    font-size: 0.95rem;
}

h2 {
    margin: 0 0 10px;

    color: var(--plum);
    font-size: 1.65rem;
    font-weight: normal;
    font-style: italic;
}

.description {
    margin: 0 0 25px;

    max-width: 360px;
    font-size: 1rem;
}


/* 6. ORNEMENT DORE */

.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    color: var(--gold);
    margin: 20px 0;
}

.ornament span {
    width: 75px;
    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        var(--gold)
    );
}

.ornament span:last-child {
    transform: rotate(180deg);
}


/* 7. RESEAUX SOCIAUX */

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;

    width: 100%;
    max-width: 400px;
}

.social-link {
    display: grid;
    grid-template-columns: 28px 1fr 18px;
    align-items: center;
    gap: 12px;

    min-height: 58px;
    padding: 14px 18px;

    color: var(--plum);
    background-color: var(--paper);

    border: 1px solid var(--gold);
    border-radius: 4px;

    text-decoration: none;
    font-size: 1.05rem;

    box-shadow: 0 3px 12px #79563a0d;

    transition:
        background-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.social-link img,
.social-link svg {
    display: block;

    width: 25px;
    height: 25px;

    object-fit: contain;
}

.social-link .arrow {
    color: var(--gold);
    font-size: 1.5rem;
    line-height: 1;
}

.social-link[href]:hover {
    background-color: var(--ivory);

    transform: translateY(-2px);

    box-shadow: 0 6px 16px #79563a20;
}

.social-link:focus-visible {
    outline: 2px solid var(--plum);
    outline-offset: 4px;
}

.social-link[aria-disabled="true"] {
    cursor: default;
}


/* 8. SIGNATURE ET RETOUR ACCUEIL */

.values {
    margin: 26px 0 18px;

    color: var(--copper);
    font-size: 0.85rem;
    font-style: italic;
}

.back-home {
    color: var(--plum);

    font-size: 0.9rem;
    text-underline-offset: 4px;
}

.back-home:hover {
    color: var(--copper);
}


/* 9. PIED DE PAGE */

footer {
    padding: 16px 20px;

    text-align: center;
    color: var(--copper);
    font-size: 0.8rem;
}

footer p {
    margin: 0;
}


/* 10. ADAPTATION AUX MOBILES */

@media (max-width: 480px) {

    .social-page {
        padding: 24px 20px;
    }

    .logo {
        width: 135px;
    }

    .social-link {
        padding: 12px 14px;
    }

    .signature {
        font-size: 0.85rem;
    }

    .values {
        font-size: 0.75rem;
    }

    footer {
        font-size: 0.7rem;
    }

}


/* 11. ACCESSIBILITE */

@media (prefers-reduced-motion: reduce) {

    .social-link {
        transition: none;
    }

    .social-link[href]:hover {
        transform: none;
    }

}
