/* =============================================
   MicroNoxy — Page Automatisation & IA — v3
   Fichier : assets/css/page-automatisation-ia.css
   Prefixe : aut- (evite conflits theme)
   Harmonise avec main.css + page-professionnels.css
   ============================================= */

/* --- Variables (alignees sur le theme) --- */
:root {
    --aut-cyan: #0cf;
    --aut-cyan-alt: #00e5ff;
    --aut-cyan-glow: rgba(0, 200, 255, 0.15);
    --aut-cyan-soft: rgba(0, 200, 255, 0.08);
    --aut-cyan-border: rgba(0, 200, 255, 0.15);
    --aut-cyan-border-h: rgba(0, 200, 255, 0.4);
    --aut-violet: #8b5cf6;
    --aut-violet-glow: rgba(139, 92, 246, 0.2);
    --aut-violet-deep: #6d28d9;
    --aut-green: #00ff88;
    --aut-green-soft: rgba(0, 255, 136, 0.1);
    --aut-green-border: rgba(0, 255, 136, 0.3);
    --aut-bg-card: linear-gradient(180deg, rgba(0, 15, 30, 0.9) 0%, rgba(0, 8, 20, 0.95) 100%);
    --aut-bg-card-solid: rgba(0, 10, 25, 0.9);
    --aut-txt: #e8f0f2;
    --aut-txt2: rgba(255, 255, 255, 0.5);
    --aut-txt3: rgba(255, 255, 255, 0.35);
    --aut-border: rgba(0, 200, 255, 0.15);
    --aut-f-display: 'Michroma', sans-serif;
    --aut-f-heading: 'Exo 2', 'Orbitron', sans-serif;
    --aut-f-body: 'Rajdhani', sans-serif;
    --aut-f-mono: 'Space Mono', monospace;
    --aut-f-tag: 'Space Mono', monospace;
}

/* --- Background grid (disabled) --- */
.aut-bg-grid {
    display: none;
}

/* --- Boutons (alignes sur main.css) --- */
.aut-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #0cf, #0080ff);
    border: none;
    border-radius: 4px;
    font-family: var(--aut-f-display);
    font-size: 9px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.aut-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 200, 255, 0.3);
}

.aut-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-family: var(--aut-f-display);
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.aut-btn-secondary:hover {
    border-color: var(--aut-cyan);
    color: var(--aut-cyan);
}

.aut-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 8px;
    font-family: var(--aut-f-mono);
    font-size: 11px;
    font-weight: 700;
    color: #00e5ff;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.08), inset 0 0 15px rgba(0, 229, 255, 0.03);
    align-self: flex-start;
    width: auto;
}
.aut-btn-outline:hover {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(139, 92, 246, 0.15));
    border-color: rgba(0, 229, 255, 0.6);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.15), 0 0 50px rgba(0, 229, 255, 0.05), inset 0 0 20px rgba(0, 229, 255, 0.05);
    color: #fff;
    transform: translateY(-1px);
}
/* Scan line au hover */
.aut-btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00e5ff, transparent);
    transition: left 0.5s ease;
}
.aut-btn-outline:hover::before {
    left: 100%;
}
/* Coin circuit */
.aut-btn-outline::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    border-top: 1px solid rgba(0, 229, 255, 0.25);
    border-right: 1px solid rgba(0, 229, 255, 0.25);
    pointer-events: none;
}

/* --- Accent colors --- */
.aut-cyan { color: var(--aut-cyan); text-shadow: 0 0 30px rgba(0, 200, 255, 0.5); }
.aut-violet { color: var(--aut-violet); text-shadow: 0 0 30px rgba(139, 92, 246, 0.3); font-style: italic; }
.aut-green { color: var(--aut-green); }

/* =============================================
   SECTION 1 : HERO
   ============================================= */
