/* Variables */
:root {
    --color-primary: #0d3b66;
    --color-primary-light: #1a5f7a;
    --color-accent: #e07c24;
    --color-accent-hover: #c96a1a;
    --color-text: #1a1a1a;
    --color-text-muted: #555;
    --color-bg-alt: #f5f5f5;
    --color-white: #fff;
    --color-footer: #1a1a1a;
    --color-footer-text: #ccc;
    --font-heading: "Plus Jakarta Sans", system-ui, sans-serif;
    --font-body: "Source Sans 3", system-ui, sans-serif;
    --space-section: 4rem;
    --space-inline: 2rem;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
}

/* Header & Nav */
.header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 50%, #2a7a8c 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--space-inline);
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-white);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

/* Hero */
.hero {
    padding: 5rem var(--space-inline) 5.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: var(--font-heading);
    margin: 0 0 1rem;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.slogan {
    margin: 0 auto 2rem;
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.95;
    max-width: 640px;
    line-height: 1.5;
}

.cta {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    background: var(--color-accent);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: background 0.2s, transform 0.2s;
}

.cta:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
}

/* Sections */
.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-section) var(--space-inline);
}

.section h2 {
    font-family: var(--font-heading);
    margin-top: 0;
    margin-bottom: 2.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
}

.section-alt {
    background: var(--color-bg-alt);
}

/* Section Logiciels */
.section-logiciels {
    padding-top: calc(var(--space-section) + 1rem);
}

.logiciels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.card-logiciel {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s, transform 0.25s;
}

.card-logiciel:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.card-logiciel-icon {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-primary-light);
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.card-logiciel h3 {
    font-family: var(--font-heading);
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary);
}

.card-logiciel p {
    margin: 0 0 1.25rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.card-note {
    margin: 0 !important;
    font-size: 0.9rem !important;
    color: var(--color-text-muted);
    font-style: italic;
}

.btn-pdf {
    display: inline-block;
    padding: 0.6rem 1.1rem;
    background: var(--color-accent);
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
}

.btn-pdf:hover {
    background: var(--color-accent-hover);
}

.btn-pdf + .btn-pdf,
.btn-pdf + .btn-pdf-secondary,
.btn-pdf-secondary {
    margin-top: 0.5rem;
}

.btn-pdf-secondary {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--color-primary-light);
    border: 2px solid var(--color-primary-light);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.btn-pdf-secondary:hover {
    background: var(--color-primary-light);
    color: var(--color-white);
}

/* Cards (activités, développement) */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--color-white);
    padding: 1.75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.card h3 {
    font-family: var(--font-heading);
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--color-primary-light);
    font-size: 1.15rem;
    font-weight: 600;
}

.card p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.section-alt .card {
    background: var(--color-white);
}

/* Solutions list */
.solutions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.solutions-list li {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--color-text-muted);
}

.solutions-list li:last-child {
    border-bottom: none;
}

/* Contact */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list a {
    color: var(--color-primary-light);
    font-weight: 600;
    text-decoration: none;
}

.contact-list a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--color-footer);
    color: var(--color-footer-text);
    text-align: center;
    padding: 1.75rem var(--space-inline);
    margin-top: 2rem;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Pages de présentation (SIGR, My Middleware, ERP) */
.page-presentation .header-compact {
    padding-bottom: 0;
}

.page-presentation .header-compact .nav {
    padding: 1rem var(--space-inline);
}

.hero-product {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 50%, #2a7a8c 100%);
    color: var(--color-white);
    padding: 4rem var(--space-inline) 4.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-product::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-product h1 {
    font-family: var(--font-heading);
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.hero-product-subtitle {
    margin: 0 auto;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    opacity: 0.95;
    max-width: 640px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.presentation-lead {
    text-align: center;
}

.presentation-lead p {
    margin: 0 auto;
    max-width: 65ch;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--color-text-muted);
}

.section-intro {
    margin: 0 0 1.5rem;
    color: var(--color-text-muted);
    font-size: 1rem;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature-block {
    background: var(--color-white);
    padding: 1.75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s;
}

.feature-block:hover {
    box-shadow: var(--shadow-hover);
}

.feature-block h3 {
    font-family: var(--font-heading);
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-primary);
}

.feature-block p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.benefit-block {
    background: var(--color-white);
    padding: 1.75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s;
}

.benefit-block:hover {
    box-shadow: var(--shadow-hover);
}

.benefit-block h3 {
    font-family: var(--font-heading);
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-primary);
}

.benefit-block p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.audience-section p {
    margin: 0 auto;
    max-width: 65ch;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-text-muted);
    text-align: center;
}

.audience-section strong {
    color: var(--color-primary);
}

.cta-block {
    text-align: center;
}

.cta-block-text {
    margin: 0 0 1.25rem;
    font-size: 1.1rem;
    color: var(--color-text);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    .hero {
        padding: 3.5rem 1.5rem 4rem;
    }

    .section {
        padding: 3rem 1.5rem;
    }

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

    .hero-product {
        padding: 3rem 1.5rem 3.5rem;
    }

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

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