/* ═══════════════════════════════════════════════════════════════════
   SD CYBER — style.css
   ═══════════════════════════════════════════════════════════════════ */

/* ── Custom Properties ─────────────────────────────────────────── */
:root {
    --navy:        #0D2137;
    --navy-light:  #152d4a;
    --navy-mid:    #1a3a58;
    --gold:        #C9A543;
    --gold-dark:   #a88630;
    --gold-light:  #e8c96a;
    --blue-light:  #5BC8D5;
    --white:       #ffffff;
    --gray-text:   #4A5568;
    --gray-light:  #F7F9FB;
    --gray-border: #E2E8F0;
    --shadow-sm:   0 2px 8px rgba(13,33,55,.08);
    --shadow-md:   0 6px 24px rgba(13,33,55,.12);
    --shadow-lg:   0 16px 48px rgba(13,33,55,.18);
    --radius:      12px;
    --radius-sm:   8px;
    --transition:  .25s ease;
}

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

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--navy);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Container ──────────────────────────────────────────────────── */
.container {
    width: 90%;
    max-width: 1160px;
    margin: 0 auto;
}

/* ── Typography ─────────────────────────────────────────────────── */
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.35; }
p  { color: var(--gray-text); line-height: 1.7; }

em { font-style: normal; }
.text-gold { color: var(--gold); }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .65rem 1.4rem;
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .01em;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
    white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {
    background: var(--gold);
    color: var(--navy);
}
.btn-gold:hover {
    background: var(--gold-light);
    box-shadow: 0 6px 20px rgba(201,165,67,.4);
}

.btn-outline {
    border: 2px solid rgba(255,255,255,.5);
    color: var(--white);
}
.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255,255,255,.08);
}

.btn-lg { padding: .85rem 1.8rem; font-size: 1rem; border-radius: 8px; }
.btn-xl { padding: 1rem 2.4rem; font-size: 1.1rem; border-radius: 8px; }

/* ── Section Utilities ──────────────────────────────────────────── */
.section       { padding: 96px 0; }
.section-alt   { background: var(--gray-light); }
.section-dark  { background: var(--navy); color: var(--white); }
.section-dark p { color: rgba(255,255,255,.75); }

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;
}
.section-label {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .75rem;
}
.section-label-light { color: var(--gold-light); }
.section-sub {
    margin-top: .9rem;
    font-size: 1.05rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Fade-in on scroll ──────────────────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .65s ease, transform .65s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: none;
}

/* ═══════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════ */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}
#header.scrolled {
    background: rgba(13,33,55,.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 24px rgba(0,0,0,.25);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 72px;
}

.logo-link { flex-shrink: 0; }
.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

#main-nav { flex: 1; }
#main-nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}
#main-nav a {
    font-size: .9rem;
    font-weight: 500;
    color: rgba(255,255,255,.85);
    transition: color var(--transition);
    position: relative;
}
#main-nav a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}
#main-nav a:hover,
#main-nav a.active { color: var(--white); }
#main-nav a:hover::after,
#main-nav a.active::after { width: 100%; }

.header-cta { flex-shrink: 0; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    margin-left: auto;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
#mobile-nav {
    display: none;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
}
#mobile-nav.open {
    max-height: 400px;
    padding: 1rem 0;
}
#mobile-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    padding: .5rem 1.5rem 1rem;
}
#mobile-nav li { width: 100%; text-align: center; }
#mobile-nav a {
    display: block;
    padding: .75rem;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255,255,255,.85);
    border-radius: 6px;
    transition: background var(--transition), color var(--transition);
}
#mobile-nav a:hover { background: rgba(255,255,255,.08); color: var(--white); }
#mobile-nav .btn-gold { margin-top: .5rem; width: 100%; justify-content: center; }

/* ═══════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════ */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--navy);
    padding-top: 72px;
    overflow: hidden;
}

#network-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .55;
}

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

.hero-badge {
    display: inline-block;
    background: rgba(201,165,67,.15);
    border: 1px solid rgba(201,165,67,.4);
    color: var(--gold-light);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .35rem .9rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 1.4rem;
}

