/* ==========================================================================
   CIVISOFTTECH (CST) — Feuille de style principale
   Direction artistique : "plan d'exécution" — l'esthétique d'un carnet
   d'ingénieur / plan technique, pas d'un template SaaS générique.
   ========================================================================== */

:root {
    /* --- Palette --- */
    --ink:          #21252B;   /* texte principal, quasi-noir bleuté */
    --ink-soft:     #565B63;   /* texte secondaire */
    --blueprint:    #0F3A57;   /* bleu plan technique — accent structurel */
    --blueprint-70: rgba(15, 58, 87, 0.7);
    --amber:        #FF9933;   /* couleur de marque, conservée */
    --amber-deep:   #E07E1C;
    --paper:        #FAF6EC;   /* fond "papier calque" */
    --paper-line:   #EDE6D6;   /* lignes de grille sur le papier */
    --white:        #FFFFFF;
    --grey-line:    #DCD5C4;

    /* --- Typographie --- */
    --font-display: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
    --font-body:    'IBM Plex Sans', sans-serif;
    --font-mono:    'IBM Plex Mono', monospace;
}

/* --- Reset & Base --- */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    background-color: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    scroll-behavior: smooth;
}

::selection { background: var(--amber); color: var(--white); }

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.25s ease;
}

a:hover { color: var(--amber); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

/* Small mono "spec label" used throughout to look like drawing annotations */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--amber-deep);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    margin-bottom: 14px;
}

.eyebrow::before {
    content: '';
    width: 26px;
    height: 1px;
    background: var(--amber-deep);
    display: inline-block;
}

/* --- Buttons --- */
.btn-cst {
    background-color: var(--amber);
    color: var(--white);
    border: 1.5px solid var(--amber);
    border-radius: 4px;
    padding: 11px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.btn-cst:hover {
    background-color: var(--blueprint);
    color: var(--white);
    border-color: var(--blueprint);
}

.btn-cst-outline {
    background-color: transparent;
    color: var(--ink);
    border: 1.5px solid var(--ink);
    border-radius: 4px;
    padding: 11px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.btn-cst-outline:hover {
    background-color: var(--ink);
    color: var(--white);
    border-color: var(--ink);
}

/* --- Navbar --- */
.navbar {
    padding: 18px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: var(--paper) !important;
    box-shadow: 0 1px 0 var(--grey-line);
    padding: 12px 0;
}

.navbar a {
    color: var(--ink);
    font-weight: 500;
    font-size: 0.95rem;
}

.navbar a:hover,
.navbar a.active {
    color: var(--amber-deep);
}

.nav-link { position: relative; }

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 8px;
    right: 8px;
    height: 2px;
    background: var(--amber);
}

/* --- Hero Section --- */
.banner {
    max-width: 100%;
    width: 100%;
    min-height: 92vh;
    height: auto;
    background-color: var(--paper);
    background-image:
        linear-gradient(var(--paper-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--paper-line) 1px, transparent 1px);
    background-size: 44px 44px;
    margin-bottom: 0;
    padding-bottom: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--grey-line);
}

.banner::before {
    /* fade the grid at the edges so it reads as texture, not wallpaper */
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 40%, transparent 30%, var(--paper) 85%);
    pointer-events: none;
}

.hero-tag {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--blueprint);
    background: var(--white);
    border: 1px solid var(--grey-line);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 26px;
}

.hero-tag span.dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--amber);
    display: inline-block;
}

.h-banner {
    font-weight: 700;
    font-size: clamp(2.3rem, 4.4vw, 3.6rem);
    line-height: 1.08;
    color: var(--ink);
    max-width: 620px;
}

.h-banner .accent { color: var(--amber-deep); }

.p-banner {
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.7;
    font-family: var(--font-body);
    color: var(--ink-soft);
    max-width: 540px;
    margin-top: 22px;
}

.hero-cta-row {
    display: flex;
    gap: 14px;
    margin-top: 34px;
    flex-wrap: wrap;
}

.hero-meta {
    display: flex;
    gap: 34px;
    margin-top: 56px;
    flex-wrap: wrap;
}

