/* Explain: Styling for reusable elements like navigation links, cards, and section anchors. */
.eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.nav-link {
    position: relative;
    padding-bottom: 0.4rem;
    transition: color 300ms ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 300ms ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    transform: scaleX(1);
}

.blob-frame {
    overflow: hidden;
    border-radius: 46% 54% 52% 48% / 54% 46% 54% 46%;
}

.blob-outline {
    position: absolute;
    inset: -1rem -0.5rem -1rem -1.75rem;
    border: 2px dashed color-mix(in srgb, var(--primary-color) 42%, transparent);
    border-radius: 50% 50% 48% 52% / 52% 50% 50% 48%;
    pointer-events: none;
}

.emotion-card {
    position: relative;
    overflow: hidden;
    border: 4px solid var(--cream-color);
    border-radius: 1.8rem;
    box-shadow: var(--shadow-soft);
}

.emotion-caption {
    position: absolute;
    left: 50%;
    bottom: 0.75rem;
    transform: translateX(-50%);
    white-space: nowrap;
    border-radius: 999px;
    background: var(--cream-color);
    padding: 0.3rem 1rem;
    font-family: var(--font-script);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    box-shadow: var(--shadow-card);
}

.doodle-strokes {
    pointer-events: none;
}

.form-status {
    border-radius: 1rem;
    padding: 0.85rem 1.1rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
}

.form-status.success {
    display: block;
    border: 1px solid color-mix(in srgb, var(--primary-color) 45%, transparent);
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
    color: var(--text-color);
}

.form-status.error {
    display: block;
    border: 1px solid color-mix(in srgb, var(--secondary-color) 55%, transparent);
    background: color-mix(in srgb, var(--secondary-color) 12%, transparent);
    color: var(--text-color);
}

#podcast,
#histoire,
#participer,
#storyForm,
#rejoindre {
    scroll-margin-top: 5rem;
}