.aut-hero {
    position: relative;
    z-index: 1;
    padding: 80px 5vw 100px;
}
.aut-hero-container {
    max-width: 820px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

/* Hero tag */
.aut-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--aut-green-soft);
    border: 1px solid var(--aut-green-border);
    border-radius: 4px;
    margin-bottom: 24px;
    font-family: var(--aut-f-tag);
    font-size: 9px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--aut-green);
}
.aut-hero-tag::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--aut-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--aut-green);
    animation: autPulse 2s ease-in-out infinite;
}
@keyframes autPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.aut-hero-title {
    font-family: var(--aut-f-heading);
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    color: #fff;
}
.aut-hero-subtitle {
    font-family: 'Exo 2', sans-serif; /* FONT FIX */
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.aut-hero-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    justify-content: center;
}
.aut-keyword {
    font-family: var(--aut-f-mono);
    font-size: 10px;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid var(--aut-border);
    background: rgba(0, 10, 25, 0.6);
    color: rgba(255, 255, 255, 0.5);
}
.aut-keyword-hl {
    border-color: rgba(0, 200, 255, 0.3);
    color: var(--aut-cyan);
    background: var(--aut-cyan-soft);
}
.aut-hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* =============================================
   SECTIONS (common)
   ============================================= */
.aut-section {
    position: relative;
    z-index: 1;
    padding: 100px 40px;
}
.aut-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section tag */
.aut-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 200, 255, 0.05);
    border: 1px solid rgba(0, 200, 255, 0.2);
    border-radius: 4px;
    margin-bottom: 24px;
    font-family: var(--aut-f-tag);
    font-size: 9px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--aut-cyan);
}
.aut-section-tag::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--aut-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--aut-cyan);
    animation: autPulse 2s ease-in-out infinite;
}

.aut-section-title {
    font-family: var(--aut-f-heading);
    font-size: 36px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    color: #fff;
}
.aut-section-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 60px;
}


/* =============================================
   SECTION 2 : AVANT / APRES — DASHBOARD MATRIX
   ============================================= */

/* Tag */
.ba-tag {
    font-family: var(--aut-f-mono);
    font-size: .65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--aut-cyan);
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem 1rem;
    border: 1px solid rgba(0, 200, 255, 0.25);
    border-radius: 4px;
    margin-bottom: 1.5rem;
}
.ba-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--aut-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--aut-cyan);
}

.ba-title {
    font-family: var(--aut-f-heading);
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: .6rem;
    line-height: 1.3;
}

.ba-sub {
    font-size: .95rem;
    color: var(--aut-txt2);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* En-tetes colonnes */
.ba-header {
    display: grid;
    grid-template-columns: 2fr 48px 2fr 100px;
    gap: .8rem;
    padding: 0 1rem .8rem;
    align-items: center;
}
.ba-header-label {
    font-family: var(--aut-f-mono);
    font-size: .55rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.ba-header-label.bad { color: rgba(239, 68, 68, 0.5); }
.ba-header-label.good { color: rgba(0, 200, 255, 0.5); }
.ba-header-label.gain { color: var(--aut-txt3); text-align: center; }

/* Liste des rangees */
.ba-list {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

/* Rangee individuelle */
.ba-row {
    display: grid;
    grid-template-columns: 2fr 48px 2fr 100px;
    gap: .8rem;
    align-items: center;
    background: linear-gradient(180deg, rgba(0, 15, 30, 0.9) 0%, rgba(0, 8, 20, 0.95) 100%);
    border: 1px solid var(--aut-border);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    transition: all .4s;
    position: relative;
    overflow: hidden;
}
.ba-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #ef4444, var(--aut-cyan));
    opacity: 0;
    transition: opacity .3s;
}
.ba-row:hover {
    border-color: rgba(0, 200, 255, 0.15);
    background: rgba(18, 18, 50, 0.85);
}
.ba-row:hover::before { opacity: 1; }

/* Cellules probleme / solution */
.ba-cell {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .85rem;
    line-height: 1.5;
}
.ba-cell.problem {
    color: var(--aut-txt3);
    transition: all .3s;
}
.ba-row:hover .ba-cell.problem {
    text-decoration: line-through;
    text-decoration-color: rgba(239, 68, 68, 0.3);
    color: rgba(239, 68, 68, 0.4);
}
.ba-cell.solution {
    color: var(--aut-txt2);
    transition: all .3s;
}
.ba-row:hover .ba-cell.solution {
    color: var(--aut-txt);
}

/* Icones cellules */
.ba-cell-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .55rem;
    margin-top: 2px;
}
.ba-cell.problem .ba-cell-icon {
    background: rgba(239, 68, 68, 0.08);
    color: #f87171;
}
.ba-cell.solution .ba-cell-icon {
    background: rgba(0, 200, 255, 0.08);
    color: var(--aut-cyan);
}

/* Fleche centrale */
.ba-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}
.ba-arrow-inner {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.08), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(0, 200, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .4s;
}
.ba-row:hover .ba-arrow-inner {
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.15), rgba(139, 92, 246, 0.15));
    border-color: rgba(0, 200, 255, 0.25);
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.08);
}
.ba-arrow-inner svg {
    width: 14px;
    height: 14px;
    stroke: var(--aut-txt3);
    fill: none;
    stroke-width: 2;
    transition: stroke .3s;
}
.ba-row:hover .ba-arrow-inner svg {
    stroke: var(--aut-cyan);
}

