/* ==========================================================================
   NUMETIC — Design System Final (Dark Glassmorphism, Parallax & Responsive)
   Optimisé PC (>= 1024px), Tablettes (768px - 1023px) & Smartphones (<= 767px)
   ========================================================================== */

:root {
    --bg-base: #07090F;
    --bg-surface: #0D111C;
    --bg-glass: rgba(255, 255, 255, 0.045);
    --bg-glass-strong: rgba(13, 17, 28, 0.76);
    --border-glass: rgba(255, 255, 255, 0.12);
    --border-glass-hover: rgba(255, 255, 255, 0.26);
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --accent-primary: #3B82F6;
    --accent-secondary: #6366F1;
    --accent-eco: #10B981;
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Couches Parallax & Effets de Transparence
   ========================================================================== */

.parallax-stage {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(circle at 50% 30%, black 25%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 30%, black 25%, transparent 80%);
}

.hero-theme-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.75;
    will-change: transform;
}

.flow-path {
    stroke-dasharray: 12 10;
    animation: flowMove 28s linear infinite;
}

.flow-delay {
    animation-duration: 36s;
    animation-direction: reverse;
}

@keyframes flowMove {
    from { stroke-dashoffset: 440; }
    to { stroke-dashoffset: 0; }
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(85px);
    will-change: transform;
}

.orb-1 {
    width: 560px;
    height: 560px;
    top: -150px;
    left: -120px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
}

.orb-2 {
    width: 620px;
    height: 620px;
    top: 15%;
    right: -180px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
}

.orb-3 {
    width: 500px;
    height: 500px;
    bottom: -140px;
    left: 24%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.16) 0%, transparent 70%);
}

.glass-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(10px);
    will-change: transform;
}

.ring-1 {
    width: 240px;
    height: 240px;
    top: 12%;
    right: 6%;
}

.ring-2 {
    width: 160px;
    height: 160px;
    top: 58%;
    left: 4%;
}

/* ==========================================================================
   Boutons & Badges
   ========================================================================== */

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-main);
}

.pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--accent-primary);
    flex-shrink: 0;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 11px 22px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.94rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(59, 130, 246, 0.3);
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 14px 34px rgba(59, 130, 246, 0.4);
}

.btn-sm {
    min-height: 40px;
    padding: 8px 18px;
    font-size: 0.88rem;
}

.btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 22px;
    border-radius: var(--radius-pill);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--text-main);
    font-size: 0.94rem;
    font-weight: 500;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--border-glass-hover);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Header Sticky Glassmorphism
   ========================================================================== */

.navbar-wrap {
    position: sticky;
    top: 14px;
    z-index: 100;
    padding: 0 20px;
}

.navbar {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    background: var(--bg-glass-strong);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid var(--border-glass);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.logo-img {
    height: 34px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    cursor: pointer;
}

.mobile-drawer {
    max-width: 1120px;
    margin: 10px auto 0;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: rgba(13, 17, 28, 0.96);
    border: 1px solid var(--border-glass-hover);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-drawer[hidden] {
    display: none;
}

.mobile-link {
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 500;
    color: var(--text-main);
}

.mobile-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mobile-cta {
    margin-top: 6px;
    width: 100%;
}

/* ==========================================================================
   Hero & Widget Interactif
   ========================================================================== */

.hero-section {
    position: relative;
    z-index: 2;
    padding: 64px 0 48px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    align-items: center;
    gap: 44px;
}

.hero-copy h1 {
    font-family: var(--font-display);
    font-size: clamp(2.15rem, 4.4vw, 3.6rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 18px 0 16px;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.3vw, 1.12rem);
    color: var(--text-muted);
    max-width: 530px;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.glass-widget {
    background: var(--bg-glass);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 26px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
    will-change: transform;
}

.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.88rem;
}

.widget-title {
    font-weight: 700;
    color: var(--text-main);
}

.widget-status {
    color: var(--accent-eco);
    font-weight: 600;
    font-size: 0.82rem;
}

.workflow-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 20px 0;
}

.node-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding: 16px 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.84rem;
    font-weight: 600;
    animation: floatY 4s ease-in-out infinite;
}

.node-highlight {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.14);
    animation-delay: 0.6s;
}

.node-box:last-child {
    animation-delay: 1.2s;
}

.node-arrow {
    color: var(--accent-primary);
    font-weight: 800;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-strip strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: #93C5FD;
}

.metric-strip span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ==========================================================================
   Sections Génériques & Reveal
   ========================================================================== */

.section {
    position: relative;
    z-index: 2;
    padding: 76px 0;
}

.section-header {
    max-width: 680px;
    margin-bottom: 42px;
}

