/* ============================================
   UniVibes — Portal Marketing CSS
   Couleurs: Navy #0C447C, Blue #185FA5,
   White #fff, Light Gray #f4f6f9
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #1a1a2e;
    line-height: 1.6;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #185FA5;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #0C447C;
}

/* --- Container --- */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: #0C447C;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.35rem; }

.section-title {
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: #555;
    font-size: 1.15rem;
    margin-bottom: 48px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    margin-top: 12px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    text-align: center;
    line-height: 1.4;
}

.btn-primary {
    background: #185FA5;
    color: #fff;
    border-color: #185FA5;
}

.btn-primary:hover {
    background: #0C447C;
    border-color: #0C447C;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(12, 68, 124, 0.3);
}

.btn-outline-primary {
    background: transparent;
    color: #185FA5;
    border-color: #185FA5;
}

.btn-outline-primary:hover {
    background: #185FA5;
    color: #fff;
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-outline-light:hover {
    background: #fff;
    color: #0C447C;
    border-color: #fff;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* --- Navbar --- */
.portal-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.portal-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.portal-nav.scrolled {
    background: rgba(12, 68, 124, 0.97);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(8px);
}

.portal-logo {
    font-size: 1.6rem;
    color: #fff;
    font-weight: 300;
    letter-spacing: -0.5px;
}

.portal-logo strong {
    font-weight: 800;
}

.portal-logo:hover {
    color: #fff;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
}

.nav-links li a {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-links li a:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
    background: linear-gradient(135deg, #0C447C 0%, #185FA5 50%, #1a6fbf 100%);
    padding: 160px 0 100px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero h1 {
    color: #fff;
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- Page Hero (subpages) --- */
.page-hero {
    background: linear-gradient(135deg, #0C447C 0%, #185FA5 100%);
    padding: 140px 0 60px;
    color: #fff;
    text-align: center;
}

.page-hero h1 {
    color: #fff;
    font-size: 2.8rem;
}

/* --- Trust Badges --- */
.trust-badges {
    padding: 40px 0;
    background: #f4f6f9;
    border-bottom: 1px solid #e8ecf1;
}

.badges-grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.badge-card {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #0C447C;
    font-size: 0.95rem;
}

.badge-icon {
    font-size: 1.5rem;
}

/* --- Key Figures / Stats --- */
.key-figures {
    padding: 80px 0;
    background: #fff;
}

.figures-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.figure-card {
    padding: 32px;
}

.figure-value {
    font-size: 3rem;
    font-weight: 800;
    color: #185FA5;
    margin-bottom: 8px;
}

.figure-label {
    font-size: 1rem;
    color: #555;
    font-weight: 500;
}

/* --- Modules / Feature Cards Grid --- */
.modules {
    padding: 80px 0;
    background: #f4f6f9;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.module-card {
    background: #fff;
    border-radius: 12px;
    padding: 36px 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #e8ecf1;
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(12, 68, 124, 0.12);
    border-color: #185FA5;
}

.module-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.module-card h3 {
    margin-bottom: 10px;
}

.module-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- How It Works / Steps --- */
.how-it-works {
    padding: 80px 0;
    background: #fff;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 48px;
}

.step-card {
    text-align: center;
    padding: 24px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0C447C, #185FA5);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.step-card h3 {
    margin-bottom: 10px;
}

.step-card p {
    color: #555;
    font-size: 0.95rem;
}

/* --- Feature Sections (features page) --- */
.feature-section {
    padding: 80px 0;
}

.feature-section.feature-alt {
    background: #f4f6f9;
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-block.reverse {
    direction: rtl;
}

.feature-block.reverse > * {
    direction: ltr;
}

.feature-text h2 {
    margin-bottom: 16px;
}

.feature-text p {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    color: #333;
    font-size: 0.95rem;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #185FA5;
}

.feature-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-screenshot {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #e8ecf1, #f4f6f9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px dashed #ccc;
}

/* --- Tech Specs --- */
.tech-specs {
    padding: 80px 0;
    background: #f4f6f9;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.spec-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    border: 1px solid #e8ecf1;
}

.spec-card h3 {
    margin-bottom: 16px;
    font-size: 1.1rem;
    color: #185FA5;
}

.spec-card ul {
    list-style: none;
    padding: 0;
}

.spec-card li {
    padding: 5px 0;
    font-size: 0.9rem;
    color: #555;
    padding-left: 16px;
    position: relative;
}

.spec-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #185FA5;
}

/* --- Pricing --- */
.pricing {
    padding: 60px 0 80px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: start;
}

.pricing-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 28px;
    border: 2px solid #e8ecf1;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(12, 68, 124, 0.12);
}

.pricing-card.featured {
    border-color: #185FA5;
    box-shadow: 0 8px 30px rgba(24, 95, 165, 0.2);
    transform: scale(1.04);
}

.pricing-card.featured:hover {
    transform: scale(1.04) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #0C447C, #185FA5);
    color: #fff;
    padding: 6px 24px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-header {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 24px;
}

.pricing-header h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0C447C;
}

.price-period {
    font-size: 1rem;
    color: #888;
    font-weight: 400;
}

.pricing-desc {
    font-size: 0.95rem;
    color: #555;
    margin-top: 8px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 28px;
}

.pricing-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 0.93rem;
    color: #333;
}

.pricing-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
}

.pricing-features li:first-child {
    font-weight: 700;
    color: #185FA5;
}

.pricing-features li:first-child::before {
    display: none;
}

/* --- Testimonials --- */
.testimonials {
    padding: 80px 0;
    background: #f4f6f9;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 36px;
    border: 1px solid #e8ecf1;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author strong {
    display: block;
    color: #0C447C;
}

.testimonial-author span {
    font-size: 0.9rem;
    color: #888;
}

/* --- CTA Section --- */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0C447C 0%, #185FA5 100%);
    color: #fff;
    text-align: center;
}

.cta-section h2 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- FAQ --- */
.faq {
    padding: 80px 0;
    background: #f4f6f9;
}

.faq-list {
    max-width: 800px;
    margin: 48px auto 0;
}

.faq-item {
    background: #fff;
    border-radius: 10px;
    padding: 28px;
    margin-bottom: 16px;
    border: 1px solid #e8ecf1;
}

.faq-item h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #0C447C;
}

.faq-item p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Contact / Demo Form --- */
.form-section {
    padding: 60px 0 80px;
}

.form-card {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid #e8ecf1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: #0C447C;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e4ea;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: #1a1a2e;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafbfc;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #185FA5;
    box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.12);
    background: #fff;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group .required::after {
    content: ' *';
    color: #e53e3e;
}

