:root {
    --hospital-green: #1f5f3a;
    --hospital-green-dark: #123823;
    --hospital-green-soft: #2f7a50;
    --parchment: #efe1bb;
    --parchment-deep: #d1b27a;
    --ink: #2a2115;
    --border: rgba(76, 52, 25, 0.55);
    --shadow: 0 18px 42px rgba(26, 19, 10, 0.24);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #f7f4ed 0%, #edf3ee 44%, #f3efe7 100%);
    color: var(--ink);
    font-family: 'Cormorant Garamond', serif;
}

img {
    max-width: 100%;
    display: block;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 14px 18px;
    backdrop-filter: blur(10px);
    background: linear-gradient(180deg, rgba(247, 245, 239, 0.96), rgba(232, 240, 233, 0.92));
    border-bottom: 1px solid rgba(22, 62, 38, 0.16);
    box-shadow: 0 8px 24px rgba(17, 43, 29, 0.08);
}

.header-shell {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--hospital-green-dark);
    min-width: 0;
}

.brand img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex: 0 0 auto;
}

.brand span {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 700;
    max-width: 520px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-tab {
    text-decoration: none;
    color: #f8f6ef;
    background: linear-gradient(180deg, var(--hospital-green-soft), var(--hospital-green-dark));
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 12px 20px;
    border-radius: 999px;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    letter-spacing: 0.03em;
    box-shadow: 0 8px 20px rgba(20, 49, 31, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.nav-tab:hover,
.nav-tab.active {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(20, 49, 31, 0.26);
    opacity: 1;
}

.hero-banner {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 18px 18px 0;
}

.hero-banner img {
    width: min(100%, 1400px);
    height: auto;
    object-fit: contain;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.content-wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px 18px 60px;
}

.parchment-card {
    position: relative;
    margin-bottom: 24px;
    padding: 28px 28px 26px;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.34), transparent 24%),
        radial-gradient(circle at 82% 78%, rgba(160, 111, 49, 0.12), transparent 22%),
        linear-gradient(180deg, rgba(251, 244, 221, 0.98), rgba(237, 221, 184, 0.97));
    overflow: hidden;
}

.parchment-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(0deg, transparent 0 10px, rgba(120, 82, 29, 0.025) 10px 11px),
        repeating-linear-gradient(90deg, transparent 0 13px, rgba(120, 82, 29, 0.02) 13px 14px);
    mix-blend-mode: multiply;
}

.parchment-card > * {
    position: relative;
    z-index: 1;
}

h1,
h2,
h3 {
    margin: 0 0 12px;
    font-family: 'Cinzel', serif;
    color: var(--hospital-green-dark);
}

h1 {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

h2 {
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    margin-top: 22px;
}

h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

p {
    margin: 0 0 16px;
    font-size: 1.22rem;
    line-height: 1.5;
}

.faq-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.faq-item {
    padding: 16px 0;
    border-top: 1px solid rgba(81, 58, 30, 0.26);
}

.faq-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.cta-card h2 {
    margin-top: 0;
}

.cta-card p {
    margin-bottom: 0;
}

.knight-hand {
    font-size: 1.5rem;
}

@media (max-width: 900px) {
    .header-shell,
    .cta-card {
        flex-direction: column;
        align-items: stretch;
    }

    .brand {
        justify-content: center;
    }

    .brand span {
        max-width: none;
        text-align: center;
    }

    .main-nav {
        justify-content: center;
    }

    .cta-button {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 12px;
    }

    .brand img {
        width: 52px;
        height: 52px;
    }

    .brand span {
        font-size: 0.88rem;
    }

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

    .parchment-card {
        padding: 22px 18px;
    }

    p {
        font-size: 1.12rem;
    }
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    flex-wrap: wrap;
}

.cta-copy {
    flex: 1 1 420px;
}

.cta-knock {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 18px 28px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--hospital-green-soft), var(--hospital-green-dark));
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 20px rgba(20, 49, 31, 0.16);
    color: #f8f6ef;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.cta-knock:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(20, 49, 31, 0.26);
    opacity: 1;
}

.cta-knock-icon {
    width: 54px;
    height: 54px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 10px;
    border: 1px solid rgba(95, 58, 18, 0.45);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
    flex: 0 0 auto;
}

.cta-knock span {
    display: inline-block;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .cta-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-action {
        width: 100%;
    }

    .cta-knock {
        width: 100%;
        justify-content: center;
    }
}

.form-page {
    width: min(1100px, calc(100% - 48px));
    margin: 56px auto 80px;
}

.form-card {
    padding: 38px 32px;
}

.form-intro {
    margin: 0 0 24px;
    color: #4d4a40;
    font-size: 1.08rem;
    line-height: 1.8;
}

.form-success,
.form-errors {
    margin: 0 0 24px;
    padding: 16px 18px;
    border-radius: 16px;
    font-size: 0.98rem;
    line-height: 1.6;
}

.form-success {
    background: rgba(36, 107, 63, 0.12);
    border: 1px solid rgba(36, 107, 63, 0.26);
    color: #1b4f33;
}

.form-errors {
    background: rgba(140, 34, 34, 0.10);
    border: 1px solid rgba(140, 34, 34, 0.24);
    color: #7a1f1f;
}

.form-section + .form-section {
    margin-top: 34px;
}

