:root {
    --bg: #f5f3ef;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --text: #1f2a2b;
    --muted: #5f6e6f;
    --accent: #305c59;
    --accent-dark: #203f3d;
    --border: rgba(48, 92, 89, 0.12);
    --shadow: 0 18px 50px rgba(31, 42, 43, 0.08);
    --radius: 22px;
    --max: 1120px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.85), transparent 35%),
        linear-gradient(180deg, #eef3f2 0%, var(--bg) 48%, #efe9df 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(calc(100% - 2rem), var(--max));
    margin: 0 auto;
}

.narrow {
    max-width: 900px;
}

.hero {
    min-height: 92vh;
    display: flex;
    flex-direction: column;

    background:
        linear-gradient(180deg, rgba(20, 10, 0, 0.55), rgba(20, 10, 0, 0.75)),
        url('../assets/gourbit-pierre.jpg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: #fff;
}

.nav {
    width: min(calc(100% - 2rem), var(--max));
    margin: 0 auto;
    padding: 1.2rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    opacity: 0.92;
}

.admin-link {
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 0 6rem;
}

.eyebrow,
.section-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    opacity: 0.84;
    margin: 0 0 0.8rem;
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(2.4rem, 7vw, 5.2rem);
    line-height: 0.98;
    margin: 0;
    max-width: 10ch;
}

.subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255,255,255,0.9);
    max-width: 34rem;
    margin-top: 1rem;
}

.intro {
    max-width: 44rem;
    color: rgba(255,255,255,0.88);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-top: 0.8rem;
}

.hero-actions {
    margin-top: 1.6rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    padding: 0.95rem 1.25rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform .18s ease, opacity .18s ease, background .18s ease;
}

.button:hover {
    transform: translateY(-1px);
    background: var(--accent-dark);
}

.button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.button-secondary {
    background: #fff;
    color: var(--accent-dark);
}

.button-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    box-shadow: none;
}

.section {
    padding: 5rem 0;
}

.section-alt {
    background: rgba(255,255,255,0.42);
    border-top: 1px solid rgba(255,255,255,0.65);
    border-bottom: 1px solid rgba(48, 92, 89, 0.06);
}

.section-heading {
    margin-bottom: 2rem;
    max-width: 42rem;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    margin: 0 0 0.5rem;
}

.section-heading p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(240px, 1fr) );
    gap: 1rem;
}

.card {
    background: var(--surface);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: var(--radius);
    padding: 1.35rem;
    box-shadow: var(--shadow);
    min-height: 180px;
}

.card-icon {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.card p {
    margin: 0;
    line-height: 1.7;
    color: var(--text);
}

.checklist {
    display: grid;
    gap: 0.9rem;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    padding: 1rem 1.1rem;
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.check-item input {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--accent);
    flex: 0 0 auto;
}

.footer {
    border-top: 1px solid rgba(48, 92, 89, 0.08);
    padding: 2rem 0 3rem;
}

.footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.admin-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(255,255,255,.65), transparent 40%),
        linear-gradient(180deg, #eef2f1 0%, #f4eee5 100%);
}

.auth-wrapper {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.auth-card,
.panel {
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.78);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.auth-card {
    width: min(100%, 460px);
    padding: 2rem;
}

.auth-form,
.admin-form {
    display: grid;
    gap: 1rem;
}

.auth-form label,
.admin-form label {
    display: grid;
    gap: 0.45rem;
}

.auth-form span,
.admin-form span,
.hint {
    color: var(--muted);
    font-size: 0.95rem;
}

input[type="text"],
input[type="password"],
textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(48, 92, 89, 0.14);
    padding: 0.95rem 1rem;
    font: inherit;
    color: var(--text);
    background: #fff;
    outline: none;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
    border-color: rgba(48, 92, 89, 0.4);
    box-shadow: 0 0 0 4px rgba(48, 92, 89, 0.08);
}

textarea {
    resize: vertical;
    min-height: 160px;
}

.dashboard {
    padding: 2rem 0 4rem;
}

.dashboard-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

.dashboard-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.panel {
    padding: 1.4rem;
    margin-bottom: 1rem;
}

.panel h2 {
    margin-top: 0;
}

.alert {
    border-radius: 16px;
    padding: 0.95rem 1rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(69, 145, 98, 0.12);
    color: #25573b;
    border: 1px solid rgba(69, 145, 98, 0.2);
}

.alert-error {
    background: rgba(178, 73, 73, 0.11);
    color: #7a2c2c;
    border: 1px solid rgba(178, 73, 73, 0.18);
}

.text-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-dark);
}

@media (max-width: 720px) {
    .nav,
    .dashboard-top,
    .footer .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        padding-top: 3rem;
    }
}