.hero-meta div {
    border-left: 2px solid var(--amber);
    padding-left: 14px;
}

.hero-meta .num {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ink);
    display: block;
    line-height: 1;
}

.hero-meta .lbl {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Technical drawing panel replacing the old floating logo */
.blueprint-panel {
    position: relative;
    background: var(--blueprint);
    border-radius: 6px;
    padding: 46px 34px;
    color: var(--white);
    overflow: hidden;
    box-shadow: 10px 14px 0 rgba(15,58,87,0.12);
}

.blueprint-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 24px 24px;
}

.blueprint-panel .panel-inner { position: relative; z-index: 1; }

.blueprint-panel .panel-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--amber);
    border-bottom: 1px dashed rgba(255,255,255,0.3);
    padding-bottom: 14px;
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
}

.blueprint-panel img.plogo {
    width: 60%;
    margin: 10px auto 24px;
    display: block;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.25));
}

.blueprint-panel .panel-specs {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.78);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    border-top: 1px dashed rgba(255,255,255,0.3);
    padding-top: 18px;
}

.blueprint-panel .panel-specs b {
    color: var(--white);
    display: block;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
}

/* --- Section Titles --- */
.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.section-head h2 {
    font-weight: 700;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    color: var(--ink);
    margin-top: 8px;
}

.section-head p {
    color: var(--ink-soft);
    margin-top: 14px;
    font-size: 1.02rem;
}

.section-pad { padding: 100px 0; }

/* --- Featured Product (home) --- */
.product-feature {
    background: var(--white);
    border-top: 1px solid var(--grey-line);
    border-bottom: 1px solid var(--grey-line);
    padding: 100px 0;
}

.h-apropos {
    color: var(--ink);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 18px;
}

.p-apropos {
    font-weight: 400;
    color: var(--ink-soft);
    font-size: 1.02rem;
    line-height: 1.8;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 24px 0 30px;
}

.checklist li {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--ink);
    padding: 10px 0;
    border-bottom: 1px solid var(--paper-line);
    display: flex;
    align-items: center;
    gap: 10px;
}

.checklist li::before {
    content: '✓';
    color: var(--amber-deep);
    font-weight: 700;
    font-family: var(--font-body);
}

.product-shot {
    background: var(--paper);
    border: 1px solid var(--grey-line);
    border-radius: 6px;
    padding: 30px;
    position: relative;
}

.product-shot::before {
    content: 'FIG. 01 — ARMAT';
    position: absolute;
    top: -11px;
    left: 20px;
    background: var(--white);
    border: 1px solid var(--grey-line);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    color: var(--ink-soft);
}

/* --- Services / Benefits --- */
.service {
    width: auto;
    background-color: var(--blueprint);
    padding: 100px 0;
}

.service .section-head h2,
.service .eyebrow { color: var(--white); }
.service .eyebrow { color: var(--amber); }
.service .eyebrow::before { background: var(--amber); }
.service .section-head p { color: rgba(255,255,255,0.72); }

.service-box {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.14);
    padding: 30px 26px;
    height: 100%;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.service-box:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--amber);
    transform: translateY(-4px);
}

.service-box .idx {
    font-family: var(--font-mono);
    color: var(--amber);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.h-service {
    font-weight: 600;
    color: var(--white);
    margin: 14px 0 10px;
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.ss {
    color: rgba(255,255,255,0.7);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* --- Team Section --- */
.equipe { background-color: var(--paper); padding: 100px 0; }

.creator-box {
    border: 1px solid var(--grey-line);
    border-top: 3px solid var(--amber);
    padding: 30px 20px;
    border-radius: 4px;
    background-color: var(--white);
    text-align: center;
    transition: all 0.25s ease;
}

.creator-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(15,58,87,0.08);
}

.creator-box img {
    width: 64px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: block;
    object-fit: cover;
}

.creator-box h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
}

.creator-box p {
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin: 0;
}

.creator-box a { color: var(--amber-deep); }
.creator-box a:hover { text-decoration: underline; }

/* --- CTA Banner --- */
.cta-banner {
    background-color: var(--ink);
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 34px 34px;
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.cta-banner h2 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 14px;
}

.cta-banner p {
    font-size: 1.05rem;
    margin-bottom: 26px;
    color: rgba(255,255,255,0.75);
}

.cta-banner .btn-cst-outline {
    background-color: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

.cta-banner .btn-cst-outline:hover {
    background-color: var(--white);
    color: var(--ink);
    border-color: var(--white);
}

/* --- Footer --- */
#footer {
    background-color: var(--ink);
    padding-top: 60px;
    padding-bottom: 20px;
}

.img-footer { margin-bottom: 20px; display: block; opacity: 0.9; }

#footer p {
    font-weight: 400;
    color: rgba(255,255,255,0.65);
    margin-bottom: 8px;
    font-size: 0.92rem;
}

