/* ============================================
   Coming Soon — Bénin Tourisme (version originale)
   Logo, assets, animations
   ============================================ */

:root {
    --cs-font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --cs-bg: #1a3d35;
    --cs-accent: #3F8E7E;
    --cs-accent-hover: #4a9e8e;
    --cs-orange: #E39B4B;
    --cs-orange-hover: #e8a85a;
    --cs-red: #ff4b5c;
    --cs-text: #fff;
    --cs-text-muted: rgba(255, 255, 255, 0.9);
    --cs-text-soft: rgba(255, 255, 255, 0.7);
    --cs-radius: 12px;
    --cs-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    --cs-transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--cs-font);
    background: var(--cs-bg);
    color: var(--cs-text);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* ========== Fond avec images hero (crossfade) ========== */
.cs-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.cs-bg-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    animation: cs-bg-crossfade 12s ease-in-out infinite;
}

.cs-bg-img-2 {
    animation-delay: -6s;
    opacity: 0;
}

@keyframes cs-bg-crossfade {
    0%, 45%, 100% { opacity: 1; }
    50%, 95% { opacity: 0; }
}

.cs-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(26, 61, 53, 0.92) 0%, rgba(26, 61, 53, 0.75) 50%, rgba(0, 0, 0, 0.85) 100%);
    pointer-events: none;
}

/* ========== Formes flottantes ========== */
.cs-shapes {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.cs-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(63, 142, 126, 0.2), rgba(227, 155, 75, 0.15));
    animation: cs-float 20s ease-in-out infinite;
}

.cs-shape-1 { width: 120px; height: 120px; top: 15%; left: 10%; animation-duration: 18s; animation-delay: 0s; }
.cs-shape-2 { width: 80px; height: 80px; top: 60%; right: 15%; animation-duration: 22s; animation-delay: -4s; }
.cs-shape-3 { width: 60px; height: 60px; bottom: 25%; left: 20%; animation-duration: 16s; animation-delay: -8s; }
.cs-shape-4 { width: 100px; height: 100px; top: 40%; right: 8%; animation-duration: 24s; animation-delay: -2s; }
.cs-shape-5 { width: 50px; height: 50px; top: 75%; left: 50%; animation-duration: 19s; animation-delay: -6s; }

@keyframes cs-float {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    25% { transform: translate(30px, -40px) scale(1.05); opacity: 0.8; }
    50% { transform: translate(-20px, 20px) scale(0.95); opacity: 0.5; }
    75% { transform: translate(40px, 30px) scale(1.02); opacity: 0.7; }
}

/* ========== Contenu principal ========== */
.cs-main {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 640px;
    padding: 2rem 1.5rem 5rem;
    text-align: center;
}

.cs-content {
    animation: cs-content-in 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

@keyframes cs-content-in {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cs-fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Logo (haut de page) ========== */
.cs-logo-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    animation: cs-logo-in 1s ease-out 0.4s both;
}

@keyframes cs-logo-in {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cs-logo {
    position: relative;
    z-index: 1;
    height: 72px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 4px 20px rgba(0, 0, 0, 0.6));
    animation: cs-logo-pulse 2.5s ease-in-out infinite;
}

@keyframes cs-logo-pulse {
    0%, 100% {
        transform: scale(1) translateY(0);
        filter: brightness(0) invert(1) drop-shadow(0 4px 20px rgba(0, 0, 0, 0.6));
    }
    50% {
        transform: scale(1.04) translateY(-3px);
        filter: brightness(0) invert(1) drop-shadow(0 8px 32px rgba(63, 142, 126, 0.5));
    }
}

.cs-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 200%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(63, 142, 126, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    animation: cs-glow-pulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes cs-glow-pulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* ========== Titre ========== */
.cs-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--cs-red);
    margin-bottom: 0.5rem;
    animation: cs-label-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

@keyframes cs-label-in {
    0% {
        opacity: 0;
        transform: translateY(12px);
        letter-spacing: 0.4em;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 0.2em;
    }
}

.cs-title {
    font-size: clamp(2.5rem, 7vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    white-space: nowrap;
    animation: cs-title-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}

@keyframes cs-title-in {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
        filter: blur(8px);
    }
    60% {
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.cs-title-accent {
    display: inline-block;
    background: linear-gradient(110deg, var(--cs-accent) 0%, var(--cs-orange) 50%, var(--cs-accent) 100%);
    background-size: 250% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: cs-shimmer 3s ease-in-out infinite;
    position: relative;
}

.cs-title-accent::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--cs-orange), transparent);
    border-radius: 2px;
    opacity: 0;
    animation: cs-accent-glow 3s ease-in-out 0.5s infinite;
}

