* {
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at 50% -10%, #17253b 0%, #050b14 55%, #030509 100%);
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.container {
    text-align: center;
    max-width: 460px;
    width: 100%;
    padding: 30px 24px;
}

.brand {
    color: #8a9ba8;
    letter-spacing: 3px;
    font-size: 0.7rem;
    text-transform: uppercase;
    margin: 0 0 24px;
    opacity: 0.7;
}

header h3 {
    color: #d4af37;
    letter-spacing: 3px;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.date {
    color: #8a9ba8;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin: 0 0 6px;
}

#timer {
    font-size: 3.2rem;
    margin: 8px 0;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #ffffff 0%, #cfd9e4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: #8a9ba8;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin: 0 0 16px;
}

.divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    margin: 0 auto 36px;
    border-radius: 2px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px 14px;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card h2 {
    font-size: 0.82rem;
    font-weight: 600;
    margin: 12px 0 4px;
    line-height: 1.2;
}

.time {
    display: block;
    color: #7f92a3;
    font-size: 0.72rem;
}

.percentage {
    display: block;
    font-weight: 700;
    color: #f5c542;
    margin-top: 3px;
    font-size: 0.85rem;
}

.footnote {
    margin-top: 36px;
    color: #5f7182;
    font-size: 0.72rem;
    line-height: 1.5;
}

/* --- Icône du Soleil et animation de l'éclipse --- */
.eclipse-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    background: radial-gradient(circle at 35% 30%, #ffe08a, #f3a712 65%, #d98c0c 100%);
    box-shadow: 0 0 18px 2px rgba(243, 167, 18, 0.55);
    overflow: hidden;
    animation: glow 3.6s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.eclipse-icon span {
    position: absolute;
    top: -2px;
    left: 100%;
    width: 100%;
    height: calc(100% + 4px);
    border-radius: 50%;
    background: radial-gradient(circle at 65% 40%, #0c1626, #050b14 70%);
    animation: eclipseCycle 6s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

@keyframes eclipseCycle {
    0%   { left: 100%; }
    38%  { left: calc(50% - (var(--coverage) * 0.5)); }
    62%  { left: calc(50% - (var(--coverage) * 0.5)); }
    100% { left: 100%; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 18px 2px rgba(243, 167, 18, 0.55); }
    50%      { box-shadow: 0 0 8px 1px rgba(243, 167, 18, 0.25); }
}

@media (prefers-reduced-motion: reduce) {
    .eclipse-icon, .eclipse-icon span {
        animation: none;
    }
    .eclipse-icon span {
        left: calc(50% - (var(--coverage) * 0.5));
    }
}
