/* ============================
   NOVACONSEIL – STYLE GLOBAL
   SaaS Premium ++
   ============================ */

/* ---- RESET SIMPLE ---- */

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

html {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f6fb;
    color: #0f172a;
}

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

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

/* ---- PALETTE & UTILITAIRES ---- */

:root {
    /* Couleurs de base */
    --nc-primary: #2563eb;        /* Bleu SaaS */
    --nc-primary-dark: #1d4ed8;
    --nc-primary-soft: #e5efff;

    --nc-secondary: #10b981;      /* Vert confiance */
    --nc-secondary-soft: #d1fae5;

    --nc-accent: #f97316;         /* Orange pour les call-to-action ponctuels */

    /* Neutres / fond */
    --nc-bg: #f5f6fb;
    --nc-border: #e2e8f0;
    --nc-card-bg: #ffffff;

    --nc-text: #0f172a;
    --nc-muted: #6b7280;
}


.nc-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

.nc-section {
    padding: 48px 0;
}

.nc-section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.nc-muted {
    font-size: 0.9rem;
    color: var(--nc-muted);
}

/* ============================
   HEADER & NAV
   ============================ */

.nc-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
}

/* BONUSES PREMIUM : LOGO ÉLÉGANT */
.nc-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
}

.nc-logo {
    display: flex;
    align-items: center;
    gap: 12px;

    /* halo bleu ultra soft */
    padding: 6px 10px;
    border-radius: 16px;
    background: radial-gradient(circle at 20% 20%, #e8f0ff 0%, #ffffff 70%);
}

.nc-logo img {
    height: 100px;          /* nouveau format premium */
    animation: fadeIn 0.6s ease-out forwards;

    /* ombre douce de logo */
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.12));
}

/* Animation fade-in du logo */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsivité logo */
@media (max-width: 820px) {
    .nc-logo img {
        height: 80px;
    }
}

@media (max-width: 500px) {
    .nc-logo img {
        height: 65px;
    }
}

/* NAV */
.nc-main-nav,
.nc-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.92rem;
}

.nc-nav a,
.nc-main-nav a {
    position: relative;
    padding: 4px 0;
    color: #111827;
}

.nc-nav a::after,
.nc-main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--nc-primary);
    transition: width 0.18s ease-out;
}

.nc-nav a:hover::after,
.nc-main-nav a:hover::after,
.nc-nav a.nc-nav-active::after,
.nc-main-nav a.nc-nav-active::after {
    width: 100%;
}

@media (max-width: 820px) {
    .nc-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nc-nav,
    .nc-main-nav {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* ============================
   HERO
   ============================ */

.nc-hero {
    padding: 64px 0 40px;
}

.nc-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 40px;
    align-items: center;
}

.nc-hero-title {
    font-size: 2.6rem;
    line-height: 1.1;
    margin-bottom: 16px;
}

.nc-hero-subtitle {
    font-size: 1.05rem;
    max-width: 540px;
    margin-bottom: 24px;
    color: var(--nc-muted);
}

.nc-hero-side {
    background: radial-gradient(circle at top left, #eff6ff 0, #ffffff 45%, #eef2ff 100%);
    border-radius: 24px;
    padding: 18px 20px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.15);
}

@media (max-width: 900px) {
    .nc-hero-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================
   GRID & CARDS
   ============================ */

.nc-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 960px) {
    .nc-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .nc-grid-4 {
        grid-template-columns: 1fr;
    }
}

.nc-card {
    background: var(--nc-card-bg);
    border-radius: 18px;
    padding: 18px 18px 20px;
    border: 1px solid var(--nc-border);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.nc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.10);
}

/* ============================
   BOUTONS
   ============================ */

.nc-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.18s, color 0.18s, box-shadow 0.18s, transform 0.08s;
}

.nc-btn-primary {
    background: var(--nc-primary);
    color: #ffffff;
    border-color: var(--nc-primary);
}

.nc-btn-primary:hover {
    background: var(--nc-primary-dark);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.nc-btn-outline {
    border: 1px solid #1f2933;
    color: #111827;
    background: #ffffff;
}

.nc-btn-outline:hover {
    background-color: #0f172a;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.25);
}

/* ============================
   FORMULAIRES
   ============================ */

label {
    font-size: 0.9rem;
    font-weight: 500;
}

input,
select,
textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--nc-border);
    font: inherit;
    background: #ffffff;
    transition: border-color 0.12s ease-out, box-shadow 0.12s ease-out;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--nc-primary);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

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

/* ============================
   TABLES (CLIENT)
   ============================ */

.nc-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.nc-table th,
.nc-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
}

.nc-table th {
    background: #f9fafb;
    font-weight: 600;
}

/* ============================
   FOOTER
   ============================ */

.nc-footer {
    border-top: 1px solid var(--nc-border);
    padding: 22px 0;
    margin-top: 40px;
    font-size: 0.85rem;
    color: var(--nc-muted);
    background: #ffffff;
}

.nc-footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}


/* Badges / pills pour le marketing */

.nc-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--nc-primary-soft);
    color: var(--nc-primary-dark);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nc-pill-secondary {
    background: var(--nc-secondary-soft);
    color: var(--nc-secondary);
}

.nc-badge-accent {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff7ed;
    color: var(--nc-accent);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Sections de fond alternées */

.nc-section-soft {
    background: #f9fafb;
    padding: 48px 0;
}

/* Colonnes en 3 pour “étapes” / process */

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

@media (max-width: 900px) {
    .nc-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .nc-grid-3 {
        grid-template-columns: 1fr;
    }
}
