/* ==========================================================================
   MPTENT Comores - Habillage institutionnel des pages des institutions sous tutelle
   Même langage graphique que le reste du site (accueil et pages visiteur) :
   angles discrets, filets fins, motif d'étoile à huit branches, titres serif.
   La couleur propre à chaque institution (--tut-accent) est conservée.
   ========================================================================== */

:root {
    --tr-serif: 'Poppins', sans-serif;
    --tr-line: #dfe6e2;
    --tr-ease: cubic-bezier(.22, .61, .36, 1);
    --tr-shadow: 0 1px 2px rgba(10,40,30,.05), 0 6px 18px rgba(10,40,30,.06);
    --tr-shadow-hover: 0 2px 4px rgba(10,40,30,.08), 0 16px 36px rgba(10,40,30,.12);
    --tr-star-light: url("../images/motif-clair-fin.png");
    --tr-star-dark: url("../images/motif-vert-fin.png");
}

/* ---------- Typographie ---------- */
main h1, main h2, main h3, .section-title, .hero-title { font-family: var(--tr-serif); }
.section-title { font-weight: 700 !important; letter-spacing: -.3px; }
.section-title::before { height: 3px !important; border-radius: 0 !important; width: 56px !important; background: var(--tut-accent) !important; }
.section-title::after { height: 3px !important; border-radius: 0 !important; left: 62px !important; width: 18px !important; }

/* ---------- Bandeau d'en-tête ---------- */
.page-hero {
    min-height: 380px !important;
    border-bottom: 4px solid transparent;
    border-image: linear-gradient(90deg, #F7D117 0 25%, #FFFFFF 25% 50%, #C8102E 50% 75%, #003366 75% 100%) 1;
    background-image:
        linear-gradient(110deg, rgba(4,50,31,.55), rgba(0,51,102,.35)),
        linear-gradient(135deg, var(--tut-accent) 0%, #003366 100%) !important;
}
.page-hero::before {
    background: var(--tr-star-light) !important; background-size: 128px 128px !important;
    background-position: calc(var(--sr-px, 0px) * -1) 0 !important; opacity: 1 !important;
}
.wave-divider-bottom { display: none !important; }
.hero-title { font-weight: 700 !important; letter-spacing: -.4px; text-shadow: none !important; font-size: clamp(2rem, 4.4vw, 3.2rem) !important; }
.hero-title::before { content: ''; display: block; width: 52px; height: 3px; margin-bottom: 18px; background: linear-gradient(90deg, #F7D117 0 25%, #FFFFFF 25% 50%, #C8102E 50% 75%, #003366 75% 100%); }
.hero-breadcrumb { text-transform: uppercase; letter-spacing: .6px; font-size: .78rem !important; }
.hero-breadcrumb a { background: none !important; padding: 0 !important; border-radius: 0 !important; backdrop-filter: none !important; color: rgba(255,255,255,.85) !important; transform: none !important; }
.hero-breadcrumb a:hover { color: #F7D117 !important; background: none !important; }
.hero-logo { border-radius: 4px !important; background: #fff !important; border: 1px solid rgba(255,255,255,.55) !important; backdrop-filter: none !important; box-shadow: 0 10px 30px rgba(0,0,0,.28) !important; }
.hero-logo img { border-radius: 2px !important; }
.hero-sigle { border-radius: 2px !important; letter-spacing: 1.6px; }

/* ---------- Navigation interne (onglets) ---------- */
.tut-nav { box-shadow: 0 1px 0 var(--tr-line), 0 6px 18px rgba(10,40,30,.05) !important; }
.tut-nav a { font-size: .88rem !important; letter-spacing: .3px; }

/* ---------- Sections ---------- */
.section-alt { position: relative; background: #f4f7f5 !important; }
.section-alt::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: var(--tr-star-dark); background-size: 128px 128px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.section-alt > .container { position: relative; z-index: 1; }

/* ---------- Cartes, panneaux, listes : angles discrets, ombres légères ---------- */
.contact-card, .cp-panel, .doc-list, .work-card, .ms-entry, .ms-datebox, .tutelle-badge, .cp-aide-item,
.pub-modal .modal-content, .empty-block, .tut-cta, .doc-search input, .cp-toolbar {
    border-radius: 4px !important;
}
.contact-card, .cp-panel, .doc-list, .work-card, .ms-entry { box-shadow: var(--tr-shadow) !important; border-color: var(--tr-line) !important; }
.work-card { transition: transform .45s var(--tr-ease), box-shadow .45s var(--tr-ease) !important; }
.work-card:hover { transform: translateY(-5px) !important; box-shadow: var(--tr-shadow-hover) !important; }
.contact-card .cc-head { background: linear-gradient(110deg, var(--tut-accent), #003366) !important; font-family: var(--tr-serif); }
.contact-row .ci, .contact-row:hover .ci { border-radius: 3px !important; }
.cp-head { background: linear-gradient(110deg, var(--tut-accent) 0%, #003366 100%) !important; }
.cp-search input { border-radius: 3px !important; box-shadow: 0 6px 20px rgba(0,0,0,.2) !important; }
.cp-search .clear { border-radius: 3px !important; }
.cp-iles button, .cp-iles button .n, .doc-chips button, .pager button, .ms-year span, .ms-status, .work-kind, .doc-meta .tag,
.cp-table .inst, .btn-tut, .btn-tut-outline, .doc-ic, .cp-aide-num, .ms-photo, .pub-modal .pm-desc {
    border-radius: 3px !important;
}
.btn-tut { background: var(--tut-accent) !important; }
.btn-tut:hover, .btn-tut-outline:hover, .pager button:hover:not(:disabled) { transform: none !important; }
.btn-tut:hover { filter: brightness(.9); box-shadow: none !important; }
.pager button.active { background: var(--tut-accent) !important; box-shadow: none !important; }
.cp-iles button { letter-spacing: .2px; }
.tut-cta { background: var(--tr-star-light) 0 0 / 128px 128px, linear-gradient(110deg, #04321f 0%, #064a2e 45%, #003366 100%) !important; }
.tut-cta .btn-light, .tut-cta .btn-outline-light { border-radius: 3px !important; }
.pub-modal .pm-close { border-radius: 3px !important; }
.ms-num { border-width: 2px !important; }

@media (max-width: 767px) {
    .page-hero { min-height: 300px !important; }
}

.hero-logo { color: var(--tut-accent) !important; }
