/* =====================================================
   Styles pour la génération PDF (diplômes, certificats)
   Utilisé avec html2pdf.js
   Fichier: impression_diplome_photos_admises.php
   ===================================================== */

/* Conteneur principal PDF */
#content {
    width: 297mm;
    min-height: 210mm;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Page PDF format A4 paysage */
.pdf-page {
    width: 297mm;
    height: 210mm;
    position: relative;
    background: url('../graph/Degrade-Bleu-Blanc-Rouge-A4.jpg') no-repeat top left;
    background-size: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    padding: 5mm;
}

.page-content {
    width: 100%;
}

/* Bouton PDF */
.pdf-page button {
    padding: 10px 20px;
    font-size: 16px;
    margin: 20px;
    cursor: pointer;
}

/* Cache pour impression */
.no-print {
    display: none;
}

/* Empêcher les sauts de page internes non voulus */
.pdf-page .no-page-break {
    page-break-inside: avoid;
}

/* Positionnement titre de pages */
.page-title {
    text-align: center;
    margin-top: -25mm;
}

.page-title h1 {
    font-size: 24pt;
    font-weight: bold;
    color: black;
    margin: 0;
}

/* Positionnement logos */
.logos-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: 50px;
    margin-top: 10px;
}

.logo-item {
    text-align: center;
    flex: 1 1 0;
    max-width: 180px;
}

.logo-item img {
    width: 75px;
    height: auto;
    object-fit: contain;
}

.logo-item-GPRV img {
    width: 110px;
    height: auto;
    object-fit: contain;
    margin-top: 15px;
}

.logo-item p {
    margin-top: 5px;
    font-size: 12px;
    color: black;
}

/* Bloc de texte */
.text-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 5px;
}

.text-block p {
    margin: 5px 0;
    font-size: 16px;
    color: black;
    line-height: 0.8;
}

/* Conteneur d'image (redéfini pour PDF) */
.pdf-page .image-container {
    text-align: center;
    margin: 10px 0;
}

.responsive-image {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* Positionnement signature */
.signature-container {
    position: absolute;
    bottom: 10mm;
    right: 20mm;
    text-align: center;
}

.signature-image {
    width: 200px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.signature-text {
    font-size: 1.2em;
    margin-top: 8px;
}

/* Barre de progression */
#pdf-progress {
    width: 80%;
    height: 20px;
    appearance: none;
    -webkit-appearance: none;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
}

/* Pour Chrome, Safari et les navigateurs basés sur WebKit */
#pdf-progress::-webkit-progress-bar {
    background-color: #eee;
    border-radius: 5px;
}

#pdf-progress::-webkit-progress-value {
    background-color: green;
    border-radius: 5px;
}

/* Pour Firefox */
#pdf-progress::-moz-progress-bar {
    background-color: green;
    border-radius: 5px;
}
