:root {
    --bg: #f6f4fb;
    --card: #ffffff;
    --text: #12302b;
    --muted: #6b7280;
    --green: #1fa37a;
    --light-green: #e7f8f1;
    --blue: #e8f1ff;
    --red: #eb2f4b;
    --yellow: #f59e0b;
    --border: #e5e7eb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 24px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
}

.breadcrumb {
    color: var(--muted);
    margin: 0 0 10px;
}

h1 {
    margin: 0;
    font-size: 42px;
    font-family: Georgia, serif;
}

h2 {
    margin: 0 0 22px;
    font-size: 22px;
    font-family: Georgia, serif;
}

.subtitle {
    color: var(--muted);
}

.rgpd-badge {
    background: var(--light-green);
    color: var(--green);
    border: 1px solid #b8ead5;
    border-radius: 14px;
    padding: 14px 18px;
    font-weight: 800;
    text-align: right;
}

.rgpd-badge span {
    color: #31705c;
    font-weight: 500;
    font-size: 13px;
}

.grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    margin-bottom: 24px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 22px;
}

label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 700;
}

input,
select {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 13px;
    font-size: 15px;
}

.dropzone {
    border: 2px dashed #22a78a;
    background: #effdfa;
    border-radius: 18px;
    padding: 52px 20px;
    text-align: center;
    margin-bottom: 22px;
}

.upload-icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    background: #c9f8de;
    border-radius: 14px;
    color: var(--green);
    font-size: 28px;
    margin-bottom: 16px;
}

.dropzone p {
    margin: 8px 0;
    color: var(--muted);
}

.dropzone small {
    color: #8b95a1;
}

button {
    border: none;
    background: var(--green);
    color: white;
    padding: 14px 18px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
}

button:hover {
    filter: brightness(0.95);
}

.summary {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}

.summary div {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
}

.summary span {
    display: block;
    color: var(--muted);
    margin-bottom: 6px;
}

.summary strong {
    font-size: 32px;
}

.info-box {
    border-radius: 12px;
    padding: 14px;
    margin-top: 12px;
    font-weight: 600;
}

.info-box.blue {
    background: var(--blue);
    color: #225ea8;
}

.info-box.green {
    background: var(--light-green);
    color: #166d52;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

th {
    color: var(--muted);
    font-size: 14px;
}

.tag {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 800;
}

.tag.critical {
    background: #ffe1e7;
    color: var(--red);
}

.tag.warning {
    background: #fff3d8;
    color: var(--yellow);
}

.tag.info {
    background: #e0f2fe;
    color: #0369a1;
}

@media (max-width: 840px) {
    .header,
    .grid,
    .form-row {
        grid-template-columns: 1fr;
        display: grid;
    }

    h1 {
        font-size: 32px;
    }

    .rgpd-badge {
        text-align: left;
    }
    .actions {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 18px;
    }

    .button-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--green);
        color: white;
        text-decoration: none;
        padding: 12px 16px;
        border-radius: 10px;
        font-weight: 800;
    }

    .button-link:hover {
        filter: brightness(0.95);
    } 
    .danger-button {
        border: none;
        background: #eb2f4b;
        color: white;
        padding: 10px 14px;
        border-radius: 10px;
        font-weight: 800;
        cursor: pointer;
    }

    .danger-button:hover {
        filter: brightness(0.95);
    }

    .actions {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 12px;
        margin-bottom: 18px;
    }

    .actions form {
        margin: 0;
    }  
    .file-input {
        display: inline-flex;
        margin-top: 18px;
        cursor: pointer;
    }

    .file-input input {
        display: none;
    }

    .file-input span {
        display: inline-flex;
        background: white;
        color: var(--green);
        border: 1px solid #22a78a;
        border-radius: 10px;
        padding: 12px 16px;
        font-weight: 800;
    }  
    .language-switch {
        display: flex;
        gap: 8px;
        justify-content: flex-end;
        margin-bottom: 12px;
    }

    .language-switch a {
        text-decoration: none;
        border: 1px solid var(--border);
        background: white;
        color: var(--green);
        padding: 8px 10px;
        border-radius: 8px;
        font-weight: 800;
    }

    .language-switch a:hover {
        background: var(--light-green);
    }         
}