﻿:root {
    --primary: #385c7d;
    --primary-dark: #2c4a63;
    --secondary: #4a7396;
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
    --background: #f5f5f5;
    --surface: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border: #e5e7eb;
    --info-bg: #f8f9fa;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-lg: rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
    color: var(--text-primary);
    background: var(--background);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    background: var(--surface);
    box-shadow: 0 1px 3px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

    .header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
    }

/* Added styles for header logos container and both logos */
.header-logos {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-psc {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-nom151 {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

    .nav-link:hover {
        color: var(--primary);
    }

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Validation Section */
.validation-section {
    padding: 4rem 0;
}

/* Added full-width card styling for validation section */
.validation-card-full {
    background: var(--surface);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 4px 6px var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

.validation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--surface);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px var(--shadow-lg);
    }

.card-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

    .card-icon svg {
        width: 1.75rem;
        height: 1.75rem;
        color: white;
    }

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.card-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Forms */
.validation-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    position: relative;
}

.input-field {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
    outline: none;
}

    .input-field:focus {
        border-color: var(--primary);
    }

.input-label {
    position: absolute;
    top: -0.5rem;
    left: 0.75rem;
    background: var(--surface);
    padding: 0 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* File Upload */
.file-upload {
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px dashed var(--border);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

    .file-label:hover {
        border-color: var(--primary);
        background: var(--background);
    }

    .file-label svg {
        width: 2rem;
        height: 2rem;
        color: var(--primary);
    }

/* Buttons */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 16px var(--shadow-lg);
    }

.btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Info Section */
.info-section {
    background: var(--surface);
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.section-description {
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.125rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

    .feature-icon svg {
        width: 2rem;
        height: 2rem;
        color: white;
    }

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Added footer logo styles */
.footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-text {
    opacity: 0.8;
    font-size: 0.875rem;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

    .footer-links li {
        margin-bottom: 0.5rem;
    }

    .footer-links a {
        color: white;
        text-decoration: none;
        opacity: 0.8;
        transition: opacity 0.2s;
    }

        .footer-links a:hover {
            opacity: 1;
        }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

    .modal.active {
        display: flex;
    }

.modal-content {
    background: var(--surface);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.3s;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
}

    .modal-close:hover {
        background: var(--background);
    }

    .modal-close svg {
        width: 1.5rem;
        height: 1.5rem;
        color: var(--text-secondary);
    }

.loading-spinner {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.result {
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
}

.result-success {
    background: #d1fae5;
    color: #065f46;
}

.result-error {
    background: #fee2e2;
    color: #991b1b;
}

.result-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
}

.result-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.result-message {
    font-size: 1rem;
    opacity: 0.9;
}

/* Added contact form styles */
.contact-section {
    padding: 4rem 0;
    background: var(--background);
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    outline: none;
}

    .form-input:focus,
    .form-textarea:focus {
        border-color: var(--primary);
    }

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .nav {
        gap: 1rem;
    }

    .validation-cards {
        grid-template-columns: 1fr;
    }

    /* Made logos stack vertically on mobile */
    .header-logos {
        flex-direction: column;
        gap: 0.5rem;
    }

    .logo-psc,
    .logo-nom151 {
        height: 35px;
    }

    /* Made form single column on mobile */
    .form-row {
        grid-template-columns: 1fr;
    }

    .validation-card-full {
        padding: 2rem;
    }

    .contact-form {
        padding: 2rem;
    }
}
