/* =====================================================================
   AZORLEARN — BROCHURES IMPRIMABLES (A4)
   ===================================================================== */
@page { size: A4; margin: 14mm 13mm 16mm; }

* { box-sizing: border-box; }
html { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
body { margin: 0; padding: 70px 16px 40px; background: #e9eef7; color: #2b3a5c; font-family: "Lexend", "Segoe UI", system-ui, Arial, sans-serif; font-size: 11.5pt; line-height: 1.55; }
body.is-print { padding: 0; background: #fff; }
h1, h2, h3 { margin: 0; color: #0a1a3a; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0 0 8px; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* Barre d'outils (écran uniquement) */
.bp-toolbar { position: fixed; inset: 0 0 auto; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: rgba(255, 255, 255, .94); box-shadow: 0 4px 20px rgba(10, 26, 58, .08); backdrop-filter: blur(8px); }
.bp-toolbar a { color: #0b5fe0; font-weight: 700; font-size: 14px; text-decoration: none; }
.bp-toolbar button { padding: 11px 20px; border: 0; border-radius: 999px; background: #0b5fe0; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }

/* Page */
.bp-page { max-width: 210mm; margin: 0 auto; padding: 14mm 13mm; background: #fff; box-shadow: 0 20px 60px rgba(10, 26, 58, .12); }
.is-print .bp-page { max-width: none; padding: 0; box-shadow: none; }
.bp-page > section { margin-top: 20px; }
.bp-page h2 { margin-bottom: 10px; font-size: 15pt; }
.bp-page h2 small { display: block; margin-top: 2px; color: #6a7a98; font-size: 10pt; font-weight: 500; }
.bp-page h3 { margin: 12px 0 4px; font-size: 11.5pt; }
.bp-page h2, .bp-page h3 { break-after: avoid; page-break-after: avoid; }
.bp-modules > :first-child, .bp-modules > :nth-child(2) { break-before: avoid; }
.bp-avoid, .bp-module, .bp-course, .bp-offer { break-inside: avoid; page-break-inside: avoid; }

/* Couverture */
.bp-cover { position: relative; overflow: hidden; padding: 22px 24px 24px; border-radius: 18px; background: linear-gradient(135deg, #0b2350 0%, var(--c) 130%); color: #fff; }
.bp-cover::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.bp-cover--cat { background: linear-gradient(135deg, #0b2350, #0b5fe0 70%, #43b9f2); }
.bp-cover--tar { background: linear-gradient(135deg, #0b2350, #0b5fe0 60%, #f0892b 140%); }
.bp-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.bp-brand img { width: 40px; height: 40px; padding: 6px; border-radius: 11px; background: #fff; }
.bp-brand span { display: grid; padding-left: 10px; border-left: 2px solid rgba(255, 255, 255, .5); line-height: 1.2; }
.bp-brand b { font-size: 14pt; }
.bp-brand small { font-size: 7.5pt; opacity: .85; }
.bp-tag { display: inline-block; margin-bottom: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-size: 8.5pt; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.bp-cover h1 { max-width: 85%; color: #fff; font-size: 24pt; }
.bp-cover p { max-width: 80%; margin: 8px 0 0; color: rgba(255, 255, 255, .9); font-size: 11pt; }
.bp-facts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.bp-facts > div { padding: 9px 11px; border-radius: 11px; background: rgba(255, 255, 255, .13); }
.bp-facts small { display: block; color: rgba(255, 255, 255, .7); font-size: 7.5pt; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.bp-facts b { font-size: 10pt; }

/* Colonnes */
.bp-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; align-items: start; }
.bp-box { padding: 14px 16px; border-radius: 14px; background: #f3f7fe; }
.bp-checks { display: grid; gap: 6px; }
.bp-checks li { position: relative; padding-left: 22px; font-size: 10.5pt; }
.bp-checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 15px; height: 15px; display: grid; place-items: center; border-radius: 50%; background: var(--c); color: #fff; font-size: 8pt; font-weight: 800; }
.bp-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.bp-chips li { padding: 3px 9px; border: 1px solid #dbe4f2; border-radius: 999px; font-size: 9pt; font-weight: 600; }
.bp-chips--sm li { font-size: 8.5pt; }

/* Modules */
.bp-modules { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bp-module { display: flex; gap: 10px; padding: 10px 12px; border: 1px solid #e4ebf6; border-radius: 12px; }
.bp-module > span { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 9px; background: var(--c); color: #fff; font-size: 10pt; font-weight: 800; }
.bp-module b { display: block; color: #0a1a3a; font-size: 10.5pt; line-height: 1.3; }
.bp-module small { color: var(--c); font-size: 8.5pt; font-weight: 700; }
.bp-module ul { margin-top: 4px; }
.bp-module li { position: relative; padding-left: 10px; color: #4a5a7a; font-size: 9pt; line-height: 1.45; }
.bp-module li::before { content: ""; position: absolute; left: 0; top: 7px; width: 4px; height: 4px; border-radius: 50%; background: var(--c); }

/* Projets */
.bp-projects { display: grid; gap: 7px; counter-reset: p; }
.bp-projects li { position: relative; padding-left: 30px; font-size: 10pt; counter-increment: p; }
.bp-projects li::before { content: counter(p); position: absolute; left: 0; top: 0; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: #0a1a3a; color: #fff; font-size: 8.5pt; font-weight: 800; }
.bp-projects b { display: block; color: #0a1a3a; }
.bp-projects span { color: #5a6a88; }

/* Formules */
.bp-offers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bp-offer { padding: 11px 12px; border: 1.5px solid #e4ebf6; border-top: 4px solid var(--c); border-radius: 12px; }
.bp-offer b { display: block; color: #0a1a3a; font-size: 11pt; }
.bp-offer small { display: block; margin-top: 4px; color: #6a7a98; font-size: 7.5pt; font-weight: 600; }
.bp-offer strong { display: block; margin-bottom: 6px; color: var(--c); font-size: 12pt; }
.bp-offer li { position: relative; padding-left: 12px; color: #4a5a7a; font-size: 8pt; line-height: 1.4; }
.bp-offer li + li { margin-top: 3px; }
.bp-offer li::before { content: "✓"; position: absolute; left: 0; color: var(--c); font-weight: 800; }

/* Catalogue */
.bp-domain h2 { padding-left: 10px; border-left: 4px solid var(--c); }
.bp-course { display: grid; grid-template-columns: 1fr 150px; gap: 14px; margin-bottom: 8px; padding: 12px 14px; border: 1px solid #e4ebf6; border-radius: 12px; }
.bp-course h3 { margin: 0 0 3px; color: var(--c); font-size: 12pt; }
.bp-course p { color: #4a5a7a; font-size: 9.5pt; }
.bp-course dl { display: grid; gap: 4px; margin: 0; align-content: center; padding-left: 12px; border-left: 1px dashed #dbe4f2; }
.bp-course dl > div { display: flex; justify-content: space-between; font-size: 9pt; }
.bp-course dt { color: #6a7a98; }
.bp-course dd { margin: 0; color: #0a1a3a; font-weight: 700; }

/* Tableau */
.bp-table { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
.bp-table th, .bp-table td { padding: 7px 8px; border-bottom: 1px solid #e4ebf6; text-align: center; }
.bp-table th:first-child, .bp-table td:first-child { text-align: left; }
.bp-table thead th { background: #f3f7fe; font-size: 9.5pt; }
.bp-yes { color: #0f8a5f; font-weight: 800; }
.bp-no { color: #b8c3d6; }

/* Pied */
.bp-end { break-inside: avoid; page-break-inside: avoid; }
.bp-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; padding: 12px 14px; border-radius: 14px; background: #0a1a3a; color: #fff; break-inside: avoid; }
.bp-foot b { display: block; color: #8fd0ff; font-size: 8pt; text-transform: uppercase; letter-spacing: .05em; }
.bp-foot span { font-size: 10pt; font-weight: 600; }

@media print {
    body { padding: 0; background: #fff; }
    .bp-toolbar { display: none; }
    .bp-page { max-width: none; padding: 0; box-shadow: none; }
}
@media screen and (max-width: 700px) {
    body { padding: 64px 8px 20px; font-size: 10.5pt; }
    .bp-page { padding: 16px; }
    .bp-cols, .bp-modules, .bp-offers, .bp-facts, .bp-foot { grid-template-columns: 1fr; }
    .bp-course { grid-template-columns: 1fr; }
    .bp-course dl { padding-left: 0; border-left: 0; }
    .bp-cover h1, .bp-cover p { max-width: none; }
    .bp-toolbar button { padding: 9px 14px; font-size: 13px; }
}
@media screen and (max-width: 700px) {
    .bp-table { display: block; overflow-x: auto; white-space: nowrap; }
    .bp-table td:first-child { white-space: normal; min-width: 150px; }
}