#footer h5 {
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.65);
    margin-bottom: 10px;
    font-weight: 400;
    font-size: 0.92rem;
    transition: all 0.25s ease;
}

.footer-links a:hover { color: var(--amber); padding-left: 4px; }

.share-buttons a {
    margin-right: 14px;
    color: rgba(255,255,255,0.65);
    transition: all 0.2s ease;
    display: inline-block;
}

.share-buttons a:hover { color: var(--amber); transform: translateY(-3px); }

#bond {
    background-color: #16181C;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 0;
    text-align: center;
}

#bond span {
    color: rgba(255,255,255,0.5);
    font-weight: 400;
    font-size: 0.82rem;
    font-family: var(--font-mono);
}

/* ============================================
   INNER PAGE HERO
   ============================================ */

.page-hero {
    background-color: var(--paper);
    background-image:
        linear-gradient(var(--paper-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--paper-line) 1px, transparent 1px);
    background-size: 44px 44px;
    padding: 150px 0 70px;
    text-align: center;
    border-bottom: 1px solid var(--grey-line);
}

.page-hero h1 {
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 2.7rem);
    color: var(--ink);
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 1.05rem;
    color: var(--ink-soft);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   PRODUCTS PAGE
   ============================================ */

.product-card {
    background: var(--white);
    border: 1px solid var(--grey-line);
    border-radius: 4px;
    transition: all 0.25s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(15,58,87,0.1);
    border-color: var(--amber);
}

.product-card .card-img-top {
    height: 190px;
    object-fit: contain;
    background: var(--paper);
    padding: 24px;
    border-bottom: 1px solid var(--grey-line);
}

.product-card .card-body {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card .card-title {
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--ink);
    margin-bottom: 4px;
    font-family: var(--font-display);
}

.product-card .card-text {
    color: var(--ink-soft);
    font-size: 0.95rem;
    flex-grow: 1;
    line-height: 1.65;
}

.product-card .feature-list {
    list-style: none;
    padding: 0;
    margin: 18px 0;
}

.product-card .feature-list li {
    padding: 6px 0;
    color: var(--ink);
    font-size: 0.88rem;
    font-family: var(--font-mono);
}

.product-card .feature-list li::before {
    content: '✓';
    color: var(--amber-deep);
    font-weight: bold;
    margin-right: 10px;
    font-family: var(--font-body);
}

.badge-available, .badge-coming, .badge-dev {
    color: var(--white);
    font-size: 0.72rem;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}

