/* ════════════════════════════════════════════════════
   Coyote Informatique — homepage publique
   Architecture one-screen (grille 2 colonnes desktop)
   ════════════════════════════════════════════════════ */

/* ── Reset / base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
    background: #fafafa;
    color: #111318;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── HEADER ─────────────────────────────────────── */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,.08);
    flex-shrink: 0;
}
.site-header-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 32px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.brand-logo { height: 52px; width: auto; display: block; }
.site-nav {
    display: flex; align-items: center; gap: 8px;
    flex-wrap: wrap; flex-shrink: 0;
}
.nav-user {
    font-size: 11px; color: #4b5563; padding: 4px 11px;
    background: #f3f4f6; border: 1px solid #d1d5db; border-radius: 20px;
    max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 18px; border-radius: 6px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    text-decoration: none; border: 2px solid transparent;
    white-space: nowrap; line-height: 1.2;
    transition: background .12s, color .12s, border-color .12s;
    font-family: inherit;
}
.btn-primary { background: #f97316; color: #fff; border-color: #f97316; }
.btn-primary:hover { background: #ea6c00; border-color: #ea6c00; }
.btn-ghost   { background: transparent; color: #374151; border-color: #d1d5db; }
.btn-ghost:hover { background: #f3f4f6; border-color: #9ca3af; color: #111318; }
.btn:focus-visible { outline: 3px solid #f97316; outline-offset: 3px; }

/* ── MAIN & GRILLE ───────────────────────────────── */
main { flex: 1; min-height: 0; }

.main-grid {
    display: grid;
    grid-template-columns: 42fr 58fr;
    align-items: stretch;
    max-width: 1360px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

/* ── COLONNE GAUCHE ──────────────────────────────── */
.left-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 44px 40px 36px;
    background: #fafafa;
    position: relative;
}

/* Jonction Coyote → IA : fine ligne spectrale verticale */
.left-col::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(180deg,
        rgba(249,115,22,.42) 0%,
        rgba(217,70,239,.18) 42%,
        rgba(139,92,246,.12) 72%,
        transparent 100%);
    pointer-events: none;
}

.hero-area { margin-bottom: 34px; flex-shrink: 0; }

.hero-title {
    font-size: 2.6rem; font-weight: 800;
    color: #111318; letter-spacing: -.05em;
    line-height: 1.08; margin: 0 0 16px;
    text-wrap: balance;
}
.hero-accent { color: #f97316; }

.hero-desc {
    font-size: 1rem; color: #374151;
    margin: 0 0 24px; line-height: 1.65;
}

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

/* Téléphone — présentation éditoriale sobre */
.cta-phone {
    display: inline-flex;
    flex-direction: column;
    gap: 1px;
    text-decoration: none;
    padding: 6px 0 6px 12px;
    border-left: 2px solid rgba(249,115,22,.22);
    transition: border-color .15s;
    min-height: 44px;
    justify-content: center;
}
.cta-phone:hover { border-left-color: rgba(249,115,22,.6); }
.cta-phone:focus-visible { outline: 2px solid #f97316; outline-offset: 3px; }
.cta-phone-number {
    font-size: .9375rem; font-weight: 700; color: #111318;
    letter-spacing: -.01em; line-height: 1.2;
}
.cta-phone-label {
    font-size: .625rem; color: #9ca3af;
    letter-spacing: .08em; text-transform: uppercase;
    font-weight: 600; line-height: 1.3;
}

/* ── SERVICES — éditorial numéroté ───────────────── */
.services-compact { border-top: 1px solid rgba(0,0,0,.07); }

.svc-item {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 0 12px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
    align-items: start;
}
.svc-item:last-child { border-bottom: none; }

.svc-num {
    font-size: .6875rem; font-weight: 800;
    color: #f97316; letter-spacing: .06em;
    font-variant-numeric: tabular-nums;
    padding-top: 3px; line-height: 1.3;
    flex-shrink: 0;
}

.svc-name {
    font-size: .875rem; font-weight: 700;
    color: #111318; margin: 0 0 3px;
    display: block;
    letter-spacing: -.01em;
}

.svc-desc {
    font-size: .8125rem; color: #6b7280;
    margin: 0; line-height: 1.5;
}

/* ── COLONNE DROITE — Titane Spectral ────────────── */
.right-col {
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, #f2f3f7 0%, #eaecf2 100%);
    position: relative;
}

/* Signature spectrale — fine ligne dégradée en tête du panneau IA */
.right-col::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        rgba(249,115,22,.45)  0%,
        rgba(217,70,239,.42)  35%,
        rgba(139,92,246,.52)  65%,
        rgba(99,102,241,.36)  100%);
    z-index: 2;
    pointer-events: none;
}

/* ── HORTENSE CARD ────────────────────────────────── */
.hs-card {
    flex: 1;
    min-height: 560px;
    display: flex;
    flex-direction: column;
}

/* Header verre — blanc translucide + halo spectral discret */
.hs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background:
        radial-gradient(ellipse 55% 110% at 88% 50%, rgba(139,92,246,.07) 0%, transparent 100%),
        rgba(255,255,255,.78);
    border-bottom: 1px solid rgba(139,92,246,.1);
    box-shadow: 0 1px 8px rgba(139,92,246,.05);
    gap: 12px;
    flex-shrink: 0;
}
.hs-header-left {
    display: flex; align-items: center; gap: 10px; min-width: 0;
}

/* Badge IA — signature technologique sobre, violet profond */
.hs-badge {
    display: inline-flex; align-items: center;
    padding: 3px 8px;
    background: rgba(139,92,246,.07);
    border: 1px solid rgba(109,40,217,.2);
    border-radius: 4px;
    color: #5b21b6;
    font-size: 9px; font-weight: 800;
    letter-spacing: .12em; text-transform: uppercase;
    flex-shrink: 0; white-space: nowrap;
}

.hs-name {
    font-size: .9375rem; font-weight: 700;
    color: #17181c; margin: 0; flex-shrink: 0;
    letter-spacing: .01em;
}

/* Bêta — mention discrète dans le fil explicatif, jamais dans la rangée d'en-tête déjà dense */
.hs-beta-pill {
    display: inline-flex; align-items: center;
    padding: 1px 6px; margin-right: 6px;
    background: rgba(139,92,246,.1);
    border: 1px solid rgba(109,40,217,.25);
    border-radius: 4px;
    color: #5b21b6;
    font-size: 9px; font-weight: 800;
    letter-spacing: .08em; text-transform: uppercase;
    vertical-align: middle;
}

.hs-tagline {
    font-size: .8125rem; color: #667085;
    margin: 0; padding: 9px 24px;
    background: rgba(248,249,252,.88);
    border-bottom: 1px solid rgba(0,0,0,.06);
    line-height: 1.5; flex-shrink: 0;
}

/* Desktop : widget Hortense remplit la hauteur restante — fond transparent sur titane */
@media (min-width: 861px) {
    .hs-card .hortense-widget {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-radius: 0;
        border: none;
        background: transparent;
    }
    .hs-card .hortense-messages {
        flex: 1;
        min-height: 0;
        max-height: none;
    }
    .hs-card .hortense-compose {
        flex-shrink: 0;
        background: rgba(255,255,255,.75);
        border-top-color: rgba(0,0,0,.07);
    }
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 860px) {
    .main-grid { grid-template-columns: 1fr; border-bottom: none; }
    .left-col  { border-bottom: 1px solid rgba(0,0,0,.08); padding: 24px 20px; }
    .left-col::after { display: none; }
    .hero-title { font-size: 2rem; }
    .right-col { min-height: auto; }
    .hs-card   { min-height: auto; }

    /* Signature spectrale conservée sur mobile */
    .right-col::before { display: block; }

    /* Restaurer le layout fixe du widget sur mobile */
    .hs-card .hortense-widget {
        flex: none; overflow: visible; display: block;
        border-radius: 0; border: none; background: transparent;
    }
    .hs-card .hortense-messages {
        flex: none; min-height: unset; max-height: 220px;
    }

    .site-header-inner { padding: 0 20px; }
}

@media (max-width: 540px) {
    .left-col   { padding: 20px 16px; }
    .hs-header  { padding: 11px 16px; }
    .hs-tagline { padding: 8px 16px; }
    .hero-title { font-size: 1.75rem; }
    .hero-actions { gap: 8px; }
    .cta-phone-number { font-size: .875rem; }
    .site-header-inner { padding: 0 16px; }
}

@media (max-width: 380px) {
    .hero-title { font-size: 1.6rem; }
    .btn { padding: 7px 14px; font-size: 12px; }
}
