.print_section {
    font-family: "Times New Roman", Times, serif;
    background: #f5f5f5;
    line-height: 1.2;
}

.print-container {
    width: 21cm;
    min-height: 29.7cm;
    margin: 1cm auto;
    padding: 1cm;
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
    page-break-after: always;
}

/* En-tête actions */
.action_buttons {
    position: sticky;
    top: 25px;
    display: flex;
    width: calc(100vw - 5rem);
    justify-content: space-between;
    gap: 10px;
    z-index: 10;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-back {
    background: #6c757d;
    color: white;
}

.btn-back:hover {
    background: #5a6268;
}

.btn-print {
    background: #28a745;
    color: white;
}

.btn-print:hover {
    background: #218838;
}

/* En-tête du document */
.document_header {
    display: grid;
    grid-template-columns: 150px 1fr 150px;
    align-items: start;
    gap: 20px;
    border-bottom: 3px double #333;
}

.logo_diocese {
    width: 125px;
    height: 125px;
    object-fit: contain;
}

.contact_info {
    text-align: center;
    padding: 10px 0 0 0;
}

.diocese_name {
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0;
    letter-spacing: 1px;
}

.paroisse_name {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0;
    color: #2c3e50;
}

.contact_details {
    font-size: 14px;
    color: #555;
    line-height: 1.2;
}

.contact_details strong {
    color: #333;
}

.contact_details a {
    color: #007bff;
    text-decoration: none;
}

/* Titre principal */
.document_title {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 10px 0 5px;
    color: #1a1a1a;
}

/* Référence du document */
.document_reference {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    background: #f8f9fa;
    border-radius: 5px;
}

.reference_item {
    font-size: 15px;
}

.reference_label {
    font-weight: normal;
    color: #666;
}

.reference_value {
    font-weight: bold;
    color: #333;
    margin-left: 5px;
}

.separator_line {
    border: none;
    border-top: 2px solid #333;
    margin: 5px 0 0 0;
}

/* Corps du document */
.document_body {
    margin: 5px 0;
}

.info_row {
    display: flex;
    align-items: baseline;
    margin: 5px 0;
    font-size: 14px;
}

.info_label {
    min-width: 180px;
    font-weight: 500;
    color: #555;
    padding-right: 10px;
}

.info_value {
    flex: 1;
    font-weight: 600;
    color: #000;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 2px;
}

.info_inline {
    display: inline;
    margin: 0 5px;
}

/* Sections spéciales */
.section_title {
    font-weight: bold;
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 10px;
    color: #2c3e50;
    border-left: 4px solid #007bff;
    padding-left: 10px;
}

.annotation_block {
    margin: 10px 0 0 0;
    padding: 8px;
    background: #f8f9fa;
    border-left: 4px solid #ffc107;
    border-radius: 3px;
}

.annotation_label {
    font-weight: bold;
    color: #856404;
}

.annotation_text {
    color: #333;
    line-height: 1.5;
}

/* Signature */
.signature_section {
    margin-top: 5px;
}

.signature_text {
    text-align: right;
    font-size: 15px;
    line-height: 1.5;
}

.signature_details,
.date_details {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-top: 10px;
}

.date_details {
    margin-top: 35px;
}

.signature_location,
.signature_date {
    font-weight: 500;
}

.certified_mention {
    font-style: italic;
    color: #666;
}

.signature_line {
    text-align: right;
    margin-top: 10px;
    font-style: italic;
    color: #666;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .print-container {
        width: 100%;
        margin: 0;
        padding: 1cm;
        box-shadow: none;
    }

    .document_header {
        grid-template-columns: 100px 1fr 100px;
        gap: 10px;
    }

    .logo_diocese {
        width: 100px;
        height: 100px;
    }

    .action_buttons {
        position: static;
        justify-content: center;
        margin-bottom: 20px;
    }
}

/* Impression */
@media print {
    body {
        background: white;
    }

    .print-container {
        width: 100%;
        margin: 0;
        padding: 1.5cm;
        box-shadow: none;
    }

    .action_buttons {
        display: none !important;
    }

    .separator_line {
        border-top: 1px solid #000;
    }

    .document_reference {
        background: transparent;
    }

    .annotation_block {
        background: transparent;
        border-left-color: #000;
    }
}

@page {
    size: A4;
    margin: 0;
}
