/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--avi-bg, #0A1628);
    color: var(--avi-text, #EEEEFF);
    font-family: var(--avi-font-body, 'Inter', system-ui, sans-serif);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.avi-has-nav { padding-top: var(--avi-nav-height, 60px); }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700; line-height: 1.2; color: var(--avi-text, #EEEEFF);
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
p  { color: var(--avi-text-muted, #A0B4D0); line-height: 1.7; }
a  { color: var(--avi-primary-light, #6B9FE8); text-decoration: none; }
a:hover { color: var(--avi-text, #EEEEFF); }

/* Layout */
.avi-container {
    width: 100%; max-width: var(--avi-max-width, 1200px);
    margin-inline: auto; padding-inline: 24px;
}
.avi-section        { padding-block: var(--avi-section-padding, 96px); }
.avi-section--sm    { padding-block: 48px; }
.avi-section--lg    { padding-block: 144px; }

/* ── Buttons — definitive ───────────────────── */
.avi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 50px;
    font-family: var(--avi-font-body, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

/* Primary — gold gradient pill */
.avi-btn--primary {
    background: linear-gradient(135deg, #F5B040 0%, #E07010 100%);
    color: #1A1A1A !important;
    box-shadow: 0 4px 20px rgba(240, 160, 48, 0.4);
}
.avi-btn--primary:hover {
    background: linear-gradient(135deg, #F8C060 0%, #F08828 100%);
    color: #1A1A1A !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(240, 160, 48, 0.55);
    text-decoration: none;
}

/* Ghost — transparent with border */
.avi-btn--ghost {
    background: transparent;
    color: rgba(255,255,255,0.8) !important;
    border: 1.5px solid rgba(255,255,255,0.25);
}
.avi-btn--ghost:hover {
    background: rgba(255,255,255,0.08);
    color: #fff !important;
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-1px);
    text-decoration: none;
}

/* Dark — for use on light/gold backgrounds */
.avi-btn--dark {
    background: #1A1A2E;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.avi-btn--dark:hover {
    background: #0A0A1A;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Sizes */
.avi-btn--sm { 
    padding: 8px 20px; 
    font-size: 11px; 
}
.avi-btn--lg { 
    padding: 16px 36px; 
    font-size: 14px; 
}

/* Stripe checkout buttons — same style */
.avi-stripe-checkout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    border-radius: 50px;
    background: linear-gradient(135deg, #F5B040 0%, #E07010 100%);
    color: #1A1A1A !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(240,160,48,0.4);
}
.avi-stripe-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(240,160,48,0.55);
}

/* Cards */
.avi-card {
    background: var(--avi-surface, #0D1E38);
    border: 1px solid var(--avi-border, rgba(255,255,255,0.07));
    border-radius: var(--avi-radius-lg, 16px);
    padding: 28px;
    transition: border-color 0.2s, transform 0.2s;
}
.avi-card:hover { border-color: var(--avi-border-strong, rgba(255,255,255,0.14)); }
.avi-card--glow:hover {
    border-color: var(--avi-border-primary, rgba(59,111,212,0.35));
    box-shadow: var(--avi-shadow-primary, 0 4px 32px rgba(59,111,212,0.2));
}

/* Gradient text */
.avi-gradient-text {
    background: var(--avi-gradient-primary, 
                linear-gradient(135deg, #F5B040 0%, #E07010 100%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow top overlay */
.avi-glow-top::before {
    content: ''; position: absolute; inset: 0;
    background: var(--avi-gradient-glow,
                radial-gradient(ellipse 70% 50% at 50% 0%, 
                rgba(59,111,212,0.15) 0%, transparent 70%));
    pointer-events: none; z-index: 0;
}

/* Badge */
.avi-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 14px; border-radius: 999px; font-size: 11px;
    font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.15);
}

/* Grid helpers */
.avi-grid      { display: grid; gap: 24px; }
.avi-grid--2   { grid-template-columns: repeat(2, 1fr); }
.avi-grid--3   { grid-template-columns: repeat(3, 1fr); }
.avi-grid--4   { grid-template-columns: repeat(4, 1fr); }
.avi-grid--auto{ grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); }

/* Utilities */
.avi-text-center    { text-align: center; }
.avi-text-muted     { color: var(--avi-text-muted, #A0B4D0) !important; }
.avi-relative       { position: relative; }
.avi-overflow-hidden{ overflow: hidden; }
.avi-sr-only {
    position:absolute; width:1px; height:1px; padding:0;
    margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0;
}

/* Animations */
@keyframes aviFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.avi-animate-fade-up    { animation: aviFadeUp 0.6s ease forwards; }
.avi-animate-delay-1    { animation-delay: 0.1s; opacity: 0; }
.avi-animate-delay-2    { animation-delay: 0.2s; opacity: 0; }
.avi-animate-delay-3    { animation-delay: 0.3s; opacity: 0; }

@media (prefers-reduced-motion: reduce) {
    .avi-animate-fade-up,
    .avi-animate-delay-1,
    .avi-animate-delay-2,
    .avi-animate-delay-3 { animation: none; opacity: 1; }
}

/* Mobile */
@media (max-width: 768px) {
    .avi-grid--2,
    .avi-grid--3,
    .avi-grid--4 { grid-template-columns: 1fr; }
    .avi-container { padding-inline: 16px; }
}

/* ── Navigation ─────────────────────────────────── */
.avi-top-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--avi-nav-height, 60px);
    background: var(--avi-nav-bg, #0D1E38) !important;
    border-bottom: 1px solid var(--avi-nav-border, rgba(255,255,255,0.08));
    display: flex;
    align-items: center;
}
.avi-nav-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: var(--avi-max-width, 1200px);
    margin-inline: auto;
    padding-inline: 24px;
    gap: 0;
}
.avi-nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    color: var(--avi-nav-text, #C0D0E8);
    flex-shrink: 0;
    margin-right: 32px;
}
.avision-header-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}
.avi-nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    list-style: none;
}
.avi-nav-link {
    padding: 7px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--avi-nav-text, #C0D0E8) !important;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}
.avi-nav-link:hover,
.avi-nav-link.is-active {
    color: #FFFFFF !important;
    background: rgba(255,255,255,0.08);
}
.avi-nav__login {
    color: var(--avi-nav-text, #C0D0E8) !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 7px 10px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}
.avi-nav__login:hover {
    color: #FFFFFF !important;
    background: rgba(255,255,255,0.08);
}
.avi-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}
.avi-flag-list {
    display: flex;
    align-items: center;
    gap: 4px;
}
.avi-flag-btn {
    display: inline-flex;
    align-items: center;
    padding: 2px;
    border-radius: 3px;
    opacity: 0.65;
    transition: opacity 0.15s, transform 0.15s;
    text-decoration: none;
}
.avi-flag-btn:hover { opacity: 1; }
.avi-flag-btn.is-active {
    opacity: 1;
    outline: 2px solid rgba(255,255,255,0.6);
    outline-offset: 1px;
    transform: scale(1.08);
}
.avi-flag-btn .flag-icon {
    width: 24px !important;
    height: 18px !important;
    border-radius: 2px;
    display: block;
}

/* Flag images — CSS fallback (when SVG/PNG missing) */
.flag-en-gb {
    width: 28px; height: 20px; border-radius: 3px;
    background:
        linear-gradient(to bottom right, transparent 40%, #fff 40%, #fff 60%, transparent 60%),
        linear-gradient(to bottom left, transparent 40%, #fff 40%, #fff 60%, transparent 60%),
        linear-gradient(#C8102E 0%, #C8102E 100%) center/100% 35% no-repeat,
        linear-gradient(#C8102E 0%, #C8102E 100%) center/35% 100% no-repeat,
        linear-gradient(to bottom right, transparent 44%, #C8102E 44%, #C8102E 56%, transparent 56%),
        linear-gradient(to bottom left, transparent 44%, #C8102E 44%, #C8102E 56%, transparent 56%),
        #012169;
    display: inline-block;
}
/* Hero : contexte d’empilement pour le bloc formulaire local-business qui chevauche */
.avi-hero {
    z-index: 1;
}
/* Page local-business : formulaire au même rang visuel #2 mais au-dessus du bas du hero */
.avi-local-business-inline-wrap {
    position: relative;
    z-index: 2;
    margin-top: -56px !important;
}
.avi-local-business-inline-wrap > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.avi-local-business-inline-wrap .avi-inline-form {
    margin: 16px auto;
    justify-content: center;
    align-items: center;
}
.avi-local-business-inline-wrap .avi-inline-form__input {
    margin-top: 12px;
    margin-bottom: 12px;
}
.avi-local-business-inline-wrap .avi-inline-form .avi-btn {
    margin-top: 12px;
    margin-bottom: 12px;
}
.avi-local-business-inline-wrap .avi-inline-form__hint {
    margin: 16px auto;
    max-width: 100%;
}
.avi-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    padding: 8px 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 11px;
    color: #FFFFFF;
}
/* ── Footer — forced dark blue ─────────────── */
#avi-footer,
.avi-footer-bar,
[id*="avi-footer"],
[class*="avi-footer"] {
    background-color: #080E1C !important;
    background: #080E1C !important;
    color: #6080A0 !important;
    border-top: 1px solid rgba(255,255,255,0.06) !important;
}
#avi-footer a,
.avi-footer-bar a {
    color: #6080A0 !important;
}
#avi-footer a:hover,
.avi-footer-bar a:hover {
    color: #A0C0D8 !important;
}
.avi-footer-flags {
    display: flex;
    align-items: center;
    gap: 6px;
}
.avi-footer-flag-btn .flag-icon {
    width: 20px !important;
    height: 15px !important;
    border-radius: 2px;
    display: block;
}
.avi-footer-flag-btn {
    opacity: 0.5;
    transition: opacity 0.15s;
    text-decoration: none;
}
.avi-footer-flag-btn:hover,
.avi-footer-flag-btn.is-active { opacity: 1; }
.avi-mini-footer {
    background: #080E1C !important;
    border-top: 1px solid rgba(255,255,255,0.06) !important;
    padding: 20px 0;
}
.avi-mini-footer-row {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: var(--avi-footer-text, #506080);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.avi-mini-footer a { color: var(--avi-footer-text, #506080); text-decoration: none; }
.avi-mini-footer a:hover { color: var(--avi-footer-text-hover, #A0B4D0); }
.avi-flag-fallback {
    width: 28px;
    height: 20px;
    border-radius: 3px;
    display: inline-block;
}
.flag-en { background: linear-gradient(#012169 33%, #FFF 33% 67%, #C8102E 67%); }
.flag-fr { background: linear-gradient(90deg, #0055A4 33%, #FFF 33% 67%, #EF4135 67%); }
.flag-es { background: linear-gradient(#AA151B 25%, #F1BF00 25% 75%, #AA151B 75%); }

/* ── Page content layout ─────────────────────── */
.avi-content-section {
    padding: 80px 0;
}
.avi-content-section + .avi-content-section {
    padding-top: 0;
}
.avi-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px;
}
.avi-section-header h2 { margin-bottom: 16px; }
.avi-section-header p {
    font-size: 18px;
    line-height: 1.6;
}
.avi-content-block {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}
.avi-content-block h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 16px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--avi-border, rgba(255,255,255,0.07));
}
.avi-content-block h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.avi-content-block h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    margin-top: 32px;
    color: var(--avi-text, #EEEEFF);
}
.avi-content-block p {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.75;
}
.avi-content-block ul,
.avi-content-block ol {
    margin: 16px 0 24px 0;
    padding-left: 24px;
}
.avi-content-block li {
    margin-bottom: 8px;
    color: var(--avi-text-muted, #A0B4D0);
    line-height: 1.6;
}
.avi-content-block strong {
    color: var(--avi-text, #EEEEFF);
    font-weight: 600;
}
.avi-content-block a {
    color: var(--avi-primary-light, #6B9FE8);
    text-decoration: underline;
    text-decoration-color: rgba(107,158,232,0.3);
    text-underline-offset: 3px;
}
.avi-content-block a:hover {
    text-decoration-color: rgba(107,158,232,0.8);
}
.avi-info-card {
    background: var(--avi-surface, #0D1E38);
    border: 1px solid var(--avi-border, rgba(255,255,255,0.07));
    border-radius: var(--avi-radius-lg, 16px);
    padding: 28px 32px;
    margin: 24px 0;
}
.avi-info-card--highlight {
    border-color: var(--avi-border-primary, rgba(59,111,212,0.35));
    background: rgba(59,111,212,0.06);
}
.avi-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}
.avi-split--3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 768px) {
    .avi-split, .avi-split--3 {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
.avi-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.avi-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--avi-border, rgba(255,255,255,0.05));
    color: var(--avi-text-muted, #A0B4D0);
    font-size: 15px;
}
.avi-checklist li:last-child { border-bottom: none; }
.avi-checklist li::before {
    content: '✓';
    color: #1DB88A;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}
.avi-checklist li.avi-checklist--no::before {
    content: '✗';
    color: #E05050;
}
.avi-steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 0;
}
.avi-steps li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--avi-border, rgba(255,255,255,0.05));
}
.avi-steps li:last-child { border-bottom: none; }
.avi-steps li::before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--avi-primary, #3B6FD4);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.avi-hero--small .avi-hero__title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}
.avi-hero--small.avi-section--lg {
    padding-block: 64px;
}

/* ── Local audit inline form ────────────────── */
.avi-inline-form {
    display: flex;
    gap: 10px;
    max-width: 560px;
    margin: 0 auto 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.avi-inline-form__input {
    flex: 1;
    min-width: 220px;
    padding: 14px 20px;
    border-radius: 50px;
    border: 1.5px solid var(--avi-border-strong, rgba(255,255,255,0.14));
    background: rgba(255,255,255,0.06);
    color: var(--avi-text, #EEEEFF);
    font-size: 15px;
    font-family: var(--avi-font-body);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.avi-inline-form__input:focus {
    border-color: var(--avi-primary-light, #6B9FE8);
    background: rgba(255,255,255,0.09);
}
.avi-inline-form__input::placeholder {
    color: var(--avi-text-muted, #A0B4D0);
}
.avi-inline-form__hint {
    font-size: 13px;
    color: var(--avi-text-muted, #A0B4D0);
    text-align: center;
    margin-top: 8px;
}
@media (max-width: 600px) {
    .avi-inline-form { flex-direction: column; }
    .avi-inline-form__input { min-width: unset; width: 100%; }
    .avi-inline-form .avi-btn { width: 100%; }
}

/* ═══ FOOTER NUCLEAR OVERRIDE ═══ */
footer#avi-footer,
footer#avi-footer *:not(a),
[data-avi-footer="true"] {
    background-color: #080E1C !important;
}
footer#avi-footer {
    background: #080E1C !important;
    color: #6080A0 !important;
    border-top: 1px solid rgba(255,255,255,0.06) !important;
}
footer#avi-footer a {
    color: #6080A0 !important;
    text-decoration: none;
}
footer#avi-footer a:hover {
    color: #A0C0D8 !important;
}
footer#avi-footer h3,
footer#avi-footer .avi-footer__col-heading {
    color: #708090 !important;
}
