/* =============================================================
   STUDIUM REFORMATORUM — DIPLÔME HONORAIRE
   ============================================================= */

/* AVERTISSEMENT LÉGAL */
.avertissement-legal {
    background: linear-gradient(135deg, #fff8e8 0%, #faf0d8 100%);
    border: 2px solid #d4471f;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(212, 71, 31, 0.12);
}
.avertissement-legal h2 {
    color: #9b1c1c;
    margin-top: 0;
    font-size: 1.15rem;
    border-bottom: 1px dashed rgba(155, 28, 28, 0.3);
    padding-bottom: 0.5rem;
}
.avertissement-legal p {
    font-size: 0.94rem;
    line-height: 1.6;
    margin: 0.7rem 0;
}
.avertissement-legal .mini-mention {
    font-style: italic;
    font-size: 0.85rem;
    color: #6b5544;
    margin-top: 1rem;
    text-align: center;
}

/* STATUT */
.apercu-statut {
    background: linear-gradient(135deg, #ffffff 0%, #faf6ec 100%);
    border: 1px solid #d4c8a8;
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
}
.apercu-statut h3 {
    color: #9b1c1c;
    margin: 0 0 0.5rem 0;
}
.apercu-statut .chargement {
    font-style: italic;
    color: #6b5544;
    text-align: center;
}

/* CYCLES */
.cycles-grille {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.cycle-carte {
    background: linear-gradient(135deg, #ffffff 0%, #faf6ec 100%);
    border: 2px solid #d4c8a8;
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}
.cycle-carte:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(155, 28, 28, 0.18);
    border-color: #e8a532;
}
.cycle-en-tete h3 {
    color: #9b1c1c;
    margin: 0 0 0.3rem 0;
    font-size: 1.3rem;
}
.cycle-latin {
    color: #6b5544;
    font-style: italic;
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
}
.cycle-meta {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.4rem 0.8rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}
.cycle-meta dt {
    font-weight: 600;
    color: #6b5544;
    font-size: 0.88rem;
}
.cycle-meta dd {
    margin: 0;
    font-size: 0.9rem;
    color: #3a2820;
}
.cycle-bouton {
    background: linear-gradient(135deg, #9b1c1c 0%, #c44b1a 100%);
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s;
    margin-top: auto;
    width: 100%;
}
.cycle-bouton:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(155, 28, 28, 0.3);
    filter: brightness(1.08);
}
.cycle-bouton:disabled {
    background: #c8c1a8;
    cursor: not-allowed;
    opacity: 0.6;
}

/* PARCHEMIN */
.parchemin-conteneur {
    margin: 2rem 0;
    overflow-x: auto;
    padding: 1rem;
}

.parchemin {
    background: 
        radial-gradient(ellipse at top left, rgba(212, 165, 50, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(212, 71, 31, 0.10) 0%, transparent 50%),
        linear-gradient(135deg, #fdf5e6 0%, #f5e8c8 50%, #fdf5e6 100%);
    border: 12px double #6b4423;
    padding: 3rem 2.5rem;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Garamond', 'Times New Roman', serif;
    color: #3a2820;
    text-align: center;
    position: relative;
    box-shadow: 0 12px 32px rgba(58, 40, 32, 0.25);
    min-height: 600px;
    page-break-inside: avoid;
}

/* Coins ornementaux */
.parchemin::before,
.parchemin::after {
    content: '⚜';
    position: absolute;
    color: #9b1c1c;
    font-size: 1.8rem;
    opacity: 0.6;
}
.parchemin::before {
    top: 1rem;
    left: 1.5rem;
}
.parchemin::after {
    bottom: 1rem;
    right: 1.5rem;
}

.parchemin-en-tete {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.95rem;
    color: #9b1c1c;
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.parchemin-sceau {
    font-size: 2.5rem;
    color: #9b1c1c;
    margin: 0.8rem 0;
    letter-spacing: 0.5rem;
}
.parchemin-titre {
    font-family: 'Garamond', 'Times New Roman', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #9b1c1c;
    margin: 1.2rem 0;
    font-style: italic;
    letter-spacing: 0.05em;
}
.parchemin-cycle {
    font-size: 1.3rem;
    font-weight: 600;
    color: #6b4423;
    margin: 1rem 0;
    letter-spacing: 0.1em;
}
.parchemin-mention {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 1.5rem 1rem;
    font-style: italic;
}
.parchemin-nom {
    font-family: 'Garamond', 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #3a2820;
    margin: 1.5rem 0;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.3em;
}
.parchemin-detail {
    font-size: 1rem;
    line-height: 1.7;
    margin: 1rem 0;
}
.parchemin-devise {
    font-size: 1.15rem;
    color: #9b1c1c;
    margin: 1.5rem 0;
    font-style: italic;
    letter-spacing: 0.05em;
}
.parchemin-signature {
    margin-top: 2.5rem;
    border-top: 1px dashed #6b4423;
    padding-top: 1.2rem;
}
.parchemin-signature-nom {
    font-style: italic;
    font-size: 1.05rem;
    font-weight: 600;
    color: #3a2820;
}
.parchemin-signature-fonction {
    font-size: 0.9rem;
    color: #6b5544;
    margin-top: 0.2rem;
}
.parchemin-mention-legale {
    margin-top: 2rem;
    padding: 0.8rem;
    background: rgba(155, 28, 28, 0.05);
    border: 1px solid rgba(155, 28, 28, 0.2);
    border-radius: 4px;
    font-size: 0.75rem;
    color: #6b5544;
    font-style: italic;
    line-height: 1.4;
}
.parchemin-date {
    font-size: 0.95rem;
    color: #6b5544;
    margin-top: 1rem;
    font-style: italic;
}

.parchemin-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.parchemin-actions button {
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s;
}
.btn-principal {
    background: linear-gradient(135deg, #9b1c1c 0%, #c44b1a 100%);
    color: white;
    border: none;
}
.btn-principal:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(155, 28, 28, 0.3);
}
.btn-tertiaire {
    background: transparent;
    color: #6b5544;
    border: 2px solid #d4c8a8;
}
.btn-tertiaire:hover {
    border-color: #9b1c1c;
    color: #9b1c1c;
}

/* BLOC ABSENT */
.bloc-absent {
    background: linear-gradient(135deg, #fff8e8 0%, #f9e5c8 100%);
    border: 2px solid #e8a532;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}
.bloc-absent h2 {
    color: #9b1c1c;
    margin-top: 0;
}
.bloc-absent .btn-principal {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    text-decoration: none;
    margin-top: 1rem;
    border-radius: 6px;
}

/* IMPRESSION */
@media print {
    .sidebar,
    nav,
    header.bandeau-page,
    .avertissement-legal,
    .bloc-statut,
    .bloc-cycle,
    .bloc-absent,
    .parchemin-actions,
    footer,
    .bouton-saut {
        display: none !important;
    }
    .parchemin {
        box-shadow: none;
        page-break-inside: avoid;
        margin: 0 auto;
    }
    body {
        background: white;
    }
    main, .content, .layout {
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
    }
}

/* RESPONSIVE */
@media (max-width: 700px) {
    .parchemin {
        padding: 2rem 1.2rem;
    }
    .parchemin-titre {
        font-size: 1.8rem;
    }
    .parchemin-nom {
        font-size: 1.5rem;
    }
    .cycles-grille {
        grid-template-columns: 1fr;
    }
}
