/* ══════════════════════════════════════════════════════════
   AXONC CORE — Shared Stylesheet
   Design System: Inter, Gold #cfa858, Mobile-first
   ══════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ─────────────────────────────── */
/* Source de vérité : D:/Axonc/BRANDING_GUIDE.md § 9.1
   Étendu Phase 3.1 (2026-05-01) : ajout brand SIPA (--b2b-teal, --violet-ia)
   + warning + spacing 4-pt + transitions + shadows nommées + layout. */
:root {
    /* ═══ Backgrounds ═══ */
    --bg:           #f9fafb;       /* Fond page portail Axonc */
    --surface:      #ffffff;       /* Cartes, modales */
    --surface2:     #f1f3f5;       /* Surfaces alternées */

    /* ═══ Borders ═══ */
    --border:       rgba(0,0,0,0.07);
    --border-strong: #cbd5e1;      /* Tailwind slate-300 — bordures plus marquées */

    /* ═══ Text ═══ */
    --text:         #1a1a1a;
    --text-sec:     #6b7280;       /* Tailwind gray-500 — corrigé Phase 3.1 (était #4a4a4a) */
    --muted:        #9ca3af;       /* Tailwind gray-400 */

    /* ═══ Brand — Axonc (vitrine) ═══ */
    --gold:         #cfa858;
    --gold-hover:   #b08d45;
    --gold-light:   rgba(207,168,88,0.10);

    /* ═══ Brand — partagé Axonc + SIPA (teal) ═══ */
    --b2b-teal:     #0d9488;       /* Tailwind teal-600 — primary brand */
    --b2b-teal-dark: #115e59;      /* Tailwind teal-800 — gradient end + bandeau RGPD sombre */
    --b2b-teal-bg:  #ccfbf1;       /* Tailwind teal-100 — pastel fond */
    --b2b-teal-soft: #f0fdfa;      /* Tailwind teal-50 — pastel très light */

    /* ═══ Brand — exclusif SIPA (IA) ═══ */
    --violet-ia:    #7c3aed;       /* Tailwind violet-600 — RÉSERVÉ aux fonctionnalités IA */
    --violet-ia-bg: #f3e8ff;       /* Tailwind violet-100 */

    /* ═══ Système (statuts) ═══ */
    --orange:       #e8720c;
    --danger:       #dc2626;       /* Tailwind red-600 (normalisé Phase 3.1) */
    --danger-bg:    #fef2f2;
    --success:      #16a34a;       /* Tailwind green-600 (normalisé Phase 3.1) */
    --success-bg:   #dcfce7;
    --info:         #2563eb;
    --info-bg:      #eff6ff;
    --warning:      #92400e;       /* NOUVEAU — actuellement en dur dans qhse.css */
    --warning-bg:   #fef3c7;       /* NOUVEAU */

    /* ═══ Footer ═══ */
    --footer-bg:    #141414;
    --footer-sec:   #1e1e1e;
    --footer-border:#2a2a2a;

    /* ═══ Shadows ═══ */
    --shadow-sm:    0 1px 4px rgba(0,0,0,0.05);
    --shadow-md:    0 4px 24px rgba(0,0,0,0.07);
    --shadow-lg:    0 10px 25px rgba(0,0,0,0.12);
    --shadow-gold:  0 6px 24px rgba(207,168,88,0.18);
    --shadow-card-hover: 0 6px 20px rgba(0,0,0,0.10);

    /* ═══ Radius ═══ */
    --radius-sm:    8px;
    --radius:       14px;
    --radius-lg:    22px;
    --radius-pill:  999px;

    /* ═══ Spacing — système 4-pt ═══ */
    --gap-2xs: 2px;
    --gap-xs:  4px;
    --gap-sm:  8px;
    --gap-md:  12px;
    --gap:     16px;
    --gap-lg:  20px;
    --gap-xl:  24px;
    --gap-2xl: 28px;
    --gap-3xl: 32px;

    /* ═══ Typography ═══ */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: ui-monospace, 'SF Mono', Consolas, 'Liberation Mono', monospace;

    /* ═══ Layout ═══ */
    --topbar-h: 88px;              /* Header dashboard portail Axonc (Direction A généreuse) */

    /* ═══ Transitions ═══ */
    --transition-fast: 150ms ease-out;
    --transition-base: 200ms ease-out;
    --transition-slow: 300ms ease-out;
}