/* Colonne gain */
.ba-gain {
    text-align: center;
    padding: .5rem;
    border-radius: 8px;
    background: rgba(0, 255, 136, 0.04);
    border: 1px solid rgba(0, 255, 136, 0.08);
    transition: all .3s;
}
.ba-row:hover .ba-gain {
    background: rgba(0, 255, 136, 0.08);
    border-color: rgba(0, 255, 136, 0.2);
}
.ba-gain-num {
    font-family: var(--aut-f-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--aut-green);
    line-height: 1.1;
}
.ba-gain-label {
    font-family: var(--aut-f-mono);
    font-size: .5rem;
    color: var(--aut-txt3);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Bandeau total */
.ba-total {
    margin-top: 1.2rem;
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: .8rem;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.05), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(0, 200, 255, 0.12);
    border-radius: 10px;
}
.ba-total-left {
    display: flex;
    align-items: center;
    gap: .8rem;
}
.ba-total-icon { display: flex; align-items: center; }
.ba-total-text {
    font-family: var(--aut-f-heading);
    font-size: .95rem;
    font-weight: 600;
    color: #fff;
}
.ba-total-text span { color: var(--aut-cyan); }
.ba-total-gain { text-align: center; }
.ba-total-gain-num {
    font-family: var(--aut-f-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--aut-cyan);
    line-height: 1;
}
.ba-total-gain-label {
    font-family: var(--aut-f-mono);
    font-size: .5rem;
    color: var(--aut-txt3);
    letter-spacing: 1px;
}

/* Styles partages avec section VS (aut-ba-list, aut-ba-icon) */
.aut-ba-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
    margin: 0;
}
.aut-ba-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    font-family: var(--aut-f-body);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}
.aut-ba-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    font-size: 11px;
}
.aut-ba-icon-before { background: rgba(239, 68, 68, 0.12); color: #f87171; }
.aut-ba-icon-after { background: var(--aut-cyan-soft); color: var(--aut-cyan); }

/* =============================================
   SECTION 3 : DOCUMENTS — Cockpit Gauges Terminal
   Prefixe : dq- (documents quotidien)
   ============================================= */

/* ===== WRAPPER TERMINAL ===== */
.dq-terminal {
    background: rgba(12, 12, 35, 0.7);
    border: 1px solid var(--aut-border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

/* Header terminal */
.dq-terminal .dq-term-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .8rem 1.5rem;
    border-bottom: 1px solid var(--aut-border);
    background: rgba(0, 0, 0, 0.15);
}
.dq-term-code {
    font-family: var(--aut-f-mono);
    font-size: .65rem;
    color: var(--aut-txt3);
    letter-spacing: 2px;
}
.dq-term-right {
    display: flex;
    align-items: center;
    gap: .8rem;
}
.dq-term-signal {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}
.dq-term-signal span {
    width: 3px;
    background: var(--aut-cyan);
    border-radius: 1px;
}
.dq-term-signal span:nth-child(1) { height: 4px; }
.dq-term-signal span:nth-child(2) { height: 7px; }
.dq-term-signal span:nth-child(3) { height: 10px; }
.dq-term-signal span:nth-child(4) { height: 14px; }
.dq-term-status {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--aut-f-mono);
    font-size: .6rem;
    color: var(--aut-cyan);
    letter-spacing: 1.5px;
}
.dq-term-dot {
    width: 6px;
    height: 6px;
    background: var(--aut-cyan);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--aut-cyan);
    animation: dqPulse 2s infinite;
}
@keyframes dqPulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* Footer terminal */
.dq-terminal .dq-term-footer {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: .8rem 1.5rem;
    border-top: 1px solid var(--aut-border);
    background: rgba(0, 0, 0, 0.15);
    font-family: var(--aut-f-mono);
    font-size: .6rem;
    color: var(--aut-txt3);
    letter-spacing: 1.5px;
}
.dq-term-footer .hl {
    color: var(--aut-txt2);
    font-weight: 700;
}