.section-header.centered {
    margin: 0 auto 38px;
    text-align: center;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin: 14px 0 12px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.02rem;
}

.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Double Parcours (PME vs Formations)
   ========================================================================== */

.toggle-bar {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    padding: 6px;
    border-radius: var(--radius-pill);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
}

.toggle-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-btn.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #FFFFFF;
}

.parcours-card {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: center;
    padding: 38px;
}

.card-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #93C5FD;
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(59, 130, 246, 0.35);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    margin-bottom: 14px;
}

.parcours-info h3 {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    line-height: 1.2;
    margin-bottom: 12px;
}

.parcours-info p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.parcours-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border-glass);
    font-size: 0.94rem;
    color: var(--text-muted);
}

.parcours-list strong {
    color: var(--text-main);
}

/* ==========================================================================
   Services Bento Grid
   ========================================================================== */

.bento-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glass-hover);
}

.card-wide {
    grid-column: span 2;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.card-eco {
    border-color: rgba(16, 185, 129, 0.32);
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.08), rgba(255, 255, 255, 0.03));
}

.card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.card-top-row .service-icon {
    margin-bottom: 0;
}

.eco-badge {
    font-size: 0.78rem;
    font-weight: 600;
    color: #6EE7B7;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 4px 11px;
    border-radius: var(--radius-pill);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #93C5FD;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.icon-eco {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.4);
    color: #6EE7B7;
}

.card-wide .service-icon {
    margin-bottom: 0;
}

.glass-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

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

/* ==========================================================================
   Cas Concrets Avant / Après
   ========================================================================== */

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.case-metric {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 800;
    color: #6EE7B7;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    margin-bottom: 14px;
}

.case-before {
    margin-top: 10px;
    margin-bottom: 8px;
}

.case-before strong {
    color: #FCA5A5;
}

.case-after strong {
    color: #6EE7B7;
}

/* ==========================================================================
   À propos du fondateur
   ========================================================================== */

.about-panel {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 44px;
    align-items: center;
    padding: 40px;
}

.about-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin: 14px 0 18px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 14px;
}

.about-content strong {
    color: var(--text-main);
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.tag-pill {
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    font-size: 0.84rem;
}

.avatar-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-glass-hover);
}

.about-img {
    width: 100%;
    aspect-ratio: 4 / 4.3;
    object-fit: cover;
}

/* ==========================================================================
   Contact Zéro Friction
   ========================================================================== */

.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: start;
}

.contact-intro h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin: 14px 0 14px;
}

.contact-intro p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.direct-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.direct-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.direct-card:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-2px);
}

.direct-card svg {
    color: #93C5FD;
    flex-shrink: 0;
}

.direct-card strong {
    display: block;
    font-size: 0.9rem;
}

.direct-card span {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.contact-form {
    padding: 32px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 15px;
    border-radius: 12px;
    background: rgba(7, 9, 15, 0.72);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.form-feedback {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #A7F3D0;
}

.form-feedback.error {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.35);
    color: #FECACA;
}

/* ==========================================================================
   Footer
   ========================================================================== */

#main-footer {
    position: relative;
    z-index: 2;
    padding: 36px 0 48px;
    border-top: 1px solid var(--border-glass);
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-glass);
}

.footer-logo {
    height: 30px;
    width: auto;
}

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    font-size: 0.88rem;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding-top: 20px;
    font-size: 0.84rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Responsive Tablettes (<= 1023px)
   ========================================================================== */

@media (max-width: 1023px) {
    .hero-grid,
    .parcours-card,
    .about-panel,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

    .nav-links,
    .btn-sm {
        display: none;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }
}

/* ==========================================================================
   Responsive Smartphones (<= 767px)
   ========================================================================== */

@media (max-width: 767px) {
    .navbar-wrap {
        top: 10px;
        padding: 0 12px;
    }

    .container {
        padding: 0 16px;
    }

    .hero-section {
        padding: 36px 0 32px;
    }

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

    .hero-actions a {
        width: 100%;
    }

    .workflow-row {
        flex-direction: column;
    }

    .node-box {
        width: 100%;
        flex-direction: row;
        justify-content: center;
    }

    .node-arrow {
        transform: rotate(90deg);
    }

    .bento-services,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .card-wide {
        grid-column: span 1;
        flex-direction: column;
    }

    .parcours-card,
    .about-panel,
    .contact-form,
    .glass-widget {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .section {
        padding: 52px 0;
    }

    .toggle-bar {
        width: 100%;
    }

    .toggle-btn {
        flex: 1;
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .node-box,
    .reveal {
        animation: none;
        transition: none;
        opacity: 1;
        transform: none;
    }
}
