/* Logitech — Cedim-Mali */

:root {
    --bg: #f8fafc;
    --bg-elevated: #ffffff;
    --bg-card: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --accent: #0d9488;
    --accent-glow: rgba(13, 148, 136, 0.2);
    --logo-logi: #1e293b;
    --logo-tech: #0d9488;
    --logo-cedim: #16a34a;
    --logo-cedim-bg: #15803d;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --radius: 12px;
    --radius-lg: 20px;
    --font-sans: "DM Sans", system-ui, sans-serif;
    --font-display: "Outfit", system-ui, sans-serif;
    --header-h: 72px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--logo-tech) 0%, var(--logo-cedim-bg) 100%);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
}

.logo-text {
    display: inline-flex;
    align-items: baseline;
    letter-spacing: -0.02em;
}

.logo-logi {
    color: var(--logo-logi);
    font-weight: 700;
}

.logo-tech {
    color: var(--logo-tech);
    font-weight: 700;
}

.logo-cedim {
    margin-left: 0.15em;
    padding: 0.12em 0.4em;
    color: #fff;
    background: var(--logo-cedim-bg);
    border-radius: 6px;
    font-weight: 700;
}

.nav-main {
    display: flex;
    gap: 1.75rem;
}

.nav-main a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-main a:hover {
    color: var(--text);
}

.nav-cedim {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    color: #fff !important;
    background: var(--logo-cedim-bg);
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s, transform 0.15s;
}

.nav-cedim i {
    font-size: 0.75em;
    opacity: 0.9;
}

.nav-cedim:hover {
    color: #fff !important;
    background: var(--logo-cedim);
    transform: translateY(-1px);
}

/* Hero */
.hero {
    position: relative;
    padding: calc(var(--header-h) + 4rem) 0 3.5rem;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, #ecfdf5 0%, #f8fafc 45%, var(--bg) 100%),
        radial-gradient(ellipse 60% 80% at 100% 0%, rgba(22, 163, 74, 0.1), transparent),
        radial-gradient(ellipse 50% 60% at 0% 100%, rgba(13, 148, 136, 0.08), transparent);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
}

.hero-content {
    max-width: 720px;
}

.hero-badge {
    display: inline-block;
    margin: 0 0 1.25rem;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f766e;
    background: #ccfbf1;
    border: 1px solid #99f6e4;
    border-radius: 999px;
}

.hero h1 {
    margin: 0 0 1.5rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5.5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--text);
}

.hero-title-accent {
    color: var(--logo-cedim-bg);
}

.hero-lead {
    margin: 0 auto;
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 600px;
}

.hero-lead strong {
    color: var(--logo-cedim-bg);
    font-weight: 600;
}

.hero-apps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 640px;
    padding-top: 0.5rem;
}

.hero-app-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.15rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s, color 0.2s;
}

.hero-app-pill i {
    color: var(--pill-color);
    font-size: 0.95rem;
}

.hero-app-pill:hover {
    color: var(--pill-color);
    border-color: color-mix(in srgb, var(--pill-color) 40%, var(--border));
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
    color: #fff;
    background: var(--accent);
    border: none;
}

.btn-primary:hover {
    background: #0f766e;
    box-shadow: 0 8px 24px var(--accent-glow);
    transform: translateY(-1px);
}

.btn-outline {
    color: var(--text);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

/* Solutions */
.solutions {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
}

.section-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.app-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.app-card:hover {
    border-color: color-mix(in srgb, var(--app-color) 35%, var(--border));
    box-shadow: var(--shadow-md), 0 4px 20px color-mix(in srgb, var(--app-color) 12%, transparent);
    transform: translateY(-4px);
}

.app-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #f1f5f9;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.app-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    background: #f8fafc;
    transition: transform 0.35s ease;
}

.app-card:hover .app-card-media img {
    transform: scale(1.03);
}

.app-card-body {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.app-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--app-color) 12%, #f8fafc);
    color: var(--app-color);
    border-radius: var(--radius);
    font-size: 1.35rem;
}

.app-card h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
}

.app-tagline {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: var(--app-color);
    font-weight: 500;
}

.app-description {
    margin: 0 0 1.25rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.app-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
    padding: 0.75rem 1.25rem;
    width: 100%;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: var(--app-color);
    border-radius: var(--radius);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.app-link:hover {
    color: #fff;
    filter: brightness(1.08);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--app-color) 35%, transparent);
    transform: translateY(-1px);
}

.app-link .fa-arrow-up-right-from-square {
    font-size: 0.75em;
    opacity: 0.85;
}

.app-features {
    margin: 0;
    padding: 0;
    list-style: none;
}

.app-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--text);
}

.app-features li i {
    margin-top: 0.2rem;
    color: var(--app-color);
    font-size: 0.75rem;
}

/* Ecosystem */
.ecosystem {
    padding: 4rem 0;
    background: #f1f5f9;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.ecosystem-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.ecosystem-text h2 {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
}

.ecosystem-text p {
    margin: 0;
    color: var(--text-muted);
}

.ecosystem-diagram {
    position: relative;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diagram-center {
    position: relative;
    z-index: 2;
    padding: 1rem 1.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f766e;
    background: #fff;
    border: 2px solid var(--accent);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.diagram-node {
    position: absolute;
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.node-school {
    top: 10%;
    left: 5%;
    color: #0d9488;
    border-color: rgba(13, 148, 136, 0.4);
}

.node-pointage {
    top: 10%;
    right: 5%;
    color: #2563eb;
    border-color: rgba(37, 99, 235, 0.4);
}

.node-cedix {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    color: #7c3aed;
    border-color: rgba(124, 58, 237, 0.4);
}

/* Contact */
.contact {
    padding: 5rem 0;
}

.contact-inner {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
}

.contact h2 {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: 1.75rem;
}

.contact p {
    margin: 0 0 1.5rem;
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    background: #fff;
}

.footer-inner {
    text-align: center;
}

.footer-inner p {
    margin: 0.35rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-apps {
    font-size: 0.8rem !important;
    letter-spacing: 0.02em;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: calc(var(--header-h) + 2.5rem) 0 2.5rem;
    }

    .hero-inner {
        gap: 2rem;
    }

    .nav-main {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .ecosystem-inner {
        grid-template-columns: 1fr;
    }

    .ecosystem-diagram {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .hero-app-pill {
        flex: 1 1 100%;
        justify-content: center;
    }

    .btn {
        justify-content: center;
        width: 100%;
    }
}