/* ===== CONTENU CENTRAL : 5 GAUGES EN LIGNE ===== */
.dq-gauges-area {
    padding: 3rem 2rem 2.5rem;
}
.dq-gauges-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

/* ===== GAUGE INDIVIDUELLE ===== */
.dq-gauge {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 200px;
    min-width: 140px;
}

/* Cercle SVG — r=52, perimetre ≈ 327 */
.dq-circle-wrap {
    width: 130px;
    height: 130px;
    position: relative;
    margin-bottom: 1rem;
}
.dq-circle-svg {
    width: 130px;
    height: 130px;
    transform: rotate(-90deg);
}
.dq-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.04);
    stroke-width: 8;
}
.dq-circle-fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 327;
    stroke-dashoffset: 327;
    transition: stroke-dashoffset 1.8s cubic-bezier(.22, 1, .36, 1);
}
.dq-gauge.is-visible .dq-circle-fill {
    stroke-dashoffset: var(--dq-off);
}

/* Texte au centre du cercle */
.dq-circle-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.dq-circle-pct {
    font-family: var(--aut-f-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.dq-circle-label {
    font-family: var(--aut-f-mono);
    font-size: .5rem;
    color: var(--aut-txt3);
    letter-spacing: 2px;
    margin-top: .25rem;
}

/* Icone sous le cercle */
.dq-gauge-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .6rem;
}
.dq-gauge-icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Nom */
.dq-gauge-name {
    font-family: var(--aut-f-heading);
    font-size: .85rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin-bottom: .2rem;
}

/* Description courte */
.dq-gauge-desc {
    font-size: .72rem;
    color: var(--aut-txt3);
    text-align: center;
    line-height: 1.4;
    margin-bottom: .8rem;
    max-width: 160px;
}

/* Gain de temps */
.dq-gauge-gain {
    display: flex;
    align-items: baseline;
    gap: .3rem;
}
.dq-gauge-gain-num {
    font-family: var(--aut-f-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--aut-cyan);
}
.dq-gauge-gain-unit {
    font-family: var(--aut-f-mono);
    font-size: .5rem;
    color: var(--aut-txt3);
    letter-spacing: .5px;
}

/* ===== COULEURS PAR TYPE ===== */

/* E-mails — bleu */
.dq-gauge.email .dq-circle-fill { stroke: #60a5fa; }
.dq-gauge.email .dq-gauge-icon { background: rgba(59, 130, 246, 0.12); }
.dq-gauge.email .dq-gauge-icon svg { stroke: #60a5fa; }

/* Factures — amber */
.dq-gauge.facture .dq-circle-fill { stroke: #fbbf24; }
.dq-gauge.facture .dq-gauge-icon { background: rgba(245, 158, 11, 0.12); }
.dq-gauge.facture .dq-gauge-icon svg { stroke: #fbbf24; }

/* Devis — vert */
.dq-gauge.devis .dq-circle-fill { stroke: #34d399; }
.dq-gauge.devis .dq-gauge-icon { background: rgba(16, 185, 129, 0.12); }
.dq-gauge.devis .dq-gauge-icon svg { stroke: #34d399; }

/* Contrats — violet */
.dq-gauge.contrat .dq-circle-fill { stroke: var(--aut-violet); }
.dq-gauge.contrat .dq-gauge-icon { background: rgba(139, 92, 246, 0.12); }
.dq-gauge.contrat .dq-gauge-icon svg { stroke: var(--aut-violet); }

/* Comptabilite — rose */
.dq-gauge.compta .dq-circle-fill { stroke: #f472b6; }
.dq-gauge.compta .dq-gauge-icon { background: rgba(236, 72, 153, 0.12); }
.dq-gauge.compta .dq-gauge-icon svg { stroke: #f472b6; }

/* ===== BANDEAU TOTAL (hors terminal) ===== */
.dq-total {
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.06), rgba(139, 92, 246, 0.06));
    border: 1px solid rgba(0, 200, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.dq-total-left {
    display: flex;
    align-items: center;
    gap: .8rem;
}
.dq-total-icon { display: flex; align-items: center; }
.dq-total-text {
    font-family: var(--aut-f-heading);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}
.dq-total-text span { color: var(--aut-cyan); }
.dq-total-sub {
    font-size: .8rem;
    color: var(--aut-txt2);
    margin-top: .1rem;
}

/* Bouton CTA */
.btn-big {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--aut-f-mono);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #000;
    background: var(--aut-cyan);
    border: none;
    border-radius: 6px;
    text-decoration: none;
    transition: all .3s;
    cursor: pointer;
}
.btn-big:hover {
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.3);
}

/* =============================================
   SECTION 4 : SECURITE & CONFIANCE
   ============================================= */
.aut-sec-trust {
    background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.03) 50%, transparent 100%);
}

.aut-security-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 0;
    align-items: stretch;
    min-height: 510px;
}
.aut-sec-content {
    padding: 40px 40px 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.aut-sec-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    background: var(--aut-violet-glow);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 4px;
    margin-bottom: 24px;
    font-family: var(--aut-f-tag);
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0px;
    color: var(--aut-violet);
    width: fit-content;
}
.aut-sec-pill::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--aut-violet);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--aut-violet);
    animation: autPulse 2s ease-in-out infinite;
}

.aut-sec-points {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}
.aut-sec-point {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.aut-sec-point-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--aut-violet-glow);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--aut-violet);
}
.aut-sec-point strong {
    display: block;
    font-family: var(--aut-f-heading);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}
