/* ===========================================================
   Trustec — Site vitrine cybersécurité
   Feuille de styles principale
   =========================================================== */

:root {
    --navy-900: #0a1628;
    --navy-800: #0f1f38;
    --navy-700: #16294a;
    --navy-600: #1e3a64;
    --steel-400: #5b7aa8;
    --slate-300: #94a9c9;
    --slate-200: #c3d0e3;
    --mist: #f4f7fb;
    --white: #ffffff;
    --accent: #3ad1c4;      /* cyan/teal — confiance, technologie */
    --accent-strong: #16b8a8;
    --ink: #0c1422;
    --ink-soft: #43536b;
    --border: #e2e8f1;

    --maxw: 1160px;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 18px 48px -22px rgba(10, 22, 40, 0.45);
    --shadow-soft: 0 8px 30px -16px rgba(10, 22, 40, 0.3);

    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-head: 'Sora', 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }

p { margin: 0 0 1rem; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--accent);
    color: var(--navy-900);
    box-shadow: 0 10px 26px -12px rgba(58, 209, 196, 0.7);
}
.btn-primary:hover { background: var(--accent-strong); color: #03110f; }

.btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--ink);
}
.btn-ghost:hover { border-color: var(--steel-400); background: var(--mist); }

.btn-ghost-light {
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--white);
}
.btn-ghost-light:hover { border-color: var(--accent); background: rgba(255, 255, 255, 0.06); }

.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.02rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--white);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.brand-mark { color: var(--accent); display: inline-flex; }
.brand-name { font-family: var(--font-head); font-size: 1.25rem; letter-spacing: -0.01em; color: var(--white); }

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
    font-size: 0.96rem;
    font-weight: 500;
}
.main-nav a { color: var(--slate-200); transition: color 0.18s ease; }
.main-nav a:hover { color: var(--white); }

.btn-header { padding: 0.7rem 1.25rem; font-size: 0.92rem; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 24px 1.5rem;
    background: var(--navy-800);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.mobile-nav a { color: var(--slate-200); padding: 0.75rem 0; font-weight: 500; }
.mobile-nav a.btn { color: var(--navy-900); margin-top: 0.5rem; justify-content: center; }

/* ---------- Eyebrow / titles ---------- */
.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-strong);
    margin: 0 0 0.9rem;
}
.eyebrow-light { color: var(--accent); }

.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1100px 520px at 78% -8%, rgba(58, 209, 196, 0.16), transparent 60%),
        radial-gradient(900px 500px at 8% 110%, rgba(30, 58, 100, 0.55), transparent 55%),
        linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
    color: var(--white);
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(900px 540px at 70% 10%, #000 35%, transparent 80%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    padding: 6rem 24px 5.5rem;
    max-width: 940px;
}
.hero-title {
    font-size: clamp(2.3rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.4rem;
}
.hero-title .accent { color: var(--accent); }
.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--slate-200);
    max-width: 720px;
    margin-bottom: 2.2rem;
    line-height: 1.7;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3.5rem; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    list-style: none;
    padding: 1.8rem 0 0;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-stats li { display: flex; flex-direction: column; gap: 0.35rem; }
.stat-value { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: var(--white); }
.stat-label { font-size: 0.92rem; color: var(--slate-300); }

/* ---------- Trustbar ---------- */
.trustbar {
    background: var(--navy-900);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--slate-300);
}
.trustbar-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    padding: 1.1rem 24px;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-align: center;
}
.trustbar-inner span:not([aria-hidden]) { color: var(--slate-200); }
.trustbar-inner [aria-hidden] { color: var(--accent-strong); }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--mist); }

.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-intro { color: var(--ink-soft); font-size: 1.08rem; margin-top: 0.6rem; }

.lead { font-size: 1.18rem; color: var(--ink); font-weight: 500; }

/* ---------- À propos ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 3.5rem;
    align-items: start;
}
.about-text p { color: var(--ink-soft); }
.about-text .lead { color: var(--ink); margin-bottom: 1.2rem; }

.about-pillars { display: grid; gap: 1rem; }
.pillar {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.4rem;
    box-shadow: var(--shadow-soft);
}
.pillar h3 { font-size: 1.1rem; margin-bottom: 0.35rem; color: var(--ink); }
.pillar p { margin: 0; font-size: 0.96rem; color: var(--ink-soft); }

/* ---------- Services ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(58, 209, 196, 0.5);
}
.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(140deg, var(--navy-700), var(--navy-600));
    color: var(--accent);
    margin-bottom: 1.2rem;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.22rem; margin-bottom: 0.6rem; color: var(--ink); }
.service-card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Pourquoi ---------- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.why-card {
    position: relative;
    background: linear-gradient(160deg, var(--navy-800), var(--navy-700));
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 2.2rem 1.9rem 2rem;
    overflow: hidden;
}
.why-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
}
.why-number {
    font-family: var(--font-head);
    font-size: 2.2rem;
    font-weight: 800;
    color: rgba(58, 209, 196, 0.85);
    display: block;
    margin-bottom: 0.8rem;
}
.why-card h3 { font-size: 1.22rem; margin-bottom: 0.7rem; }
.why-card p { margin: 0; color: var(--slate-200); font-size: 0.98rem; }

/* ---------- CTA ---------- */
.cta-section {
    background:
        radial-gradient(800px 420px at 85% 0%, rgba(58, 209, 196, 0.18), transparent 60%),
        linear-gradient(160deg, var(--navy-900), var(--navy-700));
    color: var(--white);
}
.cta-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.cta-title { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 1rem; }
.cta-subtitle { color: var(--slate-200); font-size: 1.1rem; margin-bottom: 2.2rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 2.8rem; }

.cta-contacts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 1.8rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.cta-contacts li { display: flex; flex-direction: column; gap: 0.3rem; }
.cta-contact-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--slate-300);
}
.cta-contacts a, .cta-contacts li > span:last-child { color: var(--white); font-weight: 600; }
.cta-contacts a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--slate-300); padding: 3.5rem 0 2rem; }
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-tagline { margin: 0.8rem 0 0; color: var(--slate-300); font-size: 0.95rem; max-width: 280px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: 0.95rem; font-weight: 500; }
.footer-nav a { color: var(--slate-200); }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 1.5rem;
    font-size: 0.86rem;
    color: var(--slate-400, #6f82a0);
}
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
    .main-nav, .btn-header { display: none; }
    .nav-toggle { display: flex; }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .services-grid, .why-grid { grid-template-columns: 1fr; }
    .hero-inner { padding: 4rem 24px 3.5rem; }
    .section { padding: 4rem 0; }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .hero-stats { grid-template-columns: 1fr; gap: 1.1rem; }
    .hero-cta .btn, .cta-actions .btn { width: 100%; }
    .cta-contacts { gap: 1.5rem; }
    .footer-inner { flex-direction: column; }
}

/* ---------- Accessibilité ---------- */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
