:root {
    --bg-top: #0f1730;
    --bg-bottom: #1e3a66;
    --panel: rgba(12, 26, 52, 0.9);
    --panel-soft: rgba(18, 38, 72, 0.76);
    --line: rgba(132, 190, 255, 0.34);
    --text: #f4f8ff;
    --text-soft: #c7d7f1;
    --accent: #ffae42;
    --accent-dark: #cc7e17;
    --glow: 0 16px 36px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    padding: 20px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Exo 2", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 14% 18%, rgba(255, 174, 66, 0.18), transparent 34%),
        radial-gradient(circle at 84% 10%, rgba(105, 196, 255, 0.2), transparent 36%),
        linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

header {
    width: min(1040px, 96vw);
    height: 240px;
    border-radius: 24px 24px 0 0;
    border: 3px solid var(--accent);
    border-bottom: none;
    box-shadow: var(--glow);
    background-image:
        linear-gradient(to top, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.08)),
        url("../../assets/images/baniere.png");
    background-size: cover;
    background-position: center;
}

#section-1 {
    width: min(1040px, 96vw);
    margin-bottom: 34px;
    border: 3px solid var(--accent);
    border-top: none;
    border-radius: 0 0 24px 24px;
    padding: 24px 14px 28px;
    background: linear-gradient(155deg, rgba(8, 19, 40, 0.92), rgba(14, 36, 70, 0.9));
    box-shadow: var(--glow);
}

.hero {
    text-align: center;
    margin-bottom: 16px;
}

.hero h1 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    letter-spacing: 0.02em;
}

.hero p {
    margin: 8px auto 0;
    max-width: 58ch;
    color: var(--text-soft);
    font-size: 1rem;
}

.tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.tab {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    padding: 10px 8px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: transform 0.1s ease, filter 0.12s ease, border-color 0.12s ease;
}

.tab:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.tab.active {
    border-color: var(--accent);
    color: #1f1f1f;
    background: linear-gradient(180deg, #ffcd87, var(--accent));
    font-weight: 700;
}

.tab-content {
    display: none;
    padding: 8px 0 2px;
}

.tab-content.active {
    display: block;
}

h2 {
    margin: 2px 0 12px;
    text-align: center;
    font-family: "Space Grotesk", sans-serif;
}

.box {
    width: min(560px, 100%);
    min-height: 320px;
    margin: 0 auto;
    padding: 24px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--panel);
    display: grid;
    place-items: center;
    gap: 14px;
}

#myChrono,
#time-remaining,
#current-hour {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.1rem, 8vw, 4rem);
    letter-spacing: 0.04em;
    color: #ffd9a4;
}

#current-date {
    color: var(--text-soft);
    font-size: clamp(1rem, 2.8vw, 1.3rem);
}

.controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

button {
    border: none;
    border-radius: 10px;
    min-width: 140px;
    padding: 10px 16px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1f1f1f;
    background: linear-gradient(180deg, #ffcd87, var(--accent));
    box-shadow: 0 6px 0 var(--accent-dark);
    cursor: pointer;
    transition: transform 0.1s ease, filter 0.12s ease;
}

button:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

button:active {
    transform: translateY(2px);
    box-shadow: 0 3px 0 var(--accent-dark);
}

input {
    width: min(220px, 100%);
    min-height: 52px;
    border-radius: 12px;
    border: 2px solid transparent;
    background: #f8fbff;
    color: #17213a;
    text-align: center;
    font-family: "Space Grotesk", sans-serif;
    font-size: 2rem;
    font-weight: 700;
}

input:focus {
    outline: none;
    border-color: #6bb8ff;
}

.date-hours {
    display: grid;
    justify-items: center;
    gap: 12px;
    width: min(380px, 100%);
    padding: 20px 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
}

footer {
    width: min(1040px, 96vw);
    margin-bottom: 18px;
    padding: 8px 12px;
    border-radius: 12px;
    border-top: 3px solid var(--accent);
    display: flex;
    justify-content: flex-end;
    background: rgba(10, 25, 49, 0.78);
}

#contact {
    margin: 0;
    padding: 6px 10px;
    border-radius: 8px;
    color: #d8e6ff;
    background: rgba(107, 184, 255, 0.2);
}

#contact a {
    color: #ffd6a0;
}

#contact a:hover {
    color: #ffebcd;
}

@media (max-width: 700px) {
    header {
        height: 165px;
        border-radius: 18px 18px 0 0;
    }

    #section-1 {
        border-radius: 0 0 18px 18px;
        padding: 16px 8px 20px;
    }

    .tabs {
        grid-template-columns: 1fr;
    }

    .box {
        min-height: 280px;
        padding: 18px 10px;
    }

    button {
        width: 100%;
    }
}