.hero-sub {
    font-size: 1.15rem;
    color: rgba(255,255,255,.7);
    max-width: 540px;
    margin-bottom: 2.2rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: .45rem;
    color: rgba(255,255,255,.55);
    font-size: .85rem;
}
.hero-note svg { color: var(--gold); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════════
   PROBLÈME
   ═══════════════════════════════════════════════════════════════════ */
.cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-border);
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Problem cards */
.card-problem .card-icon {
    width: 52px;
    height: 52px;
    background: rgba(13,33,55,.07);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    color: var(--navy);
    flex-shrink: 0;
}
.card-problem .card-icon svg { width: 28px; height: 28px; }
.card-problem h3 { margin-bottom: .6rem; }

/* ═══════════════════════════════════════════════════════════════════
   APPROCHE — PILLARS
   ═══════════════════════════════════════════════════════════════════ */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pillar {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-border);
    transition: transform var(--transition), box-shadow var(--transition);
}
.pillar:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.pillar-icon {
    width: 44px;
    height: 44px;
    background: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--gold);
}
.pillar-icon svg { width: 22px; height: 22px; }
.pillar h3 { margin-bottom: .5rem; font-size: 1rem; }
.pillar p { font-size: .9rem; }

/* ═══════════════════════════════════════════════════════════════════
   SOLUTION — BENEFIT CARDS
   ═══════════════════════════════════════════════════════════════════ */
.card-benefit {
    text-align: center;
    padding: 2.5rem 2rem;
    position: relative;
}
.card-benefit .benefit-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.2rem;
    color: var(--navy);
}
.card-benefit .benefit-icon svg { width: 64px; height: 64px; }
.benefit-number {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--gold);
    margin-bottom: .4rem;
}
.card-benefit h3 {
    font-size: 1.25rem;
    margin-bottom: .75rem;
}

/* Featured benefit card */
.card-benefit-featured {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}
.card-benefit-featured .benefit-icon { color: var(--gold); }
.card-benefit-featured h3 { color: var(--white); }
.card-benefit-featured p { color: rgba(255,255,255,.75); }
.card-benefit-featured .benefit-number { color: var(--gold-light); }

/* Keysight badge */
.keysight-badge {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    margin-top: 1.5rem;
    padding: .6rem 1.2rem;
    border: 1px solid var(--gray-border);
    border-radius: 6px;
    font-size: .82rem;
}
.badge-text { color: var(--gray-text); }
.keysight-logo-text {
    font-weight: 700;
    letter-spacing: .03em;
    color: var(--navy);
    font-size: .85rem;
}
.ks-wave { color: #d4373a; margin-right: .2rem; }

/* ── Comparison table ───────────────────────────────────────────── */
.comparison {
    margin-top: 4rem;
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-border);
}
.comparison-title {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: var(--navy);
}
.comparison-table-wrap { overflow-x: auto; }
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}
.comparison-table th {
    text-align: left;
    padding: .75rem 1rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gray-text);
    border-bottom: 2px solid var(--gray-border);
}
.comparison-table td {
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--gray-border);
    vertical-align: middle;
    color: var(--navy);
}
.comparison-table tr:last-child td { border-bottom: none; }
.row-highlight td { background: rgba(201,165,67,.06); }
.row-highlight td:first-child { border-left: 3px solid var(--gold); padding-left: calc(1rem - 3px); }

.recommended-badge {
    display: inline-block;
    margin-left: .6rem;
    padding: .15rem .55rem;
    background: var(--gold);
    color: var(--navy);
    font-size: .7rem;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: .04em;
    vertical-align: middle;
}