.aut-sec-point span {
    font-size: 13px;
    font-family: var(--aut-f-body);
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

/* Image securite */
.aut-sec-visual {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
}
.aut-sec-img {
    width: 100%;
    max-height: 510px;
    object-fit: cover;
    object-position: center;
    display: block;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%),
                linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%),
                        linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
}

/* =============================================
   SECTION 5 : CHATGPT vs MICRONOXY — SPLIT DIAGNOSTIC
   Styles déplacés dans cmp-compare.css (préfixe cmp-)
   ============================================= */

/* Ancien design boucliers supprimé — voir cmp-compare.css */

/* =============================================
   SECTION 6 : VOTRE METIER — GRILLE + MODAL
   ============================================= */

/* Grille 3 colonnes */
.vm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .8rem;
}

/* Carte tuile */
.vm-tile {
    background: linear-gradient(180deg, rgba(0, 15, 30, 0.9) 0%, rgba(0, 8, 20, 0.95) 100%);
    border: 1px solid var(--aut-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all .4s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.vm-tile::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--aut-cyan);
    opacity: 0;
    transition: all .3s;
    border-radius: 2px;
    z-index: 2;
}
.vm-tile:hover {
    border-color: rgba(0, 200, 255, 0.15);
    background: rgba(18, 18, 50, 0.85);
    transform: translateY(-3px);
}
.vm-tile:hover::before { opacity: 1; left: 10%; right: 10%; }

