@import url("./color.css");
@import url("./font.css");

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

body {
    min-height: 100vh;
    background: var(--fond);
    color: var(--text-principal);
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    padding: 20px;
    border-bottom: 1px solid rgba(228, 235, 232, 0.8);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
}

nav .logo,
nav .onglets,
nav .devis-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

nav .logo img {
    width: 110px;
    height: 40px;
}

nav .onglets {
    gap: 10px;
}

nav .onglets a {
    padding: 10px 20px;
    border-radius: 20px;
    color: var(--vert-sarcell-800);
    font: 500 1rem "Fredoka", sans-serif;
    text-decoration: none;
}

nav .devis-button a {
    padding: 16px 20px;
    border-radius: 999px;
    background: var(--vert-sarcell-800);
    box-shadow: 5px 5px var(--box-shadow);
    color: var(--white);
    font: 600 1rem "Fredoka", sans-serif;
    text-decoration: none;
}

.burger {
    display: none;
    border: 0;
    background: transparent;
    color: var(--text-principal);
    font-size: 1.65rem;
    cursor: pointer;
}

.legal-page {
    width: min(92%, 960px);
    margin: 0 auto;
    padding: 150px 0 90px;
}

.legal-hero {
    margin-bottom: 52px;
    padding: 42px;
    border: 2px solid var(--box-shadow);
    border-radius: 24px;
    background: var(--vert-sarcell-50);
    box-shadow: 8px 8px var(--box-shadow);
}

.legal-hero span {
    color: var(--vert-sarcell-700);
    font: 700 0.82rem "Hanken Grotesk", sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-hero h1 {
    margin: 12px 0 14px;
    font: 700 clamp(2.4rem, 6vw, 4.5rem)/1 "Fredoka", sans-serif;
}

.legal-hero p {
    max-width: 700px;
    color: var(--text-secondaire);
    font: 500 1.1rem/1.6 "Hanken Grotesk", sans-serif;
}

.legal-content {
    display: grid;
    gap: 38px;
}

.legal-content section {
    padding-bottom: 34px;
    border-bottom: 1px solid var(--border);
}

.legal-content h2 {
    margin-bottom: 14px;
    color: var(--vert-sarcell-900);
    font: 650 1.65rem "Fredoka", sans-serif;
}

.legal-content h3 {
    margin: 20px 0 8px;
    font: 650 1.1rem "Fredoka", sans-serif;
}

.legal-content p,
.legal-content li {
    color: var(--text-secondaire);
    font: 400 1rem/1.75 "Hanken Grotesk", sans-serif;
}

.legal-content ul {
    margin: 10px 0 0 22px;
}

.legal-content a {
    color: var(--vert-sarcell-700);
    font-weight: 700;
}

.identity-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 28px;
    padding: 22px;
    border-radius: 16px;
    background: var(--fond2);
}

.identity-card p {
    display: flex;
    flex-direction: column;
}

.identity-card strong {
    color: var(--text-principal);
}

.legal-note {
    padding: 18px 20px;
    border-left: 4px solid var(--vert-sarcell-500);
    border-radius: 8px;
    background: var(--vert-sarcell-50);
}

.withdrawal-template {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--fond2);
}

footer {
    padding: 42px max(5vw, 24px) 24px;
    background: var(--vert-sarcell-900);
    color: var(--white);
}

footer .footer-row {
    display: flex;
    justify-content: space-between;
    width: min(100%, 1050px);
    margin: 0 auto 30px;
    gap: 40px;
}

footer .footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 30%;
}

footer img {
    width: 110px;
    height: auto;
}

footer h2 {
    font: 600 1.2rem "Fredoka", sans-serif;
}

footer p,
footer a {
    color: var(--border);
    font: 400 0.95rem/1.5 "Hanken Grotesk", sans-serif;
    text-decoration: none;
}

footer .footer-footer {
    display: flex;
    justify-content: space-between;
    width: min(100%, 1050px);
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(228, 235, 232, 0.25);
}

.success-card {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.success-card .actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.success-card .actions a {
    padding: 14px 20px;
    border: 2px solid var(--box-shadow);
    border-radius: 999px;
    background: var(--white);
    box-shadow: 4px 4px var(--box-shadow);
    color: var(--vert-sarcell-900);
    font: 700 1rem "Hanken Grotesk", sans-serif;
    text-decoration: none;
}

@media (max-width: 768px) {
    nav {
        justify-content: space-between;
        padding: 14px 16px;
    }

    nav .logo,
    nav .devis-button {
        width: auto;
    }

    nav .logo img {
        width: 90px;
        height: 32px;
    }

    nav .devis-button {
        display: none;
    }

    nav .onglets {
        position: fixed;
        top: 61px;
        left: 0;
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 18px;
        border-bottom: 1px solid var(--border);
        background: var(--white);
    }

    nav .onglets.open {
        display: flex;
    }

    nav .onglets a {
        width: 100%;
        text-align: center;
    }

    .burger {
        display: block;
    }

    .legal-page {
        padding-top: 100px;
    }

    .legal-hero {
        padding: 28px 22px;
    }

    .identity-card {
        grid-template-columns: 1fr;
    }

    footer .footer-row,
    footer .footer-footer {
        flex-direction: column;
        gap: 22px;
    }

    footer .footer-column {
        width: 100%;
    }
}