/* Tags */
.tag {
    display: inline-block;
    padding: .2rem .65rem;
    border-radius: 4px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .03em;
}
.tag-blue   { background: rgba(91,200,213,.15); color: #1a7a85; }
.tag-green  { background: rgba(34,197,94,.12);  color: #166534; }
.tag-orange { background: rgba(251,146,60,.12); color: #9a3412; }
.tag-gray   { background: rgba(74,85,104,.1);   color: var(--gray-text); }

/* ── Stats grid ─────────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    text-align: center;
}
.stat {
    background: var(--navy);
    border-radius: var(--radius);
    padding: 1.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: -.02em;
    line-height: 1;
}
.stat-label {
    font-size: .82rem;
    color: rgba(255,255,255,.65);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════
   POUR QUI
   ═══════════════════════════════════════════════════════════════════ */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.audience-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-border);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform var(--transition), box-shadow var(--transition);
}
.audience-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.audience-card-alt {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}
.audience-card-alt h3 { color: var(--white); }
.audience-card-alt p  { color: rgba(255,255,255,.75); }
.audience-card-alt .audience-list li { color: rgba(255,255,255,.8); }
.audience-card-alt .audience-list li::before { color: var(--gold); }

.audience-icon {
    width: 64px;
    height: 64px;
    background: rgba(13,33,55,.06);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    flex-shrink: 0;
}
.audience-card-alt .audience-icon {
    background: rgba(255,255,255,.1);
    color: var(--white);
}
.audience-icon svg { width: 36px; height: 36px; }

.audience-tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .6rem;
}
.audience-card-alt .audience-tag { color: var(--gold-light); }

.audience-content h3 { margin-bottom: .75rem; font-size: 1.2rem; }

.audience-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: .75rem;
}
.audience-list li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .92rem;
    color: var(--gray-text);
}
.audience-list li::before {
    content: "✓";
    color: var(--gold);
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════
   CTA FINAL
   ═══════════════════════════════════════════════════════════════════ */
.cta-content {
    text-align: center;
    max-width: 680px;
    padding: 0 1rem;
}
.section-dark .section-header,
.cta-content h2 {
    color: var(--white);
    margin-bottom: 1.25rem;
}
.cta-sub {
    font-size: 1.05rem;
    margin-bottom: 2.2rem;
    color: rgba(255,255,255,.7) !important;
}
.cta-note {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.2rem;
    font-size: .85rem;
    color: rgba(255,255,255,.5) !important;
}
.cta-note svg { color: var(--gold); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
#footer {
    background: var(--navy);
    color: rgba(255,255,255,.65);
    border-top: 1px solid rgba(255,255,255,.08);
}

.footer-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2.5rem 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.footer-logo {
    height: 36px;
    width: auto;
    flex-shrink: 0;
}
.footer-tagline {
    font-size: .8rem;
    font-style: italic;
    color: rgba(255,255,255,.45);
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.75rem;
}
.footer-nav a {
    font-size: .87rem;
    color: rgba(255,255,255,.65);
    transition: color var(--transition);
}
.footer-nav a:hover { color: var(--white); }

.footer-legal { margin-left: auto; }
.footer-legal-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}
.footer-legal-links a {
    font-size: .82rem;
    color: rgba(255,255,255,.45);
    text-decoration: none;
    transition: color var(--transition);
}
.footer-legal-links a:hover { color: var(--gold); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 1.1rem 0;
}
.footer-bottom p {
    font-size: .8rem;
    color: rgba(255,255,255,.35);
    text-align: center;
}
.footer-bottom a { color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer-bottom a:hover { color: rgba(255,255,255,.8); }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .cards-grid-3 { grid-template-columns: 1fr 1fr; }
    .pillars-grid  { grid-template-columns: 1fr 1fr; }
    .audience-grid { grid-template-columns: 1fr; }
    .footer-legal  { margin-left: 0; }
}

/* Mobile */
@media (max-width: 768px) {
    /* Header */
    #main-nav, .header-cta { display: none; }
    .hamburger { display: flex; }
    #mobile-nav { display: block; }

    /* Hero */
    #hero { min-height: auto; padding-bottom: 60px; }
    .hero-content { padding: 60px 0 60px; }
    .hero-cta { flex-direction: column; align-items: flex-start; }
    .hero-cta .btn-lg { width: 100%; justify-content: center; }

    /* Sections */
    .section { padding: 64px 0; }
    .cards-grid-3 { grid-template-columns: 1fr; }
    .pillars-grid  { grid-template-columns: 1fr; }
    .stats-grid    { grid-template-columns: repeat(2, 1fr); }
    .comparison    { padding: 1.25rem; }

    /* Footer */
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .footer-nav ul { gap: .75rem; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .stat-number { font-size: 1.6rem; }
    .audience-card { padding: 1.75rem 1.5rem; }
    .cta-note { flex-direction: column; gap: .4rem; }
}
