/* Styles pour la plateforme de vérification MINEPIA */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #006A4E 0%, #008B5A 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 60px;
    height: 60px;
}

.logo-text h1 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 2px;
}

.logo-text small {
    font-size: 0.8rem;
    opacity: 0.8;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav a:hover,
.nav a.active {
    background-color: rgba(255,255,255,0.2);
}

/* Main content */
.main {
    flex: 1;
    padding: 2rem 0;
}

.page-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-bottom: 3px solid #006A4E;
}

.page-header h2 {
    color: #006A4E;
    font-size: 2rem;
    text-align: center;
}

/* Cards */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 5px solid #006A4E;
}

.card-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.card-header h3 {
    color: #006A4E;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-header p {
    color: #666;
    font-size: 1rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #006A4E;
    box-shadow: 0 0 0 3px rgba(0,106,78,0.1);
}

.form-control.invalid {
    border-color: #e74c3c;
}

.format-info {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #006A4E 0%, #008B5A 100%);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,106,78,0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

.btn-block {
    width: 100%;
}

/* Search form */
.search-form {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* Certificate details */
.certificate-details {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 3px solid #006A4E;
}

.certificate-header {
    background: linear-gradient(135deg, #006A4E 0%, #008B5A 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.certificate-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.certificate-code {
    font-size: 1.2rem;
    font-weight: bold;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    margin-top: 1rem;
}

.certificate-body {
    padding: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #006A4E;
}

.info-label {
    font-weight: 600;
    color: #006A4E;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.info-value {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
}

/* Status badges */
.status {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status.valide {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.status.expire {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffeaa7;
}

.status.revoque {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 5px solid;
    transition: opacity 0.3s;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left-color: #17a2b8;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.table th {
    background: #006A4E;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.table tr:hover {
    background: #f8f9fa;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #FFD700;
}

.footer-section p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 2rem;
    text-align: center;
    color: #bdc3c7;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .logo {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-text {
        text-align: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h2 {
        font-size: 1.5rem;
    }
    
    .certificate-header h3 {
        font-size: 1.4rem;
    }
    
    .certificate-code {
        font-size: 1rem;
    }
    
    .table {
        font-size: 0.9rem;
    }
    
    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .card {
        padding: 1rem;
    }
    
    .certificate-header,
    .certificate-body {
        padding: 1rem;
    }
    
    .info-item {
        padding: 0.75rem;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .nav,
    .btn {
        display: none !important;
    }
    
    .main {
        padding: 0;
    }
    
    .certificate-details {
        box-shadow: none;
        border: 2px solid #006A4E;
    }
}
