:root {
    --bg-top: #0a1a34;
    --bg-bottom: #122a4b;
    --surface: rgba(10, 26, 50, 0.86);
    --surface-soft: rgba(12, 33, 62, 0.72);
    --text: #f3f8ff;
    --text-soft: #c7d8f5;
    --line: rgba(255, 255, 255, 0.18);
    --accent: #ff9f1c;
    --accent-dark: #c96f00;
    --input-bg: #f8fbff;
    --input-text: #15243f;
    --shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Outfit", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 14% 18%, rgba(255, 159, 28, 0.15), transparent 34%),
        radial-gradient(circle at 82% 12%, rgba(95, 165, 255, 0.16), transparent 34%),
        linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

header {
    width: min(1000px, 96vw);
    height: 235px;
    margin-top: 20px;
    border-radius: 24px 24px 0 0;
    border: 3px solid var(--accent);
    border-bottom: none;
    box-shadow: var(--shadow);
    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;
}

#toute-section {
    width: min(1000px, 96vw);
    margin-bottom: 34px;
    border: 3px solid var(--accent);
    border-top: none;
    border-radius: 0 0 24px 24px;
    padding: 28px 14px;
    background: linear-gradient(160deg, rgba(7, 18, 36, 0.9), rgba(14, 40, 72, 0.86));
    box-shadow: var(--shadow);
}

#section-1,
#section-2,
#section-3 {
    width: min(560px, 100%);
    margin: 0 auto;
}

#section-1 {
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    margin: 0;
    font-family: "Sora", sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    letter-spacing: 0.4px;
}

.subtitle {
    margin: 10px auto 0;
    color: var(--text-soft);
    font-size: 1rem;
    max-width: 54ch;
}

#section-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.field-group {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-soft);
}

label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-soft);
}

input {
    min-height: 44px;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 10px 12px;
    background: var(--input-bg);
    color: var(--input-text);
    font-size: 1rem;
    font-family: inherit;
}

input:focus {
    outline: none;
    border-color: #5ea8ff;
}

#section-3 {
    text-align: center;
    margin-top: 14px;
}

#bouton {
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    min-width: 210px;
    font-family: "Sora", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1e1e1e;
    background: linear-gradient(180deg, #ffc977, var(--accent));
    box-shadow: 0 6px 0 var(--accent-dark);
    cursor: pointer;
    transition: transform 0.12s ease, filter 0.12s ease;
}

#bouton:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

#bouton:active {
    transform: translateY(2px);
    box-shadow: 0 3px 0 var(--accent-dark);
}

#resultat {
    margin-top: 14px;
    font-size: clamp(2rem, 5vw, 2.6rem);
    font-family: "Sora", sans-serif;
    color: #ffcf8f;
}

#attente {
    margin-top: 4px;
    margin-bottom: 6px;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text-soft);
}

footer {
    width: min(1000px, 96vw);
    margin-bottom: 18px;
    padding: 8px 12px;
    border-radius: 12px;
    border-top: 3px solid var(--accent);
    display: flex;
    justify-content: flex-end;
    background: rgba(11, 29, 55, 0.76);
}

#contact {
    margin: 0;
    padding: 6px 10px;
    border-radius: 8px;
    color: #d5e5ff;
    background: rgba(95, 165, 255, 0.22);
}

#contact a {
    color: #ffd092;
}

#contact a:hover {
    color: #ffe3be;
}

@media (max-width: 760px) {
    header {
        height: 165px;
        border-radius: 18px 18px 0 0;
    }

    #toute-section {
        border-radius: 0 0 18px 18px;
        padding: 18px 8px;
    }

    #section-2 {
        grid-template-columns: 1fr;
    }

    #bouton {
        width: 100%;
    }
}