:root {
    --green-primary: #146C2E;
    --green-dark: #0E4F21;
    --green-light: #E8F5EC;
    --red-primary: #D32F2F;
    --red-light: #FDECEA;
    --text-main: #111827;
    --text-muted: #4B5563;
    --bg-page: #F8FAFC;
    --card-bg: #FFFFFF;
    --border-color: #E5E7EB;
    --shadow-lg: 0 20px 45px -15px rgba(20, 108, 46, 0.12), 0 4px 16px -4px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image: radial-gradient(#CBD5E1 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.45;
    z-index: -2;
}

.bg-glow {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.18;
    z-index: -1;
    pointer-events: none;
}

.bg-glow-green {
    top: -120px;
    left: -100px;
    background: var(--green-primary);
}

.bg-glow-red {
    bottom: -120px;
    right: -100px;
    background: var(--red-primary);
}

.container {
    width: 100%;
    max-width: 720px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-top: 5px solid var(--green-primary);
    border-radius: 24px;
    padding: 2.75rem 2.5rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
}

.container::after {
    content: "";
    position: absolute;
    top: -5px;
    right: 0;
    width: 32%;
    height: 5px;
    background: var(--red-primary);
    border-top-right-radius: 24px;
}

.card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--red-light);
    color: var(--red-primary);
    border: 1px solid rgba(211, 47, 47, 0.2);
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.pulse-dot {
    width: 9px;
    height: 9px;
    background-color: var(--red-primary);
    border-radius: 50%;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(211, 47, 47, 0); }
    100% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0); }
}

.org-subtitle {
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--green-primary);
    margin-bottom: 0.5rem;
}

.main-title {
    font-size: clamp(1.65rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.description {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 580px;
    margin: 0 auto 2rem;
}

.description strong {
    color: var(--text-main);
    font-weight: 700;
}

.countdown-section {
    background: #F9FAFB;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.35rem;
    margin-bottom: 1.75rem;
}

.countdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding: 0 0.25rem;
}

.target-date {
    font-weight: 700;
    color: var(--green-primary);
    background: var(--green-light);
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
}

.time-box {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.9rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.time-value {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    color: var(--green-primary);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.time-box.accent-red .time-value {
    color: var(--red-primary);
}

.time-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.progress-section {
    margin-bottom: 2rem;
    text-align: left;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

#progress-percent {
    color: var(--green-primary);
    font-weight: 700;
}

.progress-track {
    width: 100%;
    height: 10px;
    background: #E5E7EB;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green-primary), #1E9E45);
    border-radius: 999px;
    transition: width 0.6s ease;
}

.notify-section {
    margin-bottom: 1.5rem;
}

.notify-form {
    display: flex;
    gap: 0.65rem;
    max-width: 500px;
    margin: 0 auto;
}

.notify-form input {
    flex: 1;
    padding: 0.85rem 1.1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.notify-form input:focus {
    border-color: var(--green-primary);
    box-shadow: 0 0 0 3px rgba(20, 108, 46, 0.12);
}

.btn-primary {
    background: var(--green-primary);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    padding: 0.85rem 1.45rem;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--green-dark);
}

.btn-primary:active {
    transform: scale(0.98);
}

.form-feedback {
    margin-top: 0.65rem;
    font-size: 0.86rem;
    font-weight: 600;
    min-height: 1.25rem;
}

.form-feedback.success {
    color: var(--green-primary);
}

/* Bouton d'adhésion */
.adhesion-section {
    margin-bottom: 2rem;
}

.btn-adhesion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    max-width: 500px;
    background: #FFFFFF;
    color: var(--green-primary);
    border: 2px solid var(--green-primary);
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(20, 108, 46, 0.05);
}

.btn-adhesion:hover {
    background: var(--green-light);
    border-color: var(--green-dark);
    color: var(--green-dark);
    transform: translateY(-1px);
}

.btn-adhesion:active {
    transform: translateY(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.card-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

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

.copyright {
    font-size: 0.8rem;
    color: #9CA3AF;
}

@media (max-width: 540px) {
    .container {
        padding: 2rem 1.25rem;
    }
    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .countdown-header {
        flex-direction: column;
        gap: 0.4rem;
    }
    .notify-form {
        flex-direction: column;
    }
}
