/* Palette douce pour un site de naissance : pastel, arrondi, léger. */
:root {
    --bg: #fff7f5;
    --bg-card: #ffffff;
    --text: #4a3f45;
    --text-soft: #8a7b82;
    --accent: #f4a6b7;
    --accent-soft: #ffe3ea;
    --accent-strong: #e88ca0;
    --border-radius: 1.25rem;
    --shadow: 0 8px 24px rgba(230, 170, 190, 0.25);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--bg) 0%, #fef0f4 100%);
    color: var(--text);
    font-family: "Quicksand", "Nunito", "Segoe UI", sans-serif;
    line-height: 1.6;
}

.page {
    max-width: 42rem;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}

.card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

h1, h2, h3 {
    color: var(--accent-strong);
    font-weight: 700;
}

a {
    color: var(--accent-strong);
}

.button {
    display: inline-block;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
}

.button.secondary {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.button.danger {
    background: #f6c6c6;
    color: #8a3b3b;
}

input[type="text"], input[type="password"], input[type="date"], textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: 0.8rem;
    border: 1px solid var(--accent-soft);
    font-family: inherit;
    font-size: 1rem;
    background: #fffafb;
}

textarea {
    min-height: 6rem;
    resize: vertical;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text-soft);
}

.field {
    margin-bottom: 1rem;
}

.hero {
    text-align: center;
    animation: hero-enter 1.1s ease-out;
}

@keyframes hero-enter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero .baby-name {
    font-size: 2.6rem;
    margin: 0.25rem 0;
}

.hero .birth-date {
    color: var(--text-soft);
    font-size: 1.1rem;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: 0.6rem;
    margin: 0.75rem 0;
}

.photo-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0.9rem;
    box-shadow: var(--shadow);
}

.entry-meta {
    color: var(--text-soft);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.entry-actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

nav.top {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.flash {
    background: var(--accent-soft);
    border-radius: 0.8rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: var(--accent-strong);
}