.form-section h2 {
    margin: 0 0 18px;
    color: #184b34;
    font-size: 1.7rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-grid-spaced {
    margin-top: 24px;
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-field label,
.upload-box label {
    display: block;
    margin-bottom: 8px;
    color: #184b34;
    font-weight: 700;
    font-size: 1rem;
}

.osl-input,
.osl-select,
.osl-textarea,
.osl-file-input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(24, 75, 52, 0.18);
    background: rgba(255, 252, 243, 0.88);
    color: #2f2a22;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
}

.osl-textarea {
    min-height: 120px;
    resize: vertical;
}

.osl-input:focus,
.osl-select:focus,
.osl-textarea:focus,
.osl-file-input:focus {
    outline: none;
    border-color: rgba(31, 106, 66, 0.55);
    box-shadow: 0 0 0 4px rgba(31, 106, 66, 0.12);
}

.choice-group ul,
.inline-radio-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.choice-group li,
.inline-radio-group li {
    margin: 0 0 12px;
}

.choice-group label,
.inline-radio-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #2f2a22;
    line-height: 1.6;
    cursor: pointer;
}

.inline-radio-group ul {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.upload-box {
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(24, 75, 52, 0.14);
    background: rgba(255, 251, 240, 0.66);
}

.upload-help,
.form-legal {
    color: #5c564a;
    font-size: 0.95rem;
    line-height: 1.7;
}

.upload-help {
    margin-top: 10px;
}

.form-actions {
    margin-top: 30px;
}

.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 16px 28px;
    border-radius: 999px;
    border: 1px solid rgba(17, 74, 49, 0.28);
    background: linear-gradient(180deg, #3e875a 0%, #1f6a42 100%);
    color: #f6f0df;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 24px rgba(22, 57, 39, 0.24);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.form-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(22, 57, 39, 0.28);
    filter: brightness(1.03);
}

.form-legal {
    margin-top: 24px;
}

.field-errors {
    margin-top: 8px;
    color: #8a2323;
    font-size: 0.92rem;
}

@media (max-width: 900px) {
    .form-grid,
    .upload-grid {
        grid-template-columns: 1fr;
    }

    .form-page {
        width: min(100% - 24px, 1000px);
        margin: 28px auto 52px;
    }

    .form-card {
        padding: 24px 18px;
    }
}

.parchment-title-banner {
    background: url("/static/img/parchemin-titre.png") center center / contain no-repeat;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 120px;
    margin-bottom: 8px;
}

.parchment-title-banner h1 {
    margin: 0;
    max-width: 900px;
    text-align: center;
    font-family: "Uncial Antiqua", "Cinzel", serif;
    font-size: clamp(1.9rem, 3vw, 3.1rem);
    line-height: 1.25;
    color: #2b1d0f;
    text-shadow: 0 1px 0 rgba(255, 244, 210, 0.35);
}

.dossiers-intro {
    text-align: center;
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    margin: 12px 0 28px;
    line-height: 1.8;
    color: #3d4038;
}

.confirmation-card {
    max-width: 760px;
    margin: 56px auto 80px;
    text-align: center;
}

.confirmation-card h1 {
    margin-bottom: 18px;
}

.confirmation-card p {
    margin-bottom: 16px;
}

.inline-tab {
    display: inline-flex;
    margin-top: 12px;
}

.dossiers-card {
    margin-top: 24px;
}

.dossiers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.pdf-dossier {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    border-radius: 22px;
    text-decoration: none;
    background:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0) 24%),
        repeating-linear-gradient(
            0deg,
            rgba(120, 96, 52, 0.025) 0px,
            rgba(120, 96, 52, 0.025) 1px,
            transparent 1px,
            transparent 18px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(120, 96, 52, 0.02) 0px,
            rgba(120, 96, 52, 0.02) 1px,
            transparent 1px,
            transparent 18px
        ),
        linear-gradient(180deg, #f7f1df 0%, #efe5cb 100%);
    border: 1px solid rgba(120, 88, 38, 0.18);
    box-shadow:
        0 10px 28px rgba(28, 43, 33, 0.08),
        inset 0 1px 0 rgba(255, 250, 235, 0.55);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pdf-dossier:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(28, 43, 33, 0.14);
    border-color: rgba(120, 88, 38, 0.30);
}

.pdf-dossier-icon {
    width: 82px;
    height: 82px;
    object-fit: contain;
    flex: 0 0 auto;
}

.pdf-dossier-title {
    font-family: "Cinzel", serif;
    font-size: 1.2rem;
    line-height: 1.5;
    color: #184b34;
    font-weight: 700;
}

@media (max-width: 900px) {
    .dossiers-grid {
        grid-template-columns: 1fr;
    }

    .pdf-dossier {
        padding: 18px 20px;
    }

    .pdf-dossier-icon {
        width: 68px;
        height: 68px;
    }

    .pdf-dossier-title {
        font-size: 1.05rem;
    }
}

.parchment-title-banner {
    background: url("/static/img/parchemin-titre.png") center center / contain no-repeat;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 120px;
    margin-bottom: 8px;
}

.parchment-title-banner h1 {
    margin: 0;
    max-width: 900px;
    text-align: center;
    font-family: "Cinzel", serif;
    font-size: clamp(1.9rem, 3vw, 3.1rem);
    line-height: 1.2;
    color: #2b1d0f;
    text-shadow: 0 1px 0 rgba(255, 244, 210, 0.35);
}


