/* RCCM - Style principal */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #333;
    /* Dégradé bleu sur TOUTES les pages comme rccm.cd */
    background: linear-gradient(180deg, 
        #ffffff 0%,
        #ffffff 10%,
        #ffffff 30%,
        #f5f5f5 50%,
        #6ba3c7 70%,
        #4a8ab5 90%,
        #4a8ab5 100%);
    background-attachment: scroll;
}

/* HEADER */
header {
    background: #fff;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

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

.logo { height: 500px; }
.separator { width: 4px; height: 50px; background: #0099CC; border-radius: 2px; }
.title h1 { font-size: 22px; color: #333; }
.title h2 { font-size: 18px; color: #333; }

/* MAIN */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* HOME - Message scanner */
.scan-box { text-align: center; }
.scan-box svg { margin-bottom: 20px; }
.scan-box p { font-size: 24px; color: #333; font-weight: 300; }

/* PAGE DOCUMENT */
.document-page {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    justify-content: flex-start;
    padding-top: 50px;
}

/* Titre du document */
.doc-title {
    text-align: center;
    font-size: 26px;
    font-weight: 300;
    color: #555;
    margin-bottom: 25px;
}

/* TABLEAU D'INFORMATIONS - Style rccm.cd */
.info-table {
    background: #fff;
    border: 1px solid #ddd;
    overflow: hidden;
    width: 100%;
    margin-bottom: 25px;
}

.info-table .row { 
    border-bottom: 1px solid #e5e5e5; 
}
.info-table .row:last-child { 
    border-bottom: none; 
}

.info-table .label {
    background: #f5f5f5;
    padding: 12px 20px;
    color: #0099CC;
    font-weight: 400;
    font-size: 14px;
}

.info-table .value {
    padding: 12px 20px;
    font-weight: 600;
    background: #fff;
    font-size: 14px;
    color: #333;
}

/* IMAGE DU DOCUMENT - Pleine largeur */
.photo-box { 
    width: 100%;
    margin-bottom: 5px;
}

.photo-box img {
    width: 100%;
    height: auto;
    display: block;
    border: 0px solid #ccc;
}

/* DOCUMENT NON TROUVÉ */
.not-found {
    background: #fff;
    border: 1px solid #ffcccc;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    width: 100%;
}
.not-found h3 { 
    color: #cc0000; 
    margin-bottom: 10px; 
    font-size: 20px;
}
.not-found p {
    color: #666;
}

/* FOOTER */
footer {
    background: transparent;
    padding: 15px;
    margin-top: auto;
}

footer p { 
    text-align: center; 
    color: #fff; 
    font-size: 14px; 
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

footer a { 
    color: #fff; 
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .header-content { 
        flex-direction: column; 
    }
    .title h1, .title h2 { 
        text-align: center; 
        font-size: 16px; 
    }
    .logo { 
        height: 50px; 
    }
    .doc-title { 
        font-size: 20px; 
    }
    .info-table .label, 
    .info-table .value { 
        padding: 10px 15px; 
        font-size: 13px; 
    }
    .scan-box p {
        font-size: 18px;
    }
}
