/* ==========================================================================
   LUXWAVE — CSS Unifie (Data Room)
   Confidentiel — Usage investisseurs et partenaires strategiques
   ========================================================================== */

/* ---------- Variables ---------- */
:root {
    --navy: #0A1628;
    --blue: #1565C0;
    --blue-light: #1E8BD6;
    --amber: #F57C00;
    --green: #2E7D32;
    --red: #C62828;
    --cloud: #e8eff5;
    --slate: #37474F;
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-500: #9E9E9E;
    --gray-700: #616161;
    --font-main: 'Inter', 'DM Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ---------- Page ---------- */
@page {
    size: A4;
    margin: 18mm 20mm 22mm 20mm;
    @bottom-center {
        content: "Confidentiel — LUXWAVE — © 2026";
        font-family: var(--font-main);
        font-size: 7pt;
        color: #90A4AE;
    }
    @bottom-right {
        content: counter(page) " / " counter(pages);
        font-family: var(--font-main);
        font-size: 7pt;
        color: #90A4AE;
    }
}
@page :first {
    @bottom-center { content: none; }
    @bottom-right { content: none; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-main);
    font-size: 10.5pt;
    line-height: 1.6;
    color: var(--navy);
    background: var(--white);
    margin: 0;
    padding: 0;
}

/* ---------- Typography ---------- */
h1 {
    font-size: 22pt;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 12px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}
h2 {
    font-size: 16pt;
    font-weight: 700;
    color: var(--navy);
    border-bottom: 3px solid var(--amber);
    padding-bottom: 6px;
    margin: 28px 0 14px 0;
    page-break-after: avoid;
}
h3 {
    font-size: 13pt;
    font-weight: 600;
    color: var(--blue);
    margin: 20px 0 10px 0;
    page-break-after: avoid;
}
h4 {
    font-size: 11pt;
    font-weight: 600;
    color: var(--slate);
    margin: 14px 0 8px 0;
}
p { margin: 0 0 10px 0; }
strong { font-weight: 700; }

a {
    color: var(--blue);
    text-decoration: none;
}
a:hover { text-decoration: underline; }

/* ---------- Tables ---------- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 9.5pt;
    page-break-inside: auto;
}
thead {
    background: var(--navy);
    color: var(--white);
}
thead th {
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 9pt;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
tbody td {
    padding: 7px 10px;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: top;
}
tbody tr:nth-child(even) { background: var(--gray-50); }
tbody tr:hover { background: var(--cloud); }

.table-total td {
    background: var(--navy) !important;
    color: var(--white);
    font-weight: 700;
}
.table-subtotal td {
    background: var(--gray-100);
    font-weight: 600;
}
td.number, th.number { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- KPI Cards ---------- */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin: 16px 0;
}
.kpi-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--blue);
    border-radius: 6px;
    padding: 14px 16px;
}
.kpi-card.amber { border-left-color: var(--amber); }
.kpi-card.green { border-left-color: var(--green); }
.kpi-card.red { border-left-color: var(--red); }
.kpi-card .kpi-label {
    font-size: 8.5pt;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}
.kpi-card .kpi-value {
    font-size: 20pt;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.1;
}
.kpi-card .kpi-sub {
    font-size: 8.5pt;
    color: var(--gray-500);
    margin-top: 4px;
}