@keyframes cs-shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

@keyframes cs-accent-glow {
    0%, 100% { opacity: 0; transform: scaleX(0.8); }
    50% { opacity: 0.8; transform: scaleX(1); }
}

.cs-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: var(--cs-text-muted);
    line-height: 1.5;
    margin-bottom: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    animation: cs-subtitle-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.85s both;
}

/* ========== Lien benin.bj (lien souligné élégant) ========== */
.cs-link-pill {
    position: relative;
    font-weight: 600;
    color: #ffe082;
    text-decoration: none;
    white-space: nowrap;
}

.cs-link-pill::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.15em;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ffb300, #ff6f00);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.25s ease-out;
}

.cs-link-pill:hover::after {
    transform: scaleX(1);
}

@keyframes cs-subtitle-in {
    0% {
        opacity: 0;
        transform: translateY(16px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Compte à rebours ========== */
.cs-countdown {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    animation: cs-countdown-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1s both;
}

@keyframes cs-countdown-in {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cs-countdown-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--cs-radius);
    padding: 1.25rem 1.5rem;
    min-width: 90px;
    box-shadow: var(--cs-shadow);
    transition: transform var(--cs-transition), border-color var(--cs-transition);
}

.cs-countdown-item {
    animation: cs-countdown-float 4s ease-in-out infinite;
}

.cs-countdown-item:nth-child(1) { animation-delay: 0s; }
.cs-countdown-item:nth-child(2) { animation-delay: 0.2s; }
.cs-countdown-item:nth-child(3) { animation-delay: 0.4s; }
.cs-countdown-item:nth-child(4) { animation-delay: 0.6s; }

.cs-countdown-item:hover {
    animation-play-state: paused;
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(63, 142, 126, 0.5);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

@keyframes cs-countdown-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.cs-countdown-value {
    display: block;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--cs-text);
    line-height: 1.2;
    min-height: 1.2em;
}

.cs-countdown-value .cs-digit {
    display: inline-block;
    transition: transform 0.2s ease;
}

.cs-countdown-value.tick .cs-digit {
    animation: cs-tick 0.4s ease;
}

@keyframes cs-tick {
    0% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.3); opacity: 0.5; }
    100% { transform: scaleY(1); opacity: 1; }
}

.cs-countdown-unit {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cs-text-soft);
    margin-top: 0.25rem;
}

/* ========== Footer ========== */
.cs-footer {
    position: relative;
    z-index: 2;
    padding: 1.25rem 1.5rem;
    text-align: center;
}

.cs-copyright {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--cs-text-soft);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.csopyright-name {
    color: var(--cs-text-muted);
    font-weight: 700;
}

.cs-email {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--cs-orange);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.cs-email:hover {
    color: var(--cs-orange-hover);
    text-decoration: underline;
}

/* ========== Responsive ========== */
@media (max-width: 480px) {
    .cs-logo {
        height: 56px;
    }

    .cs-title {
        white-space: normal;
    }

    .cs-countdown {
        gap: 0.75rem;
    }

    .cs-countdown-item {
        min-width: 72px;
        padding: 1rem 0.75rem;
    }
}
