:root {
    --peach: #f7c3a6;
    --marigold: #e8a73a;
    --terracotta: #c4573c;
    --coral: #ea8a66;
    --blush: #efb0aa;
    --dusty-blue: #a6bcc6;
    --olive: #8f914a;
    --ink: #524c5f;
    /* texte principal */
}

/* Reset minimal */
* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    height: 100%;
    font-family: ui-serif, Charter, "Times New Roman", Georgia, serif;
    color: var(--ink);
}

/* Fond papier aquarelle + léger bruit */
body {
    --paper: #fbfaf7;
    background:
        radial-gradient(1200px 1200px at 10% 0%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0)) no-repeat,
        radial-gradient(1000px 800px at 90% 10%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0)) no-repeat,
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.015) 0 2px, transparent 2px 4px),
        var(--paper);
}

.wrap {
    min-height: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

header {
    text-align: center;
    padding: 2rem 1rem 0.5rem;
}

header h1 {
    margin: 0;
    font-size: clamp(28px, 6vw, 56px);
    letter-spacing: .5px;
    font-variant-ligatures: common-ligatures;
}

header h1 span {
    font-family: ui-cursive, "Snell Roundhand", "Segoe Script", "Apple Chancery", "URW Chancery L", cursive;
    font-weight: 500
}

header p {
    margin: .35rem 0 0;
    font-size: clamp(12px, 2.8vw, 16px);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #6a6578
}

/* Carte centrale */
.card {
    width: min(920px, 92vw);
    margin: 1rem auto 2rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(82, 76, 95, .08);
    border: 1px solid rgba(82, 76, 95, .08);
    overflow: hidden;
    position: relative;
}

/* Bande décorative aquarelle en haut */
.wash {
    height: 18px;
    background: linear-gradient(90deg,
            var(--peach), var(--marigold) 20%, var(--terracotta) 35%, var(--coral) 50%, var(--blush) 65%, var(--dusty-blue) 80%, var(--olive));
    filter: blur(0.3px) saturate(1.05);
}

.inner {
    padding: clamp(18px, 3.8vw, 40px)
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(10px, 2.5vw, 18px);
    align-items: stretch;
    margin: 18px 0 8px;
}

.unit {
    background: linear-gradient(180deg, rgba(255, 255, 255, .75), rgba(255, 255, 255, .55));
    border: 1px solid rgba(82, 76, 95, .12);
    border-radius: 18px;
    padding: clamp(10px, 2.5vw, 16px);
    text-align: center;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}

.unit h2 {
    margin: 0;
    font-size: clamp(28px, 7vw, 48px);
    line-height: 1.1
}

.unit p {
    margin: .2rem 0 0;
    letter-spacing: .15em;
    text-transform: uppercase;
    font-size: clamp(10px, 2.4vw, 12px);
    opacity: .8
}

/* Pastilles couleur pour chaque unité */
.unit::after {
    content: "";
    position: absolute;
    inset: auto 10px -8px auto;
    width: 36px;
    height: 8px;
    border-radius: 8px;
    opacity: .75
}

.unit.days::after {
    background: var(--marigold)
}

.unit.hours::after {
    background: var(--terracotta)
}

.unit.minutes::after {
    background: var(--dusty-blue)
}

.unit.seconds::after {
    background: var(--olive)
}

/* Ruban date et lieu */
.meta {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: .6rem 0 0;
    color: #6a6578
}

.badge {
    border: 1px solid rgba(82, 76, 95, .18);
    padding: .45rem .8rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .6));
    font-size: clamp(12px, 2.7vw, 14px);
    letter-spacing: .08em;
}

/* Bandeau végétal en bas */
.meadow {
    position: relative;
    height: 170px;
    overflow: hidden;
    background: linear-gradient(180deg, transparent, rgba(167, 183, 160, .08) 30%, rgba(143, 145, 74, .09));
}

svg.flora {
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 120%;
    height: 200px;
    opacity: .9
}

/* Petites animations */
.float {
    animation: float 6s ease-in-out infinite
}

@keyframes float {
    0% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-6px)
    }

    100% {
        transform: translateY(0)
    }
}

footer {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 1rem 1.2rem;
    flex-wrap: wrap
}

.cta {
    border: none;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: .06em;
    padding: .8rem 1.1rem;
    border-radius: 14px;
    color: #2f2c39
}

.cta.primary {
    background: var(--peach)
}

.cta.alt {
    background: var(--blush)
}

/* Mobile-first tweaks */
@media (max-width:480px) {
    .meadow {
        height: 150px
    }
}