/* ── RESET ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ── HEADER ────────────────────────────────────── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 0 32px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gold), var(--gold-hover));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: var(--shadow-gold);
    flex-shrink: 0;
}
.logo-icon svg { width: 20px; height: 20px; stroke-width: 2; }
.logo-name {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text);
}
.logo-name span { color: var(--gold); }

.header-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}
.header-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 9px 20px;
    border-radius: 8px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 10px rgba(207,168,88,0.25);
    border: none;
    cursor: pointer;
}
.header-cta:hover {
    background: var(--gold-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
}
.header-cta svg { width: 15px; height: 15px; }

.header-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-sec);
    transition: color 0.2s;
}
.header-link:hover { color: var(--gold); }

/* ── HERO ──────────────────────────────────────── */
.hero {
    padding: 100px 32px 90px;
    text-align: center;
    background: linear-gradient(160deg, #ffffff 0%, #f9fafb 45%, #f0f2f5 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(ellipse, rgba(207,168,88,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--gold-light);
    color: var(--gold-hover);
    border: 1px solid rgba(207,168,88,0.25);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 32px;
}
.hero-badge svg { width: 13px; height: 13px; }
.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text);
    max-width: 820px;
    margin: 0 auto 24px;
}
.hero h1 .accent { color: var(--gold); }
.hero h1 .line2 {
    display: block;
    color: var(--text-sec);
    font-weight: 300;
    font-size: 0.65em;
    letter-spacing: 0.01em;
    margin-top: 10px;
}
.hero-sub {
    font-size: 1.05rem;
    color: var(--text-sec);
    max-width: 580px;
    margin: 0 auto 44px;
    line-height: 1.75;
}
.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── BUTTONS ───────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, var(--gold), var(--gold-hover));
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(207,168,88,0.30);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(207,168,88,0.38); }
.btn-primary svg { width: 17px; height: 17px; }
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: transparent;
    color: var(--text-sec);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
    cursor: pointer;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }
.btn-outline svg { width: 17px; height: 17px; }

/* ── SECTION WRAPPER ───────────────────────────── */
.section {
    padding: 90px 32px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}
.section-label::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}
.section-title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.2;
}
.section-desc {
    font-size: 1rem;
    color: var(--text-sec);
    max-width: 560px;
    line-height: 1.75;
    margin-bottom: 56px;
}

/* ── SERVICES GRID ─────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}
.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    position: relative;
    overflow: hidden;
}
.service-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--orange));
    opacity: 0;
    transition: opacity 0.25s;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(207,168,88,0.20);
}
.service-card:hover::after { opacity: 1; }
.service-icon {
    width: 56px;
    height: 56px;
    background: var(--gold-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    margin-bottom: 28px;
}
.service-icon svg { width: 26px; height: 26px; stroke-width: 1.8; }
.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
    color: var(--text);
}
.service-card p {
    font-size: 0.93rem;
    color: var(--text-sec);
    line-height: 1.75;
    margin-bottom: 24px;
}
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag {
    background: var(--surface2);
    color: var(--text-sec);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ── APPS GRID (Showroom) ──────────────────────── */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.app-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.app-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.app-card-icon {
    width: 48px;
    height: 48px;
    background: var(--gold-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.5rem;
}
.app-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.app-card p {
    font-size: 0.88rem;
    color: var(--text-sec);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 16px;
}
.app-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 6px;
    width: fit-content;
}
.app-status.sandbox { background: #fff3cd; color: #856404; }
.app-status.public  { background: #d4edda; color: #155724; }
.app-status.premium { background: var(--gold-light); color: var(--gold-hover); }

/* ── FORMS ─────────────────────────────────────── */
.form-container {
    max-width: 420px;
    margin: 0 auto;
    padding: 80px 32px 60px;
}
.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow-md);
}
.form-card h1 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.form-card .form-sub {
    font-size: 0.9rem;
    color: var(--text-sec);
    margin-bottom: 32px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-sec);
    margin-bottom: 6px;
}
.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-group input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-light);
}
.form-submit {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
}
.form-error {
    background: #fdf0f0;
    border: 1px solid #f5c6cb;
    color: var(--danger);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

/* ── DIVIDER ───────────────────────────────────── */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0 32px;
}

