.masters-page { margin-top: 130px; background: #f8f9fa; color: #35465c; }
.masters-page p, .masters-page li { color: #35465c; font-size: 16px; line-height: 1.8; }
.masters-page h1, .masters-page h2, .masters-page h3 { color: #012355; }
.masters-hero { padding: 48px 0; background: linear-gradient(90deg, rgba(255,255,255,.97), rgba(255,255,255,.85)), url('/images/background_2.png') center/cover; border-bottom: 4px solid #F97316; }
.masters-hero h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 20px; }
.masters-hero a { color: #012355; }
.masters-page .masters-eyebrow { margin-top: 36px; color: #c04b00; font-weight: 700; letter-spacing: 1px; }
.masters-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin: 24px 0; }
.masters-page .masters-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 12px 20px; border-radius: 10px; border: 2px solid #F97316; background: transparent; color: #c04b00; font-weight: 700; text-decoration: none; }
.masters-page .masters-button:hover { background: #F97316; color: #fff; }
.masters-document { color: #012355; text-decoration: underline; font-weight: 600; }
.masters-page a:focus-visible { outline: 3px solid #012355; outline-offset: 4px; }
.masters-body { padding-top: 48px; padding-bottom: 56px; }
.masters-page h2 { font-size: 28px; margin-bottom: 20px; }
.masters-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.masters-card { display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.masters-card-header { position: relative; overflow: hidden; padding: 30px; min-height: 310px; background: linear-gradient(135deg, #334d6c, #2c3e50); display: flex; flex-direction: column; }
.masters-card-header::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 42%, rgba(255,255,255,.08) 42%); pointer-events: none; }
.masters-card-header > * { position: relative; }
.masters-card-icon { width: 70px; height: 70px; flex-shrink: 0; border-radius: 15px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.2); color: #fff; font-size: 28px; margin-bottom: 20px; }
.masters-page .masters-card h3 { color: #fff; font-size: 24px; font-weight: 700; line-height: 1.3; margin: 0 0 12px; }
.masters-page .masters-card-subtitle { color: #e0e7ef; margin: auto 0 4px; font-size: 16px; }
.masters-number { color: #e0e7ef; font-size: 14px; }
.masters-number i { margin-right: 6px; }
.masters-card-body { padding: 30px; display: flex; flex-direction: column; flex: 1; }
.masters-page .masters-card-body p { font-size: 14px; line-height: 1.65; }
.masters-card-actions { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.masters-card-actions .masters-document { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; border: 2px solid #F97316; border-radius: 10px; padding: 12px; color: #c04b00; text-decoration: none; }
.masters-card-actions .masters-document:hover { background: #F97316; color: #fff; }
@media (min-width: 1200px) { .masters-page > .container, .masters-hero > .container { max-width: 1320px; width: calc(100% - 60px); } }
.masters-page .masters-unavailable { font-size: 14px; color: #64748b; line-height: 1.6; margin: 0; }
.masters-panel { padding: 32px; margin-top: 32px; background: #fff; border: 1px solid #dce3ed; border-radius: 12px; }
.masters-panel ol { padding-left: 24px; list-style: decimal; }
.masters-panel li { margin-bottom: 10px; }
.masters-note { background: #eef2f7; border-left: 4px solid #334d6c; padding: 16px 20px; margin: 24px 0 0; }
.masters-rib { overflow-wrap: anywhere; }
.masters-table-wrap { overflow-x: auto; }
.masters-page table { width: 100%; border-collapse: collapse; }
.masters-page th, .masters-page td { padding: 16px; border-bottom: 1px solid #dce3ed; text-align: left; font-size: 16px; }
.masters-page thead { background: #334d6c; color: #fff; }
.masters-date-note { display: block; color: #a12f31; font-size: 13px; }
#formations { scroll-margin-top: 150px; }
@media (max-width: 991px) { .masters-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .masters-page { margin-top: 90px; } .masters-grid { grid-template-columns: 1fr; } .masters-panel { padding: 22px; } .masters-hero { padding: 32px 0; } .masters-page h2 { font-size: 24px; } }

.masters-grid.continuing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 767px) { .masters-grid.continuing-grid { grid-template-columns: 1fr; } }