.badge-available { background-color: #2E7D4F; }
.badge-coming { background-color: var(--amber); }
.badge-dev { background-color: #6c757d; }

/* Comparison Table */
.comparison-table {
    background: var(--white);
    border-radius: 4px;
    border: 1px solid var(--grey-line);
    overflow: hidden;
}

.comparison-table th {
    background-color: var(--blueprint);
    color: var(--white);
    font-weight: 600;
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.comparison-table td {
    padding: 15px 16px;
    border-bottom: 1px solid var(--paper-line);
    color: var(--ink);
}

.comparison-table tr:hover td { background-color: var(--paper); }

.check-icon { color: #2E7D4F; font-weight: bold; font-size: 1.2rem; }
.cross-icon { color: #C0392B; font-weight: bold; }

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-section { padding: 90px 0; }

.about-img {
    max-width: 100%;
    border-radius: 6px;
    border: 1px solid var(--grey-line);
}

.value-card {
    background: var(--white);
    border: 1px solid var(--grey-line);
    border-top: 3px solid var(--amber);
    padding: 40px 26px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border-radius: 4px;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 30px rgba(15,58,87,0.1);
}

.value-card .value-icon {
    font-size: 2.6rem;
    margin-bottom: 18px;
    color: var(--amber-deep);
}

.value-card h4 {
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 14px;
    font-family: var(--font-display);
}

.value-card p {
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   PRICING PAGE
   ============================================ */

.pricing-card {
    background: var(--white);
    border: 1px solid var(--grey-line);
    border-radius: 4px;
    padding: 42px 32px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    box-shadow: 0 16px 30px rgba(15,58,87,0.1);
    transform: translateY(-5px);
}

.pricing-card.popular {
    border-color: var(--amber);
    border-width: 2px;
}

.popular-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--amber);
    color: var(--white);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}

.pricing-card h3 {
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 15px;
    font-family: var(--font-display);
}

.price {
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 22px;
    font-family: var(--font-display);
}

.price .accent { color: var(--amber-deep); }

.price span.unit {
    font-size: 0.95rem;
    color: var(--ink-soft);
    font-weight: 400;
    font-family: var(--font-body);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--paper-line);
    color: var(--ink);
    font-size: 0.92rem;
}

.pricing-features li::before {
    content: '✓';
    color: var(--amber-deep);
    font-weight: bold;
    margin-right: 10px;
}

/* FAQ (accordion overrides) */
.accordion-item {
    border: 1px solid var(--grey-line) !important;
    margin-bottom: 10px;
    border-radius: 4px !important;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    color: var(--ink);
    font-family: var(--font-display);
}

.accordion-button:not(.collapsed) {
    background-color: var(--paper);
    color: var(--amber-deep);
    box-shadow: none;
}

.accordion-button:focus { box-shadow: none; border-color: var(--grey-line); }

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-form {
    background: var(--white);
    border: 1px solid var(--grey-line);
    border-radius: 6px;
    padding: 42px;
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--ink);
    font-size: 0.9rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 1.5px solid var(--grey-line);
    border-radius: 4px;
    padding: 12px;
    transition: all 0.25s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 0.2rem rgba(255, 153, 51, 0.15);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
}

.contact-info-item .contact-icon {
    width: 44px;
    height: 44px;
    background: var(--blueprint);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: var(--amber);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-item h5 {
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
    font-family: var(--font-display);
    font-size: 1rem;
}

.contact-info-item p { color: var(--ink-soft); margin: 0; }

.business-hours {
    background: var(--paper);
    border: 1px solid var(--grey-line);
    border-radius: 6px;
    padding: 20px;
    margin-top: 20px;
}

.business-hours h5 {
    color: var(--ink);
    font-weight: 600;
    margin-bottom: 10px;
    font-family: var(--font-display);
}

.business-hours p { color: var(--ink-soft); margin: 0; }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.fade-in-section {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .fade-in-section {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Back-to-top button injected by main.js */
.back-to-top {
    font-family: var(--font-body);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .banner { min-height: auto; padding-top: 40px; }
    .h-banner { max-width: 100%; }
    .p-banner { max-width: 100%; }
    .blueprint-panel { margin-top: 40px; }
    .hero-meta { margin-top: 40px; gap: 24px; }
    .service-box { min-height: auto; }
    .creator-box { margin-bottom: 20px; }
    .pricing-card.popular { transform: none; }
    .pricing-card.popular:hover { transform: translateY(-5px); }
    .section-pad { padding: 70px 0; }
    .product-feature { padding: 70px 0; }
    .service { padding: 70px 0; }
    .equipe { padding: 70px 0; }
}

@media (max-width: 576px) {
    .page-hero { padding: 120px 0 40px; }
    .cta-banner h2 { font-size: 1.5rem; }
    .contact-form { padding: 26px; }
    .comparison-table { font-size: 0.85rem; }
    .comparison-table th, .comparison-table td { padding: 10px 8px; }
}
