
:root {
    --pink-light: #ffe0e9;
    --pink-medium: #ffc5d5;
    --pink-dark: #f28aa8;
    --red: #d83a59;
    --red-dark: #a92343;
    --white-pink: #fff5f7;
}

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

body {
    min-height: 100vh;
    min-height: 100dvh;

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

    background: linear-gradient(
        160deg,
        var(--pink-light) 0%,
        var(--pink-medium) 55%,
        var(--pink-dark) 100%
    );

    font-family: "Fredoka", sans-serif;
    color: var(--red-dark);

    position: relative;
    overflow-x: hidden;

    padding: 30px 20px;
}

/* Conteneur principal */

.container {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 460px;

    text-align: center;

    animation: appear 0.8s ease-out;
}

/* En-tête */

.header {
    margin-bottom: 28px;
}

.couple-icon {
    width: 150px;
    height: 150px;

    object-fit: cover;
    border-radius: 35px;

    margin-bottom: 18px;

    box-shadow:
        0 8px 25px rgba(169, 35, 67, 0.12);

    animation: floating 4s ease-in-out infinite;
}

h1 {
    font-size: clamp(32px, 7vw, 46px);
    font-weight: 600;
    line-height: 1.12;

    color: var(--red-dark);

    letter-spacing: -0.5px;
}

/* Cartes statistiques */

.stat-card {
    background: var(--white-pink);

    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 35px;

    padding: 26px 15px;

    box-shadow:
        0 7px 0 rgba(216, 58, 89, 0.12),
        0 12px 30px rgba(169, 35, 67, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 10px 0 rgba(216, 58, 89, 0.12),
        0 16px 35px rgba(169, 35, 67, 0.12);
}

.stat-icon {
    display: block;

    font-size: 32px;
    margin-bottom: 5px;
}

.stat-value {
    display: flex;
    justify-content: center;
    align-items: baseline;

    gap: 7px;

    font-size: clamp(36px, 10vw, 58px);
    font-weight: 600;

    color: var(--red-dark);

    font-variant-numeric: tabular-nums;
}

.unit {
    font-size: 0.55em;
    font-weight: 500;
}

.stat-label {
    margin-top: 5px;

    font-size: 19px;
    font-weight: 500;

    color: var(--red);
}

/* Cœur séparateur */

.heart-divider {
    color: var(--red);
    font-size: 30px;

    padding: 10px 0;

    animation: heartbeat 2s infinite;
}

/* Bouton album photo */

.memories-button {
    display: inline-flex;

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

    gap: 11px;

    margin-top: 30px;
    padding: 15px 28px;

    background: var(--red);
    color: white;

    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;

    font-family: inherit;
    font-size: 19px;
    font-weight: 500;

    text-decoration: none;

    box-shadow:
        0 5px 0 rgba(169, 35, 67, 0.2),
        0 10px 20px rgba(169, 35, 67, 0.1);

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

.memories-button:hover {
    background: var(--red-dark);

    transform: translateY(-3px);

    box-shadow:
        0 8px 0 rgba(169, 35, 67, 0.2),
        0 14px 25px rgba(169, 35, 67, 0.15);
}

.memories-button:active {
    transform: translateY(3px);

    box-shadow:
        0 2px 0 rgba(169, 35, 67, 0.2);
}

.memories-button:focus-visible {
    outline: 3px solid var(--red-dark);
    outline-offset: 4px;
}

.camera-icon {
    width: 22px;
    height: 22px;

    flex-shrink: 0;
}

/* Pied de page */

.footer {
    margin-top: 22px;
}

.footer span {
    display: inline-block;

    font-size: 25px;
    letter-spacing: 6px;

    color: var(--red-dark);

    animation: twinkle 4s ease-in-out infinite;
}

/* Étoiles en arrière-plan */

.background-stars {
    position: fixed;
    inset: 0;

    overflow: hidden;
    pointer-events: none;
}

.star {
    position: absolute;

    color: white;
    opacity: 0.65;

    text-shadow:
        0 0 15px rgba(255, 255, 255, 0.4);

    animation:
        floating 5s ease-in-out infinite,
        twinkle 4s ease-in-out infinite;
}

.star-1 {
    top: 12%;
    left: 12%;
    font-size: 38px;
    transform: rotate(-15deg);
}

.star-2 {
    top: 20%;
    right: 12%;
    font-size: 48px;
    animation-delay: 1s;
}

.star-3 {
    top: 55%;
    left: 7%;
    font-size: 25px;
    animation-delay: 2s;
}

.star-4 {
    top: 65%;
    right: 9%;
    font-size: 42px;
    animation-delay: 0.5s;
}

.star-5 {
    bottom: 8%;
    left: 20%;
    font-size: 30px;
    animation-delay: 1.5s;
}

.star-6 {
    bottom: 12%;
    right: 18%;
    font-size: 25px;
    animation-delay: 2.5s;
}

/* Animations */

@keyframes floating {
    0%, 100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -7px;
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.35;
        scale: 0.9;
    }

    50% {
        opacity: 0.9;
        scale: 1.1;
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Adaptation aux téléphones */

@media (max-width: 480px) {

    body {
        padding: 24px 20px;
    }

    .couple-icon {
        width: 125px;
        height: 125px;
        border-radius: 28px;
    }

    .header {
        margin-bottom: 22px;
    }

    .stat-card {
        padding: 22px 12px;
        border-radius: 28px;
    }

    .stat-label {
        font-size: 17px;
    }

    .star {
        font-size: 24px;
    }

    .memories-button {
        margin-top: 25px;
        padding: 13px 24px;
        font-size: 17px;
    }

    .camera-icon {
        width: 20px;
        height: 20px;
    }
}

/* Accessibilité */

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