/* ── CONTACT BAND ──────────────────────────────── */
.contact-band {
    background: linear-gradient(135deg, var(--text) 0%, #2a2a2a 100%);
    padding: 64px 32px;
    text-align: center;
}
.contact-band h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.contact-band p {
    color: #aaa;
    font-size: 1rem;
    margin-bottom: 36px;
}
.contact-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s, opacity 0.2s;
}
.contact-link:hover { transform: translateY(-2px); opacity: 0.88; }
.contact-link svg { width: 16px; height: 16px; }
.contact-link.email {
    background: linear-gradient(135deg, var(--gold), var(--gold-hover));
    color: #fff;
    box-shadow: 0 4px 16px rgba(207,168,88,0.28);
}
.contact-link.whatsapp {
    background: rgba(255,255,255,0.08);
    color: #ddd;
    border: 1px solid rgba(255,255,255,0.12);
}
.contact-link.whatsapp:hover { color: #25D366; border-color: #25D366; }

/* ── FOOTER ────────────────────────────────────── */
.footer {
    background: var(--footer-bg);
    color: #aaa;
    padding: 48px 32px 32px;
    margin-top: auto;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--footer-border);
    margin-bottom: 28px;
}
.footer-brand-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.footer-brand-name span { color: var(--gold); }
.footer-tagline {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}
.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.83rem;
    color: #888;
    transition: color 0.2s;
}
.footer-contact-item:hover { color: var(--gold); }
.footer-contact-item svg { width: 13px; height: 13px; color: var(--gold); flex-shrink: 0; }
.footer-legal-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 16px;
}
.footer-legal-grid {
    display: grid;
    gap: 8px;
}
.footer-legal-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    line-height: 1.5;
    gap: 12px;
}
.footer-legal-row dt { color: #555; font-weight: 500; flex-shrink: 0; }
.footer-legal-row dd { color: #999; text-align: right; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-copy { font-size: 0.78rem; color: #444; }
.footer-tva { font-size: 0.78rem; color: #555; font-style: italic; text-align: right; }

/* ── CONSENT BANNER ────────────────────────────── */
.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--footer-bg);
    color: #ccc;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
    font-size: 0.88rem;
}
.consent-banner p { max-width: 600px; line-height: 1.6; }
.consent-banner .consent-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
/* CNIL compliance — hiérarchie visuelle équilibrée (pas de dark pattern) */
.consent-btn-accept,
.consent-btn-refuse,
.consent-btn-customize {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: filter 0.15s, transform 0.15s;
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
    border: 1.5px solid;
    min-width: 110px;
}
.consent-btn-accept:hover,
.consent-btn-refuse:hover,
.consent-btn-customize:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}
.consent-btn-accept {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}
.consent-btn-refuse {
    background: #fff;
    color: var(--footer-bg);
    border-color: #fff;
}
.consent-btn-customize {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 768px) {
    /* Header */
    .header { 
        padding: 12px 16px; 
        height: auto; 
        flex-direction: column; 
        gap: 12px; 
    }
    .logo-icon { width: 34px; height: 34px; }
    .logo-icon svg { width: 18px; height: 18px; }
    .logo-name { font-size: 1.05rem; }
    .header-nav { 
        gap: 12px 16px; 
        flex-wrap: wrap; 
        justify-content: center; 
        width: 100%; 
    }
    .header-link { font-size: 0.85rem; }
    .header-cta { padding: 8px 16px; font-size: 0.82rem; }
    
    /* Hero */
    .hero { padding: 60px 16px 50px; }
    .hero h1 { font-size: clamp(2rem, 8vw, 2.5rem); margin-bottom: 20px; }
    .hero-sub { font-size: 0.95rem; margin-bottom: 32px; padding: 0 10px; }
    .hero-actions { flex-direction: column; width: 100%; gap: 12px; padding: 0 10px; }
    .hero-actions .btn-primary, .hero-actions .btn-outline { width: 100%; justify-content: center; }
    .hero::before { width: 400px; height: 400px; top: -50px; }
    
    /* Section Core */
    .section { padding: 56px 16px; }
    .section-title { font-size: clamp(1.6rem, 7vw, 2rem); }
    .section-desc { font-size: 0.95rem; margin-bottom: 40px; }
    
    /* Grids */
    .services-grid { grid-template-columns: 1fr; gap: 20px; }
    .service-card { padding: 32px 24px; }
    .service-icon { margin-bottom: 20px; width: 48px; height: 48px; }
    .service-icon svg { width: 22px; height: 22px; }
    
    .apps-grid { grid-template-columns: 1fr; gap: 16px; }
    .app-card { padding: 24px 20px; }
    .app-card-icon { width: 42px; height: 42px; font-size: 1.25rem; margin-bottom: 16px; }
    
    /* Forms */
    .form-container { padding: 40px 16px; }
    .form-card { padding: 32px 20px; }
    .form-card h1 { font-size: 1.45rem; }
    .form-group input { padding: 10px 14px; font-size: 1rem; } /* 1rem prevents iOS auto-zoom */
    
    /* Secondary layouts */
    .contact-band { padding: 40px 16px; }
    .contact-band h2 { font-size: 1.45rem; margin-bottom: 16px; }
    .contact-links { flex-direction: column; width: 100%; gap: 12px; }
    .contact-link { width: 100%; justify-content: center; }
    
    .divider { margin: 0 16px; }
    
    /* Footer */
    .footer { padding: 40px 16px 24px; }
    .footer-top { grid-template-columns: 1fr; gap: 32px; padding-bottom: 24px; margin-bottom: 24px; }
    .footer-legal-row { flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 6px; }
    .footer-legal-row dd { text-align: left; }
    .footer-bottom { flex-direction: column-reverse; gap: 20px; align-items: center; text-align: center; }
    .footer-bottom > div[style*="flex"] { flex-wrap: wrap; justify-content: center; gap: 12px; }
    .footer-copy { text-align: center; }
    
    /* Consent */
    .consent-banner { flex-direction: column; text-align: center; padding: 16px; gap: 16px; }
    .consent-banner .consent-actions { width: 100%; flex-direction: column; }
    .consent-btn-accept,
    .consent-btn-refuse,
    .consent-btn-customize { width: 100%; }
}