.form-intro {
    text-align: center;
    color: #555;
    font-size: 1.05rem;
    margin-bottom: 32px;
    line-height: 1.7;
}

/* --- Alerts --- */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-weight: 500;
    font-size: 0.95rem;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* --- Legal Pages --- */
.legal-section {
    padding: 60px 0 80px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid #e8ecf1;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 36px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f3f7;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.15rem;
    margin-top: 24px;
    margin-bottom: 8px;
}

.legal-content p {
    color: #444;
    margin-bottom: 12px;
    line-height: 1.7;
}

.legal-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content li {
    color: #444;
    margin-bottom: 6px;
    line-height: 1.6;
}

.legal-content strong {
    color: #0C447C;
}

.legal-meta {
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 32px;
}

/* --- Footer --- */
.portal-footer {
    background: #0a1628;
    color: rgba(255,255,255,0.7);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    font-size: 1.6rem;
    color: #fff;
    font-weight: 300;
    margin-bottom: 12px;
}

.footer-logo strong {
    font-weight: 800;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-company {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.footer-col h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge-item {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

.footer-bottom {
    margin-top: 48px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.module-card,
.step-card,
.figure-card,
.pricing-card,
.testimonial-card {
    animation: fadeInUp 0.6s ease-out both;
}

/* --- Responsive (768px breakpoint) --- */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.15rem; }

    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .page-hero {
        padding: 110px 0 40px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(12, 68, 124, 0.98);
        flex-direction: column;
        padding: 16px 24px;
        gap: 4px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    }

    .nav-links.open {
        display: flex;
    }

    .badges-grid {
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }

    .figures-grid,
    .modules-grid,
    .steps-grid,
    .pricing-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .feature-block,
    .feature-block.reverse {
        grid-template-columns: 1fr;
        gap: 32px;
        direction: ltr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }

    .form-card {
        padding: 28px 20px;
    }

    .legal-content {
        padding: 28px 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}