/* ---------- Sections ---------- */
.section-header {
    background: linear-gradient(135deg, var(--navy) 0%, #1a2d50 100%);
    color: var(--white);
    padding: 24px 28px;
    border-radius: 8px;
    margin: 24px 0 16px 0;
    page-break-after: avoid;
}
.section-header h2 {
    color: var(--white);
    border: none;
    padding: 0;
    margin: 0;
}
.section-header .section-sub {
    color: rgba(255,255,255,0.7);
    font-size: 10pt;
    margin-top: 6px;
}

/* ---------- Highlight Boxes ---------- */
.highlight-box {
    background: var(--cloud);
    border-left: 4px solid var(--blue);
    padding: 14px 18px;
    border-radius: 0 6px 6px 0;
    margin: 14px 0;
}
.highlight-box.amber { border-left-color: var(--amber); background: #FFF8E1; }
.highlight-box.green { border-left-color: var(--green); background: #E8F5E9; }
.highlight-box.red { border-left-color: var(--red); background: #FFEBEE; }

blockquote {
    border-left: 4px solid var(--blue-light);
    background: var(--cloud);
    padding: 10px 16px;
    margin: 12px 0;
    border-radius: 0 4px 4px 0;
}

/* ---------- Tags / Badges ---------- */
.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 8pt;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.tag-blue { background: #E3F2FD; color: var(--blue); }
.tag-green { background: #E8F5E9; color: var(--green); }
.tag-amber { background: #FFF3E0; color: var(--amber); }
.tag-red { background: #FFEBEE; color: var(--red); }
.tag-navy { background: var(--navy); color: var(--white); }

.priority-1 { color: var(--red); font-weight: 700; }
.priority-2 { color: var(--amber); font-weight: 600; }
.priority-3 { color: var(--blue); }
.priority-4, .priority-5 { color: var(--gray-500); }

/* ---------- Cover Page ---------- */
.cover {
    page-break-after: always;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 40px;
}
.cover-france {
    background: linear-gradient(160deg, #0A1628 0%, #122040 55%, #1a3060 100%);
    color: var(--white);
}
.cover-canada {
    background: linear-gradient(160deg, #0A1628 0%, #1a2040 40%, #8B0000 100%);
    color: var(--white);
}
.cover .title {
    font-size: 36pt;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 12px;
}
.cover .subtitle {
    font-size: 14pt;
    font-weight: 300;
    opacity: 0.8;
    margin-bottom: 30px;
}
.cover .entity {
    font-size: 10pt;
    opacity: 0.6;
    margin-top: 40px;
}
.cover .confidential {
    font-size: 8pt;
    opacity: 0.5;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 10px;
}

/* ---------- TOC ---------- */
.toc { page-break-after: always; }
.toc h2 { border-bottom-color: var(--navy); }
.toc-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dotted var(--gray-300);
}
.toc-item .toc-title { font-weight: 500; }
.toc-item .toc-page { font-weight: 600; color: var(--blue); }
.toc-category {
    background: var(--gray-100);
    padding: 8px 12px;
    margin-top: 10px;
    font-weight: 700;
    font-size: 10pt;
    border-radius: 4px;
}

/* ---------- Category Dividers ---------- */
.category-divider {
    page-break-before: always;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
}
.category-divider .cat-icon { font-size: 60pt; margin-bottom: 20px; }
.category-divider .cat-name { font-size: 28pt; font-weight: 800; color: var(--navy); }
.category-divider .cat-desc { font-size: 12pt; color: var(--gray-700); margin-top: 10px; }

/* ---------- Financial Table ---------- */
.financial-table th.year { background: var(--blue); }
.financial-table .row-revenue { font-weight: 600; }
.financial-table .row-total {
    background: var(--navy);
    color: var(--white);
    font-weight: 700;
}

/* ---------- Partner Table ---------- */
.partner-table .exclusive { background: #FFF3E0; }
.partner-table .tier-mondial { border-left: 3px solid var(--amber); }
.partner-table .tier-national { border-left: 3px solid var(--blue); }

/* ---------- Chart Container ---------- */
.chart-container {
    width: 100%;
    max-width: 600px;
    margin: 16px auto;
    page-break-inside: avoid;
}

/* ---------- Sector Wrapper ---------- */
.sector-page { page-break-before: always; }

/* ---------- Footer / Header ---------- */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--navy);
    margin-bottom: 16px;
    font-size: 8.5pt;
    color: var(--gray-500);
}
.page-footer {
    border-top: 1px solid var(--gray-200);
    padding-top: 6px;
    margin-top: 20px;
    font-size: 7pt;
    color: #90A4AE;
    text-align: center;
}

/* ---------- Country Variants ---------- */
.country-france .accent { color: var(--blue); }
.country-france .accent-bg { background: var(--blue); }
.country-canada .accent { color: #B22234; }
.country-canada .accent-bg { background: #B22234; }

/* ---------- Print ---------- */
@media print {
    body { background: white; }
    .no-print { display: none !important; }
    canvas { display: none !important; }
    .shadow { box-shadow: none !important; }
}

/* ---------- DataRoom Index ---------- */
.dr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin: 20px 0;
}
.dr-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.2s;
}
.dr-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.dr-card .dr-icon { font-size: 24pt; margin-bottom: 8px; }
.dr-card .dr-title { font-size: 13pt; font-weight: 700; color: var(--navy); }
.dr-card .dr-desc { font-size: 9pt; color: var(--gray-700); margin-top: 6px; }
.dr-card .dr-count { font-size: 8pt; color: var(--gray-500); margin-top: 8px; }

/* ---------- Strategy Page Structure ---------- */
.page { padding: 0; }
.page-break { page-break-before: always; }
.section-body { padding: 0 4px; }
.section-block { margin-bottom: 20px; }
.section-number {
    font-size: 9pt;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    display: block;
    margin-bottom: 4px;
}
.section-title {
    font-size: 16pt;
    font-weight: 700;
    display: block;
}
.highlight-title {
    font-weight: 700;
    font-size: 10pt;
    margin-bottom: 8px;
    color: var(--navy);
}

/* ---------- Table Helpers ---------- */
.td-bold { font-weight: 700; }
.td-right { text-align: right; }
.td-center { text-align: center; }
.td-green { color: var(--green); }
.td-amber { color: var(--amber); }
.table-total-row td {
    background: var(--navy) !important;
    color: var(--white) !important;
    font-weight: 700;
}

/* ---------- Scenario Cards ---------- */
.scenario-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 14px 0;
}
.scenario-card {
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
}
.scenario-card-header {
    padding: 10px 14px;
    color: var(--white);
    font-weight: 700;
    font-size: 10pt;
    text-align: center;
}
.scenario-card-header.pessimiste { background: var(--slate); }
.scenario-card-header.realiste { background: var(--blue); }
.scenario-card-header.optimiste { background: var(--green); }
.scenario-card-body { padding: 10px 14px; }
.scenario-line {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 9pt;
    border-bottom: 1px solid var(--gray-100);
}
.scenario-line:last-child { border-bottom: none; font-weight: 700; }
.scenario-line-label { color: var(--gray-700); }
.scenario-line-value { font-weight: 600; color: var(--navy); }

/* ---------- Value Proposition Grid ---------- */
.value-prop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 14px 0;
}
.value-prop-item {
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--blue);
    border-radius: 0 6px 6px 0;
    padding: 12px 14px;
}
.value-prop-item.amber { border-left-color: var(--amber); }
.value-prop-item.green { border-left-color: var(--green); }
.value-prop-item.navy { border-left-color: var(--navy); }
.value-prop-item-title {
    font-weight: 700;
    font-size: 10pt;
    color: var(--navy);
    margin-bottom: 6px;
}
.value-prop-item-text {
    font-size: 9pt;
    line-height: 1.5;
    color: var(--gray-700);
}

/* ---------- Charts Grid ---------- */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 14px 0;
}
.chart-title {
    font-size: 9pt;
    font-weight: 600;
    color: var(--navy);
    text-align: center;
    margin-bottom: 8px;
}

/* ---------- Roadmap ---------- */
.roadmap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 14px 0;
}
.roadmap-quarter {
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    overflow: hidden;
}
.roadmap-quarter-header {
    background: var(--navy);
    color: var(--white);
    padding: 8px 10px;
    font-size: 9pt;
    font-weight: 700;
    text-align: center;
}
.roadmap-items { padding: 8px 10px; }
.roadmap-item {
    font-size: 8pt;
    padding: 3px 0;
    border-bottom: 1px solid var(--gray-100);
    line-height: 1.4;
}
.roadmap-item:last-child { border-bottom: none; }

/* ---------- Province Grid (Canada) ---------- */
.province-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 14px 0;
}
.province-card {
    border: 1px solid var(--gray-200);
    border-top: 4px solid var(--blue);
    border-radius: 0 0 6px 6px;
    padding: 12px 14px;
}
.province-card.ontario { border-top-color: var(--blue); }
.province-card.quebec { border-top-color: var(--blue-light); }
.province-card.bc { border-top-color: var(--green); }
.province-name {
    font-weight: 700;
    font-size: 11pt;
    color: var(--navy);
    margin-bottom: 6px;
}
.province-stat {
    font-size: 8.5pt;
    padding: 2px 0;
    color: var(--gray-700);
}

/* ---------- Priority Dots ---------- */
.priority-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}
.priority-dot.priority-high { background: var(--red); }
.priority-dot.priority-medium { background: var(--amber); }
.priority-dot.priority-low { background: var(--green); }

/* ---------- Annex Sections ---------- */
.annex-section { margin-bottom: 16px; }
.annex-title {
    font-weight: 700;
    font-size: 10pt;
    color: var(--navy);
    margin-bottom: 6px;
}
.annex-list {
    font-size: 9pt;
    line-height: 1.7;
    padding-left: 20px;
}
.annex-list li { margin-bottom: 2px; }

/* ---------- Per-page footer (strategy) ---------- */
.strat-page-footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--gray-200);
    padding-top: 6px;
    margin-top: 16px;
    font-size: 7pt;
    color: #90A4AE;
}
.strat-page-footer .footer-center { text-align: center; }
