/* ============================================
   CORE-2026.CSS - Base CSS ACLG 2026
   Fusion: core-2025 + core-2026 (merge 2026-02-10)
   Palette: Trust Navy/Gold (#1e3a5f / #c4a35a)
   Architecture: Mobile-First, CSS Custom Properties
   ============================================ */

/* ===== FONT IMPORT ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ===== CSS RESET 2026 ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1e293b;
  background-color: #0a1628;
}

/* ===== DIALOG ELEMENT RESET ===== */
dialog {
    display: none;
    position: fixed;
    inset: 0;
    border: none;
    padding: 0;
    margin: auto;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: white;
}

dialog[open] {
    display: block;
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

/* ===== CSS VARIABLES - ACLG 2026 NAVY/GOLD ===== */
:root {
  /* Couleurs principales ACLG 2026 (Navy/Gold) */
  --aclg-blue: #1e3a5f;
  --aclg-accent: #c4a35a;
  --aclg-white: #ffffff;
  --aclg-shadow: 0 2px 10px rgba(30, 58, 95, 0.18);

  /* Couleurs secondaires */
  --aclg-gray-50: #F8F9FA;
  --aclg-gray-100: #E9ECEF;
  --aclg-gray-200: #DEE2E6;
  --aclg-gray-300: #CED4DA;
  --aclg-gray-700: #495057;
  --aclg-gray-900: #212529;

  /* Typographie */
  --font-family-base: 'Poppins', sans-serif;
  --font-size-base: 16px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Espacements */
  --spacing-xs: 0.5rem;   /* 8px */
  --spacing-sm: 1rem;     /* 16px */
  --spacing-md: 1.5rem;   /* 24px */
  --spacing-lg: 2rem;     /* 32px */
  --spacing-xl: 3rem;     /* 48px */
  --spacing-2xl: 4rem;    /* 64px */

  /* Bordures & Radius */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;

  /* Ombres */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-base: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;

  /* Z-index layers */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ===== RESET ISOLATION FLYWHEEL 2026 ===== */
.flywheel-v2026-site * {
  box-sizing: border-box;
}

.flywheel-v2026-site {
  font-family: var(--font-family-base) !important;
}

/* Reset boutons legacy (exclut tous les boutons header v5- pour preserver leurs styles) */
.flywheel-v2026-site button:not([class*="v5-"]),
.flywheel-v2026-site .btn {
  border: none;
  background: none;
  font-family: inherit;
}

/* Body layout */
body.flywheel-v2026-site {
  margin: 0;
  padding: 0;
  background-color: #0a1628;
}

/* Main content spacing */
.main-content-2026 {
  padding-top: 0;
  padding-bottom: 0;
}

/* ===== UTILITAIRES DE BASE ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }

.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }

/* ===== RESET SXO 2026 (ISOLATION PURE) ===== */
/* Reset doux des elements texte */
.sxo-2026-wrapper h1, .sxo-2026-wrapper h2, .sxo-2026-wrapper h3,
.sxo-2026-wrapper h4, .sxo-2026-wrapper h5, .sxo-2026-wrapper h6 {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  font-family: inherit;
  background: transparent;
  text-shadow: none;
}

.sxo-2026-wrapper p, .sxo-2026-wrapper a, .sxo-2026-wrapper span {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  background: transparent;
  text-shadow: none;
}

.sxo-2026-wrapper ul,
.sxo-2026-wrapper ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sxo-2026-wrapper .container {
  background: transparent;
}

.sxo-2026-wrapper .row {
  background: transparent;
}

/* Section isolation (mobile-first, sans !important pour laisser les sections definir leur propre display/layout) */
.sxo-2026-wrapper > section {
    width: 100%;
    min-height: auto;
    padding: 48px 0;
    box-sizing: border-box;
    margin: 0;
    background-color: inherit;
    color: inherit;
}

@media (min-width: 768px) {
    .sxo-2026-wrapper > section {
        padding: 64px 0;
    }
}

@media (min-width: 1200px) {
    .sxo-2026-wrapper > section {
        padding: 80px 0;
    }
}

/* Accent Orange Energie pour elements speciaux */
.sxo-2026-wrapper .accent-orange-2026 {
    color: #ff6b35 !important;
}

/* ===== DATA MISSING INDICATOR (DEV) ===== */
.sxo-2026-wrapper .data-missing-2026 {
    background: linear-gradient(135deg, #fef3cd 0%, #fff8e1 100%) !important;
    border: 2px dashed #856404 !important;
    border-radius: 12px !important;
    padding: 40px 20px !important;
    text-align: center !important;
    color: #856404 !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    min-height: auto !important;
}

/* Hide legacy scrollUp */
#scrollUp {
    display: none !important;
}

/* ===== BREADCRUMB LISTING PAGES ===== */
.rs-breadcrumbs.sec-color {
    position: relative;
    margin-bottom: 2rem;
}
.rs-breadcrumbs .breadcrumbs-image {
    position: relative;
    overflow: hidden;
}

@media (min-width: 1px) {
    .rs-breadcrumbs .breadcrumbs-image {
        height: 200px;
    }
}

.rs-breadcrumbs .breadcrumbs-image > img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: brightness(0.5);
}
.rs-breadcrumbs .breadcrumbs-inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
}
.rs-breadcrumbs .breadcrumbs-title {
    color: #fff;
    font-size: 2rem;
    margin: 0;
}
.rs-breadcrumbs .breadcrumbs-subtitle {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: flex;
    gap: 0.5rem;
    color: rgba(255,255,255,0.8);
}
.rs-breadcrumbs .breadcrumbs-subtitle a {
    color: #c4a35a;
}

/* ===== BREADCRUMB SXO 2025 (WCAG AA Contrast Fix) ===== */
.breadcrumb-section-2025 {
    background: #0f1f38;
    padding: 8px 0;
    height: 36px;
    display: flex;
    align-items: center;
    font-size: 0.8125rem;
    line-height: 1;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.breadcrumb-section-2025 .breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.breadcrumb-section-2025 .breadcrumb-item {
    white-space: nowrap;
}
.breadcrumb-section-2025 .breadcrumb-item a {
    color: #93c5fd;
    text-decoration: none;
}
.breadcrumb-section-2025 .breadcrumb-item a:hover {
    color: #ffffff;
}
.breadcrumb-section-2025 .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
    overflow: hidden;
    text-overflow: ellipsis;
}
.breadcrumb-section-2025 .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ===== PRINT STYLES ===== */
@media print {
  .v5-header,
  .v5-burger,
  .v5-search-trigger,
  #scrollUp {
    display: none !important;
  }
}