/* Zone photo tuile */
.vm-tile-photo {
    width: 100%;
    height: 140px;
    background: rgba(139, 92, 246, 0.04);
    border-bottom: 1px solid rgba(139, 92, 246, 0.06);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vm-tile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.vm-tile:hover .vm-tile-photo img { transform: scale(1.05); }

/* Placeholder photo */
.vm-tile-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
}
.vm-tile-photo-placeholder svg {
    width: 28px;
    height: 28px;
    stroke: var(--aut-txt3);
    fill: none;
    stroke-width: 1.2;
    opacity: .3;
}
.vm-tile-photo-placeholder span {
    font-family: var(--aut-f-mono);
    font-size: .5rem;
    color: var(--aut-txt3);
    opacity: .3;
    letter-spacing: 1px;
}

/* Gradient sur photo */
.vm-tile-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, rgba(0, 8, 20, 0.9));
    pointer-events: none;
}

/* Corps de la tuile */
.vm-tile-body {
    padding: 1.2rem 1.3rem 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    gap: .4rem;
}

/* Icone secteur (a cheval entre photo et corps) */
.vm-tile-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -30px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.vm-tile-icon svg { width: 16px; height: 16px; fill: none; stroke-width: 1.8; }

/* Couleurs par secteur */
.vm-tile-icon.btp { background: #1a0f0f; border: 1px solid rgba(239, 68, 68, 0.2); }
.vm-tile-icon.btp svg { stroke: #f87171; }
.vm-tile-icon.compta { background: #0f1320; border: 1px solid rgba(59, 130, 246, 0.2); }
.vm-tile-icon.compta svg { stroke: #60a5fa; }
.vm-tile-icon.commerce { background: #1a1508; border: 1px solid rgba(245, 158, 11, 0.2); }
.vm-tile-icon.commerce svg { stroke: #fbbf24; }
.vm-tile-icon.immo { background: #0a1a14; border: 1px solid rgba(16, 185, 129, 0.2); }
.vm-tile-icon.immo svg { stroke: #34d399; }
.vm-tile-icon.juridique { background: #130f20; border: 1px solid rgba(139, 92, 246, 0.2); }
.vm-tile-icon.juridique svg { stroke: var(--aut-violet); }
.vm-tile-icon.sante { background: #1a0f18; border: 1px solid rgba(236, 72, 153, 0.2); }
.vm-tile-icon.sante svg { stroke: #f472b6; }

/* Textes tuile */
.vm-tile-name {
    font-family: var(--aut-f-heading);
    font-size: .88rem;
    font-weight: 600;
    color: #fff;
    margin-top: .3rem;
}
.vm-tile-pain {
    font-size: .78rem;
    color: var(--aut-txt3);
    font-style: italic;
}
.vm-tile-gain {
    font-family: var(--aut-f-mono);
    font-size: .6rem;
    color: var(--aut-green);
    letter-spacing: 1px;
    margin-top: auto;
    padding-top: .4rem;
}
.vm-tile-cta {
    font-family: var(--aut-f-mono);
    font-size: .55rem;
    color: var(--aut-txt3);
    letter-spacing: 1.5px;
    opacity: 0;
    transition: opacity .3s;
    margin-top: .2rem;
}
.vm-tile:hover .vm-tile-cta { opacity: 1; }

/* ===== MODAL OVERLAY ===== */
.vm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 6, 15, 0.85);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}
.vm-overlay.open { opacity: 1; pointer-events: auto; }

.vm-modal {
    background: #0c0c1d;
    border: 1px solid rgba(0, 200, 255, 0.12);
    border-radius: 16px;
    max-width: 620px;
    width: 90%;
    position: relative;
    transform: translateY(20px) scale(.97);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1);
    overflow: hidden;
}
.vm-overlay.open .vm-modal { transform: translateY(0) scale(1); }

/* Photo modale */
.vm-modal-photo {
    width: 100%;
    height: 200px;
    background: rgba(139, 92, 246, 0.04);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vm-modal-photo img { width: 100%; height: 100%; object-fit: cover; }

.vm-modal-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}
.vm-modal-photo-placeholder svg { width: 36px; height: 36px; stroke: var(--aut-txt3); fill: none; stroke-width: 1.2; opacity: .25; }
.vm-modal-photo-placeholder span { font-family: var(--aut-f-mono); font-size: .55rem; color: var(--aut-txt3); opacity: .25; letter-spacing: 1px; }

.vm-modal-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, #0c0c1d);
    pointer-events: none;
}
.vm-modal-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--aut-cyan), var(--aut-violet), transparent);
    z-index: 2;
}

/* Bouton fermer */
.vm-modal-close {
    position: absolute;
    top: .8rem;
    right: .8rem;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(6, 6, 15, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s;
    z-index: 3;
}
.vm-modal-close:hover { border-color: rgba(0, 200, 255, 0.2); background: rgba(6, 6, 15, 0.8); }
.vm-modal-close svg { width: 14px; height: 14px; stroke: var(--aut-txt3); fill: none; stroke-width: 2; }

/* Contenu modale */
.vm-modal-body { padding: 0 2.2rem 2.2rem; }

.vm-modal-sector {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-top: -20px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}
.vm-modal-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.vm-modal-icon svg { width: 20px; height: 20px; fill: none; stroke-width: 1.8; }
.vm-modal-name { font-family: var(--aut-f-heading); font-size: 1.2rem; font-weight: 700; color: #fff; }

.vm-modal-pain {
    font-size: .88rem;
    color: var(--aut-txt3);
    font-style: italic;
    margin-bottom: 1.3rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--aut-border);
}
.vm-modal-label {
    font-family: var(--aut-f-mono);
    font-size: .55rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--aut-cyan);
    margin-bottom: .3rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.vm-modal-label::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--aut-cyan);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--aut-cyan);
}
.vm-modal-client { font-family: var(--aut-f-heading); font-size: .9rem; font-weight: 600; color: #fff; margin-bottom: .6rem; }
.vm-modal-desc { font-size: .86rem; color: var(--aut-txt2); line-height: 1.7; margin-bottom: 1.5rem; }

.vm-modal-gain {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.1rem 1.3rem;
    background: rgba(0, 255, 136, 0.04);
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 10px;
}
.vm-modal-gain-num { font-family: var(--aut-f-heading); font-size: 2rem; font-weight: 700; color: var(--aut-green); line-height: 1; }
.vm-modal-gain-text { font-family: var(--aut-f-heading); font-size: .85rem; font-weight: 600; color: #fff; }
.vm-modal-gain-sub { font-size: .75rem; color: var(--aut-txt3); }

/* =============================================
   SECTION 7 : TRUST BAR
   ============================================= */
.aut-trust-bar {
    position: relative;
    z-index: 1;
    padding: 60px 0;
    border-top: 1px solid var(--aut-border);
    border-bottom: 1px solid var(--aut-border);
    overflow: hidden;
}
.aut-trust-bar .aut-trust-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 40px;
}
.aut-trust-bar .aut-trust-label {
    font-family: var(--aut-f-mono);
    font-size: 10px;
    color: var(--aut-txt3);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

/* =============================================
   SECTION 8 : CTA FINAL
   ============================================= */
.aut-cta-section {
    position: relative;
    z-index: 1;
    padding: 100px 40px;
}
.aut-cta-box {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(0, 200, 255, 0.03);
    border: 1px solid rgba(0, 200, 255, 0.2);
    border-radius: 8px;
    padding: 80px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.aut-cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--aut-cyan), transparent);
}
.aut-cta-box::after {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(0, 200, 255, 0.06), transparent 70%);
    pointer-events: none;
}
.aut-cta-box h2 {
    font-family: var(--aut-f-heading);
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.aut-cta-box > p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}
.aut-cta-sub {
    font-family: var(--aut-f-mono);
    font-size: 11px;
    color: var(--aut-txt3);
    letter-spacing: 1px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}
.aut-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* =============================================
   REVEAL ANIMATION
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Tablet */
@media (max-width: 1024px) {
    .aut-hero { padding: 160px 40px 80px; }
    .aut-hero-title { font-size: 34px; }

    /* Avant/Apres dashboard : 1 colonne */
    .ba-header { display: none; }
    .ba-row {
        grid-template-columns: 1fr;
        gap: .6rem;
    }
    .ba-arrow { display: none; }
    .ba-gain {
        justify-self: start;
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        padding: .3rem .8rem;
    }
    .ba-total {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .ba-total-left { justify-content: center; }

    /* VS : responsive tablet */
    .cv-body { padding: 2rem 1.5rem; }
    .cv-layout { gap: .5rem; }

    /* Securite layout — stack vertically, image after desc */
    .aut-security-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .aut-sec-content {
        padding: 0;
        display: contents;
    }
    .aut-sec-pill {
        justify-content: center;
        order: 1;
    }
    .aut-section-title {
        text-align: center;
        order: 2;
    }
    .aut-sec-content .aut-section-desc {
        text-align: center;
        order: 3;
    }
    .aut-sec-visual {
        order: 4;
        justify-content: center;
        margin: 24px 0;
    }
    .aut-sec-img {
        max-width: 500px;
        width: 90%;
        height: auto;
        object-fit: contain;
        border-radius: 12px;
    }
    .aut-sec-points {
        align-items: center;
        order: 5;
    }
    .aut-sec-point {
        text-align: left;
        max-width: 500px;
    }
    .aut-btn-outline {
        align-self: center;
        order: 6;
    }

    /* Gauges terminal tablet */
    .dq-gauges-row {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    .dq-gauge {
        min-width: 140px;
        flex: 0 0 calc(33.333% - 1rem);
    }

    /* Tags center */
    .aut-section-tag { justify-content: center; }
}

/* Mobile */
@media (max-width: 768px) {
    .aut-hero { padding: 120px 20px 60px; }
    .aut-hero-title { font-size: 28px; }
    .aut-section { padding: 60px 20px; }
    .aut-section-title { font-size: 26px; }

    /* Gauges terminal mobile */
    .dq-gauges-area { padding: 2rem 1rem; }
    .dq-gauge {
        flex: 0 0 calc(50% - 1rem);
    }
    .dq-circle-wrap { width: 110px; height: 110px; }
    .dq-circle-svg { width: 110px; height: 110px; }
    .dq-circle-pct { font-size: 1.5rem; }
    .dq-total {
        flex-direction: column;
        text-align: center;
    }
    .dq-total-left {
        flex-direction: column;
        text-align: center;
    }
    .dq-term-footer { flex-wrap: wrap; gap: 1rem; }

    /* Metiers : grille 2 colonnes */
    .vm-grid { grid-template-columns: 1fr 1fr; }
    .vm-tile-photo { height: 110px; }
    .vm-modal-body { padding: 0 1.5rem 1.5rem; }
    .vm-modal-photo { height: 160px; }

    /* CTA */
    .aut-cta-box { padding: 40px 24px; }
    .aut-cta-box h2 { font-size: 26px; }

    /* Trust */
    .aut-trust-bar { padding: 40px 0; }
    .aut-cta-section { padding: 60px 20px; }

    /* Securite image smaller on mobile */
    .aut-sec-img {
        max-width: 320px;
        width: 100%;
        order: 2;
        margin: 24px auto 0;
        display: block;
    }

    .aut-sec-desc {
        flex-direction: column;
    }

    .aut-sec-points {
        order: 1;
        width: 100%;
    }

    .aut-btn-outline {
        display: block;
        width: fit-content;
        margin: 0 auto;
        font-size: 9px;
        padding: 10px 16px;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .aut-hero { padding: 100px 16px 40px; }
    .aut-hero-title { font-size: 24px; }
    .aut-section { padding: 50px 16px; }
    .aut-section-title { font-size: 22px; }
    .aut-cta-box { padding: 30px 16px; }
    .aut-cta-box h2 { font-size: 22px; }
    .vm-grid { grid-template-columns: 1fr; }
    .dq-gauge { flex: 0 0 100%; }
}