:root {
    --bg-top: #24150f;
    --bg-mid: #3c261d;
    --bg-bottom: #5c3a2b;
    --cream: #fff4df;
    --cream-2: #fce8c9;
    --ink: #40291f;
    --ink-soft: #6c4c3a;
    --mint: #1f8b72;
    --mint-dark: #156755;
    --caramel: #c97824;
    --caramel-dark: #9c5a14;
    --line: rgba(255, 228, 182, 0.42);
    --glow: 0 16px 36px rgba(28, 15, 8, 0.4);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Manrope", sans-serif;
    color: var(--cream);
    background:
        radial-gradient(circle at 16% 16%, rgba(255, 188, 77, 0.16), transparent 34%),
        radial-gradient(circle at 86% 10%, rgba(31, 139, 114, 0.16), transparent 34%),
        linear-gradient(180deg, var(--bg-top), var(--bg-mid) 48%, var(--bg-bottom));
}

header {
    width: min(1100px, 96vw);
    height: 250px;
    margin-top: 20px;
    border-radius: 28px 28px 0 0;
    border: 3px solid var(--caramel);
    border-bottom: none;
    box-shadow: var(--glow);
    background-image:
        linear-gradient(to top, rgba(36, 22, 14, 0.5), rgba(36, 22, 14, 0.15)),
        url("../../assets/images/baniere.png");
    background-size: cover;
    background-position: center;
}

.cookie-page {
    width: min(1100px, 96vw);
    border: 3px solid var(--caramel);
    border-top: none;
    border-radius: 0 0 28px 28px;
    margin-bottom: 36px;
    padding: 26px 14px;
    background:
        linear-gradient(180deg, rgba(71, 46, 34, 0.92), rgba(84, 54, 39, 0.95));
    box-shadow: var(--glow);
}

.cookie-shell {
    width: min(760px, 100%);
    margin: 0 auto;
    border-radius: 20px;
    border: 1px solid var(--line);
    padding: 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 208, 128, 0.18), transparent 45%),
        linear-gradient(180deg, rgba(255, 244, 223, 0.94), rgba(251, 232, 199, 0.95));
}

.hero {
    text-align: center;
    margin-bottom: 18px;
}

.badge {
    display: inline-block;
    margin: 0 0 10px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff7eb;
    background: linear-gradient(180deg, #35a48b, var(--mint));
}

.titre {
    margin: 0;
    font-family: "Fraunces", serif;
    font-size: clamp(2rem, 5vw, 2.9rem);
    line-height: 1.05;
    color: var(--ink);
}

.intro {
    margin: 10px auto 0;
    max-width: 56ch;
    color: var(--ink-soft);
    font-weight: 600;
}

form {
    display: grid;
    gap: 14px;
}

.field-group {
    display: grid;
    gap: 6px;
}

label {
    color: var(--ink);
    font-size: 0.96rem;
    font-weight: 800;
}

input {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    border: 2px solid #ddc39c;
    background: #fffdf8;
    padding: 10px 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #452d1f;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus {
    outline: none;
    border-color: var(--mint);
    box-shadow: 0 0 0 3px rgba(31, 139, 114, 0.2);
}

.buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

button {
    border: none;
    border-radius: 12px;
    padding: 11px 16px;
    min-width: 160px;
    font-family: "Manrope", sans-serif;
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff8ef;
    cursor: pointer;
    transition: transform 0.1s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

.create-button {
    background: linear-gradient(180deg, #31a086, var(--mint));
    box-shadow: 0 5px 0 var(--mint-dark);
}

.display-button {
    background: linear-gradient(180deg, #db8b34, var(--caramel));
    box-shadow: 0 5px 0 var(--caramel-dark);
}

button:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

button:active {
    transform: translateY(2px);
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
}

button:focus-visible {
    outline: 3px solid #fff7e9;
    outline-offset: 2px;
}

.display-cookie {
    margin-top: 4px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
    gap: 10px;
}

.display-cookie p {
    margin: 0;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #dec19a;
    background: linear-gradient(180deg, #fff8eb, #f9e7ca);
    box-shadow: 0 6px 12px rgba(84, 53, 32, 0.18);
}

.cookie-info {
    color: #40291e;
    font-size: 0.93rem;
    font-weight: 700;
}

.cookie-info span {
    word-break: break-word;
}

.delete-cookie {
    text-align: right;
    cursor: pointer;
    margin-bottom: 4px;
}

footer {
    width: min(1100px, 96vw);
    margin-bottom: 18px;
    padding: 8px 12px;
    border-radius: 12px;
    border-top: 3px solid var(--caramel);
    display: flex;
    justify-content: flex-end;
    background: rgba(74, 48, 34, 0.76);
}

#contact {
    margin: 0;
    padding: 6px 10px;
    border-radius: 8px;
    color: #ffe1bc;
    background: rgba(255, 245, 226, 0.14);
}

#contact a {
    color: #ffc980;
}

#contact a:hover {
    color: #ffe0b8;
}

@media (max-width: 680px) {
    header {
        height: 165px;
        border-radius: 20px 20px 0 0;
    }

    .cookie-page {
        border-radius: 0 0 20px 20px;
        padding: 16px 8px;
    }

    .cookie-shell {
        padding: 14px 10px;
    }

    .buttons {
        display: grid;
        grid-template-columns: 1fr;
    }

    button {
        width: 100%;
        min-width: 0;
    }
}