/* ══════════════════════════════════════════════════════════
   AXONC HEADER + FOOTER PARTAGÉS — Editorial Magazine pattern
   (Phase 3.1 D14 + Phase Uniformité 2026-05-04)
   Source de vérité unique pour les 12 pages portail.
   ══════════════════════════════════════════════════════════ */

/* ── HEADER éditorial 88px (sélecteurs partagés dashboard + 11 pages legacy) ── */
.axonc-header,
header.header.axonc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--gap-3xl, 32px);
    height: 88px;
    background: #fff;
    border-bottom: 1px solid var(--border, rgba(0,0,0,0.07));
    position: relative;
    z-index: 100;
}
.axonc-header .dash-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}
.axonc-header .dash-logo img {
    width: 165px;
    height: 40px;
    display: block;
}
.axonc-header .dash-logo-titles {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.axonc-header .logo-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold, #cfa858);
}
.axonc-header .dash-header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}
.axonc-header .dash-header-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text, #1a1a1a);
    text-decoration: none;
    transition: color 0.18s;
    padding: 6px 0;
}
.axonc-header .dash-header-link:hover {
    color: var(--b2b-teal, #0d9488);
}
.axonc-header .dash-header-link.is-admin {
    color: var(--gold, #cfa858);
    font-weight: 700;
    padding: 6px 14px;
    border: 1.5px solid var(--gold, #cfa858);
    border-radius: 8px;
    transition: all 0.18s;
}
.axonc-header .dash-header-link.is-admin:hover {
    background: var(--gold, #cfa858);
    color: #fff;
}

@media (max-width: 768px) {
    .axonc-header {
        padding: 0 16px;
        height: 72px;
    }
    .axonc-header .dash-logo img { width: 130px; height: auto; }
    .axonc-header .logo-eyebrow { display: none; }
    .axonc-header .dash-header-nav { gap: 14px; }
    .axonc-header .hide-mobile { display: none; }
}

/* ── FOOTER 3-col éditorial (cohérent dashboard 3.1 + compression P5 audit 2026-05-04) ── */
.footer.axonc-footer {
    background: #1a1a1a;
    color: #aaa;
    padding: 28px var(--gap-3xl, 60px) 18px;   /* P5+ : compression supplémentaire pour footer ≤ 310px */
    margin-top: auto;                          /* footer collé au bas */
}
.footer.axonc-footer .footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}
.footer.axonc-footer .footer-cols {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;                                 /* P5+ */
    padding-bottom: 16px;                      /* P5+ */
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 14px;                       /* P5+ */
}
.footer.axonc-footer .footer-col h4 {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold, #cfa858);
    margin-bottom: 10px;                       /* P5+ */
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer.axonc-footer .footer-col h4::before {
    content: '';
    display: block;
    width: 18px;
    height: 2px;
    background: var(--gold, #cfa858);
    border-radius: 1px;
}
.footer.axonc-footer .footer-col-brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 8px;                        /* P5 : -2px */
}
.footer.axonc-footer .footer-col p,
.footer.axonc-footer .footer-col a {
    font-size: 0.83rem;
    color: #999;
    line-height: 1.55;                         /* P5+ */
    text-decoration: none;
    display: block;
    transition: color 0.18s;
}
.footer.axonc-footer .footer-col a:hover { color: var(--gold, #cfa858); }
.footer.axonc-footer .footer-col-legal a { padding: 1px 0; }
.footer.axonc-footer .footer-col-legal a.cookies { color: var(--gold, #cfa858); font-weight: 600; }
.footer.axonc-footer .footer-bottom-line {
    font-size: 0.78rem;
    color: #666;
    font-style: italic;
    text-align: center;
}
.footer.axonc-footer .footer-bottom-line .sep { color: #444; margin: 0 10px; }

/* Responsive footer ≤ 1024px */
@media (max-width: 1024px) {
    .footer.axonc-footer .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .footer.axonc-footer .footer-cols { grid-template-columns: 1fr; gap: 24px; }
    .footer.axonc-footer { padding: 28px 20px 18px; }
}
