@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

/* Charte du logo officiel (assets/images/logo-officiel.png). Noms de variables historiques :
   --green = bleu du logo, --green-dark = bleu profond, --gold = jaune du logo, --gold-text = vert du drapeau. */
:root {
    --green: #1C4DB3;
    --green-dark: #0E2C8A;
    --green-light: #DAE0EE;
    --gold: #FBE45A;
    --gold-text: #0A6C05;
    --paper: #F4F6F9;
    --white: #FFFFFF;
    --border: #D5DAE7;
    --ink: #1F273B;
    --muted: #4F5668;
    --serif: 'Amiri', Georgia, serif;
    --sans: 'IBM Plex Sans Arabic', Tahoma, sans-serif;
    --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.8; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { color: inherit; }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--white); color: var(--green-dark); }
.skip-link:focus { top: 12px; }

.topbar { background: var(--green-dark); color: #E7EBF3; font-size: 13px; }
.topbar-inner, .topbar-contact, .topbar-links { display: flex; align-items: center; }
.topbar-inner { justify-content: space-between; min-height: 40px; gap: 20px; }
.topbar-contact { gap: 24px; }
.topbar-contact a, .topbar-location { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar-contact svg, .topbar-links svg { width: 15px; height: 15px; color: var(--gold); }
.topbar-links { gap: 16px; }
.topbar-links a { display: inline-flex; align-items: center; }
.topbar-links .language-link { border-inline-start: 1px solid rgb(255 255 255 / 24%); padding-inline-start: 15px; color: var(--gold); }

.site-header { position: relative; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 94px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 12px; min-width: 240px; }
.brand img { width: 54px; height: 54px; }
.brand-copy { display: grid; line-height: 1.45; }
.brand-copy strong { font-family: var(--serif); font-size: 19px; color: var(--green-dark); font-weight: 700; }
.brand-copy small { font-size: 11px; color: var(--muted); }
.main-navigation { display: flex; align-items: center; gap: 16px; }
.main-navigation > a:not(.button) { position: relative; padding-block: 8px; color: #373D4A; font-size: 13px; white-space: nowrap; }
.main-navigation > a:not(.button)::after { position: absolute; right: 0; bottom: 2px; width: 0; height: 2px; background: var(--gold-text); content: ''; transition: width .2s ease; }
.main-navigation > a:not(.button):hover::after, .main-navigation > a.is-active::after { width: 100%; }
.main-navigation > a.is-active { color: var(--green-dark); font-weight: 700; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 10px 20px; border: 1px solid var(--green); border-radius: 3px; background: var(--green); color: var(--white); font-weight: 600; font-size: 14px; transition: background .18s ease, color .18s ease, transform .18s ease; }
.button:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); }
.button svg { width: 18px; height: 18px; }
.button-small { min-height: 40px; padding: 7px 13px; font-size: 13px; }
.button-light { background: var(--gold); border-color: var(--gold); color: var(--green-dark); }
.button-light:hover { background: #FCF4BE; border-color: #FCF4BE; color: var(--green-dark); }
.button-outline { border-color: var(--green); background: transparent; color: var(--green); }
.button-outline:hover { color: var(--white); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border); background: transparent; }
.menu-toggle span { display: block; width: 19px; height: 1.5px; margin: 5px auto; background: var(--green-dark); }

.hero-section { position: relative; overflow: hidden; padding-block: 50px 58px; background-color: var(--paper); background-image: radial-gradient(#C5C9D3 0.55px, transparent 0.55px); background-size: 18px 18px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(480px, 1.05fr); align-items: center; gap: clamp(35px, 6vw, 82px); }
.hero-copy { position: relative; z-index: 1; padding-block: 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--gold-text); font-size: 12px; font-weight: 700; }
.eyebrow-mark { width: 24px; height: 2px; background: var(--gold-text); }
.hero-copy h1 { max-width: 580px; margin: 20px 0 18px; color: var(--green-dark); font-family: var(--serif); font-size: 50px; font-weight: 700; line-height: 1.32; }
.hero-copy h1 em { display: block; color: var(--green); font-style: normal; }
.hero-copy > p { max-width: 510px; margin: 0; color: var(--muted); font-size: 17px; line-height: 2; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 28px; }
.text-link { display: inline-flex; align-items: center; gap: 11px; color: var(--green-dark); font-weight: 600; font-size: 14px; }
.text-link span { color: var(--gold-text); transition: transform .2s ease; }
.text-link:hover span { transform: translateX(-4px); }
.hero-meta { display: flex; align-items: center; gap: 12px; margin-top: 42px; color: #5D667B; font-size: 12px; }
.hero-meta-line { width: 40px; height: 1px; background: var(--gold-text); }
.hero-media { min-width: 0; }
.hero-image-frame { position: relative; height: 420px; background: var(--green-dark); overflow: hidden; }
.hero-image-frame::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgb(10 19 42 / 76%), transparent 45%); content: ''; pointer-events: none; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.hero-slide.is-current { opacity: 1; }
.hero-image-caption { position: absolute; right: 25px; bottom: 22px; left: 25px; z-index: 1; display: grid; grid-template-columns: 1fr 42px; align-items: end; gap: 2px 16px; color: var(--white); }
.hero-image-caption > span { grid-column: 1; color: var(--gold); font-size: 12px; }
.hero-image-caption strong { grid-column: 1; max-width: 85%; font-family: var(--serif); font-size: 20px; line-height: 1.5; }
.hero-image-caption a { grid-column: 2; grid-row: 1 / span 2; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgb(255 255 255 / 68%); border-radius: 50%; font-size: 20px; }
.hero-slider-controls { display: flex; align-items: center; justify-content: space-between; min-height: 54px; }
.slider-dots, .slider-arrows { display: flex; align-items: center; gap: 9px; }
.slider-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: #A7AEBD; cursor: pointer; }
.slider-dot.is-current { width: 22px; border-radius: 10px; background: var(--green); }
.slider-arrows button { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--border); background: transparent; cursor: pointer; }
.slider-arrows button:hover { border-color: var(--green); color: var(--green); }
.slider-arrows svg { width: 16px; height: 16px; }

.success-band { background: var(--green); color: var(--white); }
.success-inner { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); align-items: center; gap: 0; min-height: 105px; }
.success-intro, .success-stat { display: grid; align-content: center; min-height: 65px; padding-inline: 26px; border-inline-start: 1px solid rgb(255 255 255 / 18%); }
.success-intro { padding-inline-start: 0; border: 0; }
.success-intro span, .success-stat > span:first-child { color: #D0D6E5; font-size: 12px; }
.success-intro strong { font-family: var(--serif); font-size: 22px; }
.success-stat { grid-template-columns: 1fr auto; align-items: center; gap: 0 12px; }
.success-stat strong { color: var(--gold); font-family: var(--serif); font-size: 27px; line-height: 1.2; }
.success-stat strong small { font-family: var(--sans); font-size: 14px; }
.stat-track { grid-column: 1 / -1; height: 3px; margin-top: 10px; background: rgb(255 255 255 / 22%); }
.stat-track i { display: block; width: var(--value, 0); height: 100%; background: var(--gold); }

.section { padding-block: 76px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin: 3px 0 0; color: var(--green-dark); font-family: var(--serif); font-size: 34px; line-height: 1.35; }
.section-programs { background: var(--paper); }
.program-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.program-card { position: relative; min-width: 0; padding: 25px 24px 21px; border: 1px solid var(--border); background: var(--white); }
.program-index { color: #4A78D6; font-family: var(--serif); font-size: 15px; }
.program-rule { display: block; width: 34px; height: 2px; margin-block: 14px 11px; background: var(--gold-text); }
.program-card h2, .program-card h3 { margin: 0 0 9px; color: var(--green-dark); font-family: var(--serif); font-size: 23px; line-height: 1.5; }
.program-card > p { margin: 0; color: var(--muted); font-size: 14px; }
.program-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--gold-text); font-size: 12px; }
.program-card-footer a { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid var(--border); color: var(--green); }
.program-card-footer svg { width: 16px; height: 16px; }
.program-card-2 { background: #EBEDF3; }
.program-card-3 { background: #EFF1F6; }

.director-section { padding-block: 54px; background: #E3E7F0; }
.director-grid { display: grid; grid-template-columns: 190px 1fr 52px; align-items: center; gap: 38px; }
.director-index { display: grid; align-content: center; gap: 4px; color: var(--muted); font-size: 12px; }
.director-index strong { color: var(--green-dark); font-family: var(--serif); font-size: 31px; line-height: 1.2; }
.director-index-line { width: 34px; height: 2px; margin-block: 11px; background: var(--gold-text); }
.director-quote { position: relative; padding-inline-start: 42px; border-inline-start: 1px solid #C3C7D1; }
.quote-mark { position: absolute; top: -16px; inset-inline-start: 10px; color: #4A78D6; font-family: var(--serif); font-size: 50px; line-height: 1; }
.director-quote blockquote { margin: 0; color: #333844; font-family: var(--serif); font-size: 19px; line-height: 1.9; }
.director-signature { display: grid; gap: 1px; margin-top: 17px; }
.director-signature strong { color: var(--green-dark); font-size: 14px; }
.director-signature span { color: var(--muted); font-size: 12px; }
.director-link { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid #A5ACBB; border-radius: 50%; color: var(--green); }
.director-link svg { width: 20px; height: 20px; }

.section-news { background: var(--white); }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 18px; }
.news-card { min-width: 0; }
.news-image { position: relative; display: block; width: 100%; aspect-ratio: 1.52 / 1; overflow: hidden; background: #D9DEEA; }
.news-image > img, .news-image-placeholder > img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.news-image:hover > img { transform: scale(1.035); }
.news-image-placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: #E5E9F1; }
.news-image-placeholder img { width: 82px; height: 82px; }
.news-image-arrow { position: absolute; top: 11px; inset-inline-start: 11px; display: grid; place-items: center; width: 31px; height: 31px; background: var(--gold); color: var(--green-dark); }
.news-card-content { padding: 14px 1px 0; }
.news-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; }
.news-meta > span { color: var(--gold-text); font-weight: 600; }
.news-meta time { border-inline-start: 1px solid var(--border); padding-inline-start: 12px; }
.news-card h2, .news-card h3 { margin: 8px 0 7px; color: var(--green-dark); font-family: var(--serif); font-size: 20px; line-height: 1.5; }
.news-card-content > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.read-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 11px; color: var(--green); font-size: 13px; font-weight: 600; }
.news-featured { grid-column: span 2; display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; align-items: center; }
.news-featured .news-image { height: 100%; min-height: 250px; aspect-ratio: auto; }
.news-featured .news-card-content { padding-inline: 2px; }
.news-featured h3, .news-featured h2 { font-size: 24px; }

.section-gallery { background: #E9ECF2; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 21px; }
.filter-chip { min-height: 34px; padding: 5px 14px; border: 1px solid #C2CADC; color: var(--muted); font-size: 12px; }
.filter-chip:hover, .filter-chip.is-active { border-color: var(--green); background: var(--green); color: var(--white); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gallery-tile { position: relative; display: block; min-width: 0; aspect-ratio: 1.1 / 1; overflow: hidden; padding: 0; border: 0; background: #C5C9D3; cursor: pointer; text-align: right; }
.gallery-tile > img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-tile:hover > img { transform: scale(1.04); }
.gallery-tile-caption { position: absolute; right: 0; bottom: 0; left: 0; display: flex; align-items: end; justify-content: space-between; gap: 8px; min-height: 62px; padding: 24px 12px 10px; background: linear-gradient(0deg, rgb(14 27 56 / 82%), transparent); color: var(--white); font-size: 12px; }
.gallery-tile-caption > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-type-icon { display: grid; place-items: center; flex: 0 0 25px; width: 25px; height: 25px; border: 1px solid rgb(255 255 255 / 60%); border-radius: 50%; font-size: 10px; }
.video-poster { display: grid; place-items: center; width: 100%; height: 100%; background: var(--green-dark); color: var(--gold); }
.video-poster svg { width: 45px; height: 45px; fill: none; stroke-width: 1.4; }
.lightbox { position: fixed; inset: 0; width: min(1000px, calc(100% - 36px)); max-width: none; max-height: calc(100% - 36px); padding: 54px 20px 18px; border: 1px solid rgb(255 255 255 / 20%); background: #06144A; color: var(--white); }
.lightbox::backdrop { background: rgb(5 13 31 / 86%); }
.lightbox-close { position: absolute; top: 9px; left: 12px; width: 38px; height: 38px; border: 1px solid rgb(255 255 255 / 40%); background: transparent; color: var(--white); font-size: 26px; line-height: 1; cursor: pointer; }
.lightbox-content { display: grid; place-items: center; min-height: 200px; height: min(68vh, 620px); }
.lightbox-content img, .lightbox-content iframe { width: 100%; height: 100%; max-height: 100%; object-fit: contain; border: 0; }
.lightbox > p { margin: 12px 0 0; color: #D2D8E6; text-align: center; }

.section-branches { background: var(--paper); }
.branch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.branch-card { position: relative; min-height: 185px; padding: 22px 24px; border: 1px solid var(--border); background: var(--white); }
.branch-number { color: #4A78D6; font-family: var(--serif); font-size: 14px; }
.branch-pin { position: absolute; top: 22px; inset-inline-end: 24px; width: 23px; height: 23px; color: var(--green); }
.branch-card h2, .branch-card h3 { margin: 17px 0 0; color: var(--green-dark); font-family: var(--serif); font-size: 26px; }
.branch-card p { margin: 1px 0 13px; color: var(--muted); font-size: 13px; }
.branch-card > a { display: inline-flex; gap: 8px; color: var(--green); font-size: 12px; font-weight: 600; }
.registration-band { padding-block: 45px; background: var(--green-dark); color: var(--white); }
.registration-grid { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.registration-band .eyebrow { color: var(--gold); }
.registration-band h2 { margin: 5px 0; font-family: var(--serif); font-size: 31px; }
.registration-band p { margin: 0; color: #CCD3E3; font-size: 14px; }
.quick-register { display: flex; align-items: center; gap: 18px; }
.quick-register > span { color: #CCD3E3; font-size: 13px; }

.site-footer { background: #081F6E; color: #E4E8F0; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .85fr 1fr 1fr; gap: 32px; padding-block: 48px 42px; }
.footer-brand { min-width: 0; }
.footer-brand .brand-copy strong { color: var(--white); }
.footer-brand .brand-copy small { color: #C1C5D0; }
.footer-about > p, .footer-grid > div:not(.footer-about) > p { color: #C1C5D0; font-size: 13px; }
.footer-grid h2 { margin: 0 0 13px; color: var(--gold); font-family: var(--serif); font-size: 19px; }
.footer-grid > div:not(.footer-about) > a { display: block; width: fit-content; margin-block: 5px; color: #E4E8F0; font-size: 13px; }
.footer-grid a:hover { color: var(--gold); }
.footer-cta { padding-inline-start: 22px; border-inline-start: 1px solid rgb(255 255 255 / 16%); }
.footer-cta .button { margin-top: 10px; }
.footer-grid .footer-cta > a.button-light, .footer-grid .footer-cta > a.button-light:hover { color: var(--green-dark); }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / 13%); color: #C1C5D0; font-size: 11px; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; min-height: 42px; }
.footer-bottom a { color: var(--gold); }

.inner-hero { padding-block: 36px 42px; border-bottom: 1px solid var(--border); background: #E8EBF2; }
.inner-hero h1 { margin: 8px 0 5px; color: var(--green-dark); font-family: var(--serif); font-size: 40px; line-height: 1.35; }
.inner-hero p { max-width: 720px; margin: 0; color: var(--muted); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 22px; color: var(--muted); font-size: 12px; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb > span:last-child { overflow: hidden; max-width: 65ch; color: var(--green-dark); text-overflow: ellipsis; white-space: nowrap; }
.archive-news { row-gap: 32px; }
.archive-news h2 { font-size: 21px; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 40px; }
.pagination a { display: grid; place-items: center; min-width: 38px; height: 38px; padding-inline: 10px; border: 1px solid var(--border); background: var(--white); color: var(--green); }
.pagination a.is-current, .pagination a:hover { border-color: var(--green); background: var(--green); color: var(--white); }

.article-page { padding-block: 28px 78px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 50px; }
.article-main { min-width: 0; }
.article-kicker { display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: 12px; }
.article-kicker > span { color: var(--gold-text); }
.article-main > h1 { margin: 12px 0 22px; color: var(--green-dark); font-family: var(--serif); font-size: 40px; line-height: 1.45; }
.article-cover { margin: 0 0 26px; max-height: 520px; overflow: hidden; background: #D9DEEA; }
.article-cover img { width: 100%; max-height: 520px; object-fit: cover; }
.article-content { color: #2A2E37; font-size: 16px; line-height: 2.05; overflow-wrap: anywhere; }
.article-content p { margin: 0 0 18px; }
.article-content h2, .article-content h3 { margin: 30px 0 12px; color: var(--green-dark); font-family: var(--serif); }
.article-content a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.article-content img { max-width: 100%; height: auto; margin: 18px auto; }
.article-content ul, .article-content ol { padding-inline-start: 25px; }
.article-sidebar { display: grid; align-content: start; gap: 20px; }
.sidebar-register { padding: 23px; background: var(--green); color: var(--white); }
.sidebar-register > span { color: var(--gold); font-size: 12px; }
.sidebar-register h2, .related-box h2 { margin: 4px 0 8px; font-family: var(--serif); font-size: 22px; line-height: 1.4; }
.sidebar-register p { color: #E0E4ED; font-size: 13px; }
.related-box { padding: 20px; border: 1px solid var(--border); background: var(--white); }
.related-box h2 { color: var(--green-dark); }
.related-link { display: grid; gap: 4px; padding-block: 10px; border-top: 1px solid var(--border); color: var(--green-dark); font-family: var(--serif); font-size: 15px; }
.related-link time { color: var(--muted); font-family: var(--sans); font-size: 11px; }
.share-row { display: flex; align-items: center; gap: 9px; margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12px; }
.share-row > span { margin-inline-end: auto; color: var(--muted); }
.share-row a { padding: 5px 11px; border: 1px solid var(--border); color: var(--green); }

.program-grid-page { align-items: start; }
.program-grid-page .program-card { min-height: 360px; }
.program-duration { padding: 10px 12px; border-inline-start: 2px solid var(--gold-text); background: #EEF1F6; color: var(--gold-text) !important; font-size: 13px !important; }
.program-description { max-height: 260px; margin-top: 13px; overflow: auto; padding-inline-end: 5px; font-size: 14px; }
.program-description p { margin-bottom: 10px; }
.program-card .button { margin-top: 17px; }
.branch-grid-page { padding-block: 6px; }
.branch-card-large { min-height: 220px; }
.branch-card-large h2 { font-size: 32px; }
.content-page-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 48px; }
.content-page-aside { display: grid; align-content: start; gap: 6px; color: var(--muted); font-size: 13px; }
.aside-numeral { color: var(--gold-text); font-family: var(--serif); font-size: 36px; }
.content-page-body { max-width: 850px; }
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 45px; }
.contact-details h2, .contact-note h2 { margin: 4px 0 22px; color: var(--green-dark); font-family: var(--serif); font-size: 30px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; padding-block: 17px; border-bottom: 1px solid var(--border); }
.contact-item > svg { flex: 0 0 22px; margin-top: 4px; color: var(--green); }
.contact-item > div { display: grid; gap: 3px; }
.contact-item > div > span { color: var(--muted); font-size: 12px; }
.contact-item strong, .contact-item a { color: var(--green-dark); font-weight: 500; }
.contact-social { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 21px; color: var(--green); font-size: 13px; }
.contact-note { align-self: start; padding: 28px; border: 1px solid var(--border); background: var(--white); }
.contact-note-index { color: var(--gold-text); font-size: 12px; }
.contact-note p { color: var(--muted); }
.contact-source-note { margin-top: 26px; font-size: 11px; }
.register-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 55px; align-items: start; }
.register-aside { display: grid; gap: 5px; padding: 22px; background: var(--green); color: var(--white); }
.register-aside h2 { margin: 0; font-family: var(--serif); font-size: 25px; }
.register-aside p, .register-aside a { margin: 0; color: #D9DEEA; font-size: 13px; }
.register-aside .aside-numeral { color: var(--gold); }
.register-main { min-width: 0; }
.registration-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; padding: 28px; border: 1px solid var(--border); background: var(--white); }
.form-heading, .form-submit-row { grid-column: 1 / -1; }
.form-heading > span { color: var(--gold-text); font-size: 12px; }
.form-heading h2 { margin: 1px 0 3px; color: var(--green-dark); font-family: var(--serif); font-size: 27px; }
.form-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.field { display: grid; gap: 7px; color: var(--green-dark); font-size: 13px; font-weight: 600; }
.field input, .field select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #CAD1E1; border-radius: 2px; background: #fff; color: var(--ink); font-weight: 400; }
.field input:focus, .field select:focus { outline: 2px solid #8A9AC1; outline-offset: 1px; border-color: var(--green); }
.form-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 4px; padding-top: 18px; border-top: 1px solid var(--border); }
.form-submit-row p { max-width: 430px; margin: 0; color: var(--muted); font-size: 12px; }
.form-success, .form-errors { display: grid; gap: 3px; margin-bottom: 16px; padding: 15px 18px; border-inline-start: 3px solid var(--green); background: #E6EAF3; color: var(--green-dark); }
.form-errors { border-color: #9b3c31; background: #f8e9e5; color: #66271f; }
.form-errors ul { margin: 3px 0 0; padding-inline-start: 21px; }
.french-panel { display: grid; grid-template-columns: minmax(0, 700px); justify-content: center; }
.french-panel > div { padding: 28px; border: 1px solid var(--border); background: var(--white); }
.french-panel h2 { color: var(--green-dark); font-family: var(--serif); }
.french-panel p { color: var(--muted); }
.not-found { display: grid; align-content: center; min-height: 48vh; padding-block: 60px; }
.not-found h1 { margin: 6px 0; color: var(--green-dark); font-family: var(--serif); font-size: 40px; }
.not-found p { color: var(--muted); }
.not-found > div { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 14px; }

@media (max-width: 1080px) {
    .main-navigation { gap: 10px; }
    .main-navigation > a:not(.button) { font-size: 12px; }
    .brand { min-width: 210px; }
    .brand-copy strong { font-size: 17px; }
    .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr); gap: 38px; }
    .hero-copy h1 { font-size: 44px; }
    .hero-image-frame { height: 380px; }
}
@media (max-width: 860px) {
    .container { width: min(100% - 36px, var(--container)); }
    .header-inner { min-height: 78px; }
    .menu-toggle { display: block; order: 3; }
    .main-navigation { position: absolute; top: 100%; right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 9px 18px 18px; border-bottom: 1px solid var(--border); background: var(--paper); box-shadow: 0 12px 22px rgb(24 33 54 / 9%); }
    .main-navigation.is-open { display: grid; }
    .main-navigation > a:not(.button) { padding: 10px 4px; border-bottom: 1px solid var(--border); font-size: 14px; }
    .main-navigation > a:not(.button)::after { display: none; }
    .main-navigation .nav-apply { margin-top: 10px; }
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .hero-image-frame { height: 350px; }
    .hero-copy h1 { font-size: 38px; }
    .hero-copy > p { font-size: 15px; }
    .success-inner { grid-template-columns: repeat(3, 1fr); padding-block: 15px; }
    .success-intro { grid-column: 1 / -1; padding: 0 0 10px; }
    .success-stat { padding-inline: 14px; }
    .success-stat:first-of-type { border: 0; }
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .news-featured { grid-column: span 2; }
    .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-layout { grid-template-columns: minmax(0, 1fr) 245px; gap: 25px; }
    .program-grid-page .program-card { min-height: 0; }
}
@media (max-width: 640px) {
    body { font-size: 15px; }
    .container { width: calc(100% - 30px); }
    .topbar-inner { min-height: 38px; }
    .topbar-contact { gap: 10px; }
    .topbar-location { display: none; }
    .topbar-contact a { font-size: 11px; }
    .topbar-contact a:nth-of-type(2) { display: none; }
    .topbar-links { gap: 12px; }
    .topbar-links a:nth-child(2) { display: none; }
    .header-inner { gap: 8px; min-height: 72px; }
    .brand { gap: 8px; min-width: 0; }
    .brand img { width: 43px; height: 43px; }
    .brand-copy strong { max-width: 230px; font-size: 15px; }
    .brand-copy small { max-width: 225px; font-size: 9px; }
    .hero-section { padding-block: 29px 25px; }
    .hero-grid { grid-template-columns: 1fr; gap: 25px; }
    .hero-copy { padding-block: 0; }
    .hero-copy h1 { max-width: 440px; margin-block: 13px 10px; font-size: 37px; }
    .hero-copy > p { font-size: 14px; }
    .hero-actions { gap: 16px; margin-top: 19px; }
    .hero-actions .button { min-height: 44px; padding-inline: 14px; font-size: 13px; }
    .hero-meta { margin-top: 19px; }
    .hero-image-frame { height: 295px; }
    .hero-image-caption { right: 15px; bottom: 15px; left: 15px; }
    .hero-image-caption strong { max-width: 100%; font-size: 18px; }
    .success-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 0; padding-block: 15px; }
    .success-intro { padding-bottom: 6px; }
    .success-intro strong { font-size: 19px; }
    .success-stat { min-height: 57px; padding-inline: 8px; }
    .success-stat > span:first-child { font-size: 10px; }
    .success-stat strong { font-size: 23px; }
    .success-stat strong small { font-size: 11px; }
    .stat-track { margin-top: 5px; }
    .section { padding-block: 47px; }
    .section-heading { align-items: start; margin-bottom: 19px; }
    .section-heading h2 { font-size: 28px; }
    .section-heading > .text-link { margin-top: 20px; font-size: 12px; white-space: nowrap; }
    .program-grid { grid-template-columns: 1fr; gap: 10px; }
    .program-card { padding: 20px; }
    .program-card h3, .program-card h2 { font-size: 21px; }
    .director-section { padding-block: 33px; }
    .director-grid { grid-template-columns: 1fr 42px; gap: 14px; }
    .director-index { grid-column: 1 / -1; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
    .director-index strong { font-size: 22px; }
    .director-index strong br { display: none; }
    .director-index-line { width: 22px; margin: 0; }
    .director-quote { padding-inline-start: 25px; }
    .quote-mark { inset-inline-start: 2px; font-size: 37px; }
    .director-quote blockquote { font-size: 16px; }
    .director-link { width: 38px; height: 38px; }
    .news-grid { grid-template-columns: 1fr; gap: 22px; }
    .news-featured { grid-column: auto; display: block; }
    .news-featured .news-image { width: 100%; height: auto; min-height: 0; aspect-ratio: 1.52 / 1; }
    .news-featured .news-card-content { padding-top: 13px; }
    .news-featured h3, .news-featured h2 { font-size: 21px; }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .gallery-tile { aspect-ratio: 1 / 1; }
    .gallery-tile-caption { min-height: 51px; padding: 19px 8px 7px; font-size: 10px; }
    .gallery-type-icon { flex-basis: 22px; width: 22px; height: 22px; }
    .branch-grid { grid-template-columns: 1fr; gap: 9px; }
    .branch-card { min-height: 150px; }
    .registration-grid { align-items: start; flex-direction: column; gap: 19px; }
    .registration-band { padding-block: 32px; }
    .registration-band h2 { font-size: 27px; }
    .quick-register { width: 100%; align-items: start; flex-direction: column; gap: 8px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 25px 14px; padding-block: 36px 30px; }
    .footer-about { grid-column: 1 / -1; }
    .footer-grid h2 { font-size: 18px; }
    .footer-cta { padding-inline-start: 0; border: 0; }
    .footer-bottom .container { gap: 8px; font-size: 10px; }
    .inner-hero { padding-block: 24px 30px; }
    .breadcrumb { margin-bottom: 15px; }
    .inner-hero h1 { font-size: 32px; }
    .inner-hero p { font-size: 14px; }
    .archive-news { grid-template-columns: 1fr; }
    .article-page { padding-block: 22px 48px; }
    .article-layout { grid-template-columns: 1fr; gap: 28px; }
    .article-main > h1 { font-size: 31px; }
    .article-content { font-size: 15px; }
    .article-cover img { max-height: 320px; }
    .article-sidebar { grid-template-columns: 1fr; }
    .program-grid-page { grid-template-columns: 1fr; }
    .content-page-layout { grid-template-columns: 1fr; gap: 14px; }
    .content-page-aside { grid-template-columns: auto 1fr; align-items: center; }
    .aside-numeral { font-size: 27px; }
    .contact-grid { grid-template-columns: 1fr; gap: 27px; }
    .register-layout { grid-template-columns: 1fr; gap: 21px; }
    .registration-form { grid-template-columns: 1fr; gap: 15px; padding: 20px; }
    .form-heading, .form-submit-row { grid-column: auto; }
    .form-submit-row { align-items: stretch; flex-direction: column; }
    .form-submit-row .button { width: 100%; }
    .not-found h1 { font-size: 32px; }
}
/* ==== Habillage v2 : logo, icônes, motif, animations ==== */
:root {
    --radius: 14px;
    --shadow-sm: 0 2px 10px rgb(14 44 138 / 6%);
    --shadow: 0 16px 34px -14px rgb(14 44 138 / 28%);
    --shadow-lg: 0 34px 60px -22px rgb(6 20 51 / 45%);
    --ease: cubic-bezier(.22, .7, .2, 1);
    --pattern-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%231C4DB3' stroke-opacity='.2'%3E%3Crect x='20' y='20' width='24' height='24'/%3E%3Crect x='20' y='20' width='24' height='24' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3Cpath d='M0 32h8M56 32h8M32 0v8M32 56v8'/%3E%3C/g%3E%3C/svg%3E");
    --pattern-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23FBE45A' stroke-opacity='.11'%3E%3Crect x='20' y='20' width='24' height='24'/%3E%3Crect x='20' y='20' width='24' height='24' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3Cpath d='M0 32h8M56 32h8M32 0v8M32 56v8'/%3E%3C/g%3E%3C/svg%3E");
}
.icon { flex: 0 0 auto; }
.eyebrow-icon { width: 13px; height: 13px; fill: currentColor; stroke: none; }

/* En-tête collant */
.site-header { position: sticky; top: 0; z-index: 40; transition: background .3s ease, box-shadow .3s ease; }
.site-header.is-scrolled { background: rgb(244 246 249 / 93%); box-shadow: 0 10px 26px -16px rgb(14 44 138 / 45%); backdrop-filter: blur(10px); }
.header-inner { transition: min-height .3s var(--ease); }
.site-header.is-scrolled .header-inner { min-height: 74px; }
.brand img { width: 58px; height: 58px; filter: drop-shadow(0 5px 10px rgb(14 44 138 / 20%)); transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-10deg) scale(1.06); }
.site-header.is-scrolled .brand img { width: 50px; height: 50px; }

/* Boutons */
.button { position: relative; overflow: hidden; border-radius: 10px; box-shadow: 0 8px 18px -10px rgb(28 77 179 / 70%); }
.button svg { transition: transform .25s var(--ease); }
.button:hover svg.icon { transform: translateX(-4px); }
.button-glow::after { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 35%) 50%, transparent 65%); transform: translateX(120%); content: ''; pointer-events: none; }
.button-glow:hover::after { transform: translateX(-120%); transition: transform .8s ease; }
.button-light { box-shadow: 0 8px 18px -10px rgb(0 0 0 / 50%); }

/* Accueil : bandeau principal */
.hero-section { background-image: radial-gradient(circle at 88% 12%, rgb(251 228 90 / 38%), transparent 38%), radial-gradient(circle at 8% 92%, rgb(28 77 179 / 10%), transparent 42%); }
.hero-pattern { position: absolute; inset: 0; background: var(--pattern-gold); pointer-events: none; opacity: .8; -webkit-mask-image: linear-gradient(to right, #000, transparent 65%); mask-image: linear-gradient(to right, #000, transparent 65%); }
.hero-enter { animation: fade-up .9s var(--ease) both; }
.hero-copy > .hero-enter:nth-child(2) { animation-delay: .08s; }
.hero-copy > .hero-enter:nth-child(3) { animation-delay: .16s; }
.hero-copy > .hero-enter:nth-child(4) { animation-delay: .24s; }
.hero-copy > .hero-enter:nth-child(5) { animation-delay: .32s; }
.hero-highlights { display: flex; flex-wrap: wrap; gap: 14px 24px; margin: 36px 0 0; padding: 0; list-style: none; }
.hero-highlights li { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.hero-highlights strong { display: block; color: var(--green-dark); font-size: 15px; }
.hero-highlight-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 13px; background: var(--white); color: var(--green); box-shadow: var(--shadow-sm); }
.hero-media { --hero-h: 440px; position: relative; isolation: isolate; animation: fade-in 1.1s .15s var(--ease) both; }
.hero-media::before { position: absolute; top: 20px; right: 20px; left: -20px; z-index: -1; height: var(--hero-h); border: 2px solid rgb(230 196 0 / 42%); border-radius: 26px; content: ''; }
.hero-image-frame { height: var(--hero-h); border-radius: 22px; box-shadow: var(--shadow-lg); }
.hero-image-frame::after { background: linear-gradient(0deg, rgb(7 18 42 / 82%), rgb(7 18 42 / 10%) 50%, transparent 70%); }
.hero-slide { transform: scale(1.12); transition: opacity 1.2s ease, transform 0s linear 1.2s; }
.hero-slide.is-current { opacity: 1; transform: scale(1); transition: opacity 1.2s ease, transform 7.5s linear; }
.hero-image-caption > * { transition: opacity .45s ease, transform .45s var(--ease); }
.hero-image-caption.is-changing > * { opacity: 0; transform: translateY(10px); }
.hero-image-caption > span { font-weight: 600; letter-spacing: .02em; }
.hero-image-caption strong { font-size: 23px; text-shadow: 0 2px 12px rgb(0 0 0 / 35%); }
.hero-image-caption a { width: 46px; height: 46px; background: rgb(255 255 255 / 12%); backdrop-filter: blur(6px); transition: background .25s ease, color .25s ease, transform .25s ease; }
.hero-image-caption a:hover { border-color: var(--gold); background: var(--gold); color: var(--green-dark); transform: scale(1.06); }
.hero-image-caption a svg { width: 19px; height: 19px; }
.hero-progress { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; height: 3px; background: rgb(255 255 255 / 16%); }
.hero-progress i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, #F5D82A, var(--gold)); transform: scaleX(0); transform-origin: right; }
.hero-progress i.is-running { animation: slide-progress var(--slide-duration, 6s) linear forwards; }
[data-slider].is-paused .hero-progress i { animation-play-state: paused; }
.hero-badge { position: absolute; top: -28px; left: -28px; z-index: 3; width: 92px; height: 92px; border-radius: 50%; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
.hero-slider-controls { margin-top: 10px; }
.slide-counter { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.slide-counter strong { color: var(--green-dark); font-family: var(--serif); font-size: 20px; }
.slider-arrows button { width: 42px; height: 42px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-sm); color: var(--green-dark); transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease; }
.slider-arrows button:hover { border-color: var(--green); background: var(--green); color: var(--white); transform: translateY(-2px); }
.slider-arrows .icon-play, [data-slider-pause][aria-pressed="true"] .icon-pause { display: none; }
[data-slider-pause][aria-pressed="true"] .icon-play { display: block; }

/* Bande des résultats */
.success-band { position: relative; background: var(--pattern-light), linear-gradient(120deg, var(--green-dark), var(--green) 55%, #2A62D6); }
.success-intro { display: flex; align-items: center; gap: 14px; }
.success-intro > span:last-child { display: grid; color: inherit; font-size: inherit; }
.success-intro-icon { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid rgb(251 228 90 / 35%); border-radius: 14px; background: rgb(255 255 255 / 8%); color: var(--gold); }
.success-intro-icon svg { width: 24px; height: 24px; }
.stat-track { height: 4px; border-radius: 4px; overflow: hidden; }
.stat-track i { border-radius: 4px; }
.js .success-stat .stat-track i { width: 0; transition: width 1.6s var(--ease) .25s; }
.js .success-stat.is-visible .stat-track i { width: var(--value); }

/* Section « pourquoi l'institut » */
.section-features { position: relative; background: var(--white); }
.section-heading-center { justify-content: center; text-align: center; }
.section-heading-center .eyebrow { justify-content: center; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feature-card { position: relative; overflow: hidden; padding: 30px 24px 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--paper); transition: transform .4s var(--ease), box-shadow .4s ease, background .4s ease, border-color .4s ease; }
.feature-card::after { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--gold-text), var(--green)); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); content: ''; }
.feature-card:hover { border-color: transparent; background: var(--white); box-shadow: var(--shadow); transform: translateY(-6px); }
.feature-card:hover::after { transform: scaleX(1); }
.feature-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 17px; background: linear-gradient(135deg, #2A62D6, var(--green-dark)); color: var(--gold); box-shadow: 0 12px 22px -12px rgb(28 77 179 / 80%); transition: transform .45s var(--ease); }
.feature-icon svg { width: 27px; height: 27px; }
.feature-card:hover .feature-icon { transform: rotate(-8deg) scale(1.07); }
.feature-card h3 { margin: 20px 0 6px; color: var(--green-dark); font-family: var(--serif); font-size: 21px; line-height: 1.5; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }

/* Cartes : programmes, actualités, branches */
.program-card, .branch-card, .related-box, .contact-note, .registration-form, .french-panel > div, .sidebar-register, .register-aside { border-radius: var(--radius); }
.program-card, .branch-card { transition: transform .4s var(--ease), box-shadow .4s ease, border-color .4s ease; }
.program-card:hover, .branch-card:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-5px); }
.program-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.program-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: var(--green-light); color: var(--green); transition: background .3s ease, color .3s ease; }
.program-icon svg { width: 25px; height: 25px; }
.program-card:hover .program-icon { background: var(--green); color: var(--gold); }
.program-card-top .program-index { color: rgb(28 77 179 / 32%); font-size: 34px; font-weight: 700; line-height: 1; }
.program-card-footer > span { display: inline-flex; align-items: center; gap: 6px; }
.program-card-footer > span svg { width: 15px; height: 15px; }
.program-card-footer a, .director-link { border-radius: 50%; transition: background .25s ease, color .25s ease, border-color .25s ease; }
.program-card-footer a:hover, .director-link:hover { border-color: var(--green); background: var(--green); color: var(--white); }
.quote-mark { color: var(--gold-text); font-size: 70px; opacity: .55; }
.news-image { border-radius: var(--radius); }
.news-image-placeholder { background: var(--pattern-gold), radial-gradient(circle at 50% 45%, #FAFBFD, #E4E8F0 75%); }
.news-image-placeholder img { width: 92px; height: 92px; filter: drop-shadow(0 10px 18px rgb(14 44 138 / 22%)); transition: transform .5s var(--ease); }
.news-image:hover .news-image-placeholder img { transform: scale(1.08) rotate(-6deg); }
.news-image-arrow { border-radius: 50%; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), background .25s ease; }
.news-image-arrow svg { width: 16px; height: 16px; }
.news-card:hover .news-image-arrow { background: var(--white); transform: rotate(45deg) scale(1.08); }
.news-card h3 a, .news-card h2 a { transition: color .2s ease; }
.news-card:hover h3 a, .news-card:hover h2 a { color: var(--green); }
.news-meta time { display: inline-flex; align-items: center; gap: 5px; }
.news-meta time svg { width: 13px; height: 13px; }
.read-link span, .text-link span { transition: transform .25s var(--ease); }
.read-link:hover span { transform: translateX(-4px); }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; transition: background .25s ease, color .25s ease, border-color .25s ease; }
.filter-chip svg { width: 14px; height: 14px; }
.gallery-tile { border-radius: 12px; }
.gallery-type-icon svg { width: 12px; height: 12px; }
.gallery-tile:hover .gallery-type-icon { border-color: var(--gold); background: var(--gold); color: var(--green-dark); }
.branch-card .branch-pin { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--green-light); color: var(--green); transition: background .3s ease, color .3s ease, transform .4s var(--ease); }
.branch-card .branch-pin svg { width: 22px; height: 22px; }
.branch-card:hover .branch-pin { background: var(--green); color: var(--gold); transform: translateY(-3px); }
.pagination a { border-radius: 10px; transition: background .2s ease, color .2s ease, border-color .2s ease; }

/* Bandeau d'inscription et pied de page */
.registration-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--green-dark), var(--green) 60%, #2A62D6); }
.registration-pattern, .footer-pattern { position: absolute; inset: 0; background: var(--pattern-light); pointer-events: none; }
.registration-grid, .site-footer .footer-grid, .site-footer .footer-bottom { position: relative; }
.registration-copy { display: flex; align-items: center; gap: 22px; }
.registration-icon { display: grid; flex: 0 0 66px; place-items: center; height: 66px; border: 1px solid rgb(251 228 90 / 45%); border-radius: 50%; background: rgb(251 228 90 / 12%); color: var(--gold); animation: pulse-ring 2.8s ease-out infinite; }
.registration-icon svg { width: 28px; height: 28px; }
.site-footer { position: relative; overflow: hidden; }
.footer-brand img { width: 54px; height: 54px; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgb(255 255 255 / 22%); border-radius: 50%; transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease; }
.footer-social a:hover { border-color: var(--gold); background: var(--gold); color: var(--green-dark) !important; transform: translateY(-3px); }
.footer-social svg { width: 17px; height: 17px; }
.footer-contact a, .footer-contact p { display: flex !important; align-items: center; gap: 8px; }
.footer-contact svg { width: 15px; height: 15px; color: var(--gold); }
.footer-links a { transition: color .2s ease, transform .2s ease; }
.footer-links a:hover { transform: translateX(-4px); }
.inner-hero { background: var(--pattern-gold), linear-gradient(180deg, #EAEDF3, #E3E7F0); }
.back-to-top { position: fixed; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); left: 22px; z-index: 50; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: var(--green); color: var(--white); box-shadow: var(--shadow); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(14px); transition: opacity .3s ease, transform .3s var(--ease), background .2s ease; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { background: var(--green-dark); }

/* Apparition au défilement (seulement si JavaScript est actif) */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--reveal-delay, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes fade-up { from { opacity: 0; transform: translateY(22px); } }
@keyframes fade-in { from { opacity: 0; transform: scale(.97); } }
@keyframes float { 50% { transform: translateY(-9px) rotate(-4deg); } }
@keyframes slide-progress { to { transform: scaleX(1); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgb(251 228 90 / 38%); } 70%, 100% { box-shadow: 0 0 0 16px rgb(251 228 90 / 0%); } }

@media (max-width: 1080px) {
    .hero-media { --hero-h: 390px; }
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .hero-media { --hero-h: 360px; }
    .hero-badge { top: -18px; left: -12px; width: 70px; height: 70px; }
    .hero-media::before { left: -12px; }
}
@media (max-width: 640px) {
    .hero-media { --hero-h: 300px; }
    .hero-media::before { display: none; }
    .hero-badge { top: -14px; left: -6px; width: 60px; height: 60px; }
    .hero-highlights { gap: 12px 18px; margin-top: 24px; }
    .hero-image-caption strong { font-size: 18px; }
    .brand img, .site-header.is-scrolled .brand img { width: 46px; height: 46px; }
    .feature-grid { grid-template-columns: 1fr; gap: 12px; }
    .feature-card { display: grid; grid-template-columns: 52px 1fr; gap: 2px 14px; align-items: start; padding: 18px; }
    .feature-icon { grid-row: span 2; width: 52px; height: 52px; border-radius: 15px; }
    .feature-icon svg { width: 23px; height: 23px; }
    .feature-card h3 { margin: 0; font-size: 19px; }
    .feature-card p { font-size: 13px; }
    .registration-copy { align-items: flex-start; gap: 14px; }
    .registration-icon { flex-basis: 52px; height: 52px; }
    .back-to-top { left: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
    .hero-slide, .hero-slide.is-current { transform: none; }
    .hero-badge, .registration-icon { animation: none; }
}

/* ==== Habillage v3 : ombres, images et animations du contenu ==== */
:root {
    --shadow-1: 0 1px 2px rgb(8 23 57 / 5%), 0 8px 18px -8px rgb(8 23 57 / 14%);
    --shadow-2: 0 2px 5px rgb(8 23 57 / 5%), 0 16px 34px -12px rgb(8 23 57 / 24%);
    --shadow-3: 0 4px 12px rgb(8 23 57 / 7%), 0 30px 60px -20px rgb(8 23 57 / 36%);
    --shadow-green: 0 12px 24px -10px rgb(28 77 179 / 60%);
}
.js main { animation: page-in .7s ease both; }
@keyframes page-in { from { opacity: 0; } }

/* Barre de progression de lecture */
.scroll-progress { position: fixed; top: 0; right: 0; left: 0; z-index: 60; height: 3px; background: linear-gradient(90deg, var(--green), var(--gold-text), #F5D82A); transform: scaleX(0); transform-origin: right; pointer-events: none; }

/* Ombres et élévation */
.program-card, .branch-card, .feature-card, .related-box, .french-panel > div { box-shadow: var(--shadow-1); }
.program-card:hover, .branch-card:hover, .feature-card:hover { box-shadow: var(--shadow-3); }
.registration-form, .contact-note, .register-aside, .sidebar-register { box-shadow: var(--shadow-2); }
.news-image { box-shadow: var(--shadow-2); transition: transform .6s var(--ease), box-shadow .6s ease; }
.news-card:hover .news-image { box-shadow: var(--shadow-3); transform: translateY(-5px); }
.gallery-tile { box-shadow: var(--shadow-1); transition: transform .6s var(--ease), box-shadow .6s ease; }
.gallery-tile:hover { box-shadow: var(--shadow-3); transform: translateY(-6px); }
.button:hover { box-shadow: var(--shadow-green); }
.pagination a.is-current, .filter-chip.is-active { box-shadow: var(--shadow-green); }
.slider-arrows button:hover, .director-link:hover, .program-card-footer a:hover { box-shadow: var(--shadow-green); }
.success-band { box-shadow: 0 24px 40px -28px rgb(8 23 57 / 60%); }
.contact-item { padding-inline: 12px; border-radius: 12px; transition: background .3s ease, box-shadow .3s ease; }
.contact-item:hover { background: var(--white); box-shadow: var(--shadow-1); }
.related-link { padding-inline: 8px; border-radius: 8px; transition: background .25s ease, transform .3s var(--ease); }
.related-link:hover { background: var(--paper); transform: translateX(-4px); }
.field input, .field select, .field textarea { transition: border-color .25s ease, box-shadow .25s ease; }
.field input:focus, .field select:focus { box-shadow: 0 0 0 4px rgb(28 77 179 / 12%); }

/* Inclinaison 3D au survol (cartes) */
.has-tilt { transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform .6s var(--ease), box-shadow .5s ease, border-color .4s ease, background .4s ease; will-change: transform; }
.has-tilt:hover { transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-6px); transition: transform .15s linear, box-shadow .5s ease, border-color .4s ease, background .4s ease; }
.has-tilt::before { position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 0%), rgb(251 228 90 / 28%), transparent 55%); opacity: 0; transition: opacity .4s ease; content: ''; pointer-events: none; }
.has-tilt:hover::before { opacity: 1; }

/* Images : fondu au chargement, scintillement d'attente, reflet au survol */
.js .img-fade { transition: opacity .9s ease, filter .9s ease, transform 1.2s var(--ease); }
.js .img-fade:not(.is-loaded) { opacity: 0; filter: blur(12px); transform: scale(1.05); }
.js .img-fade.is-loaded { filter: saturate(1.06) contrast(1.03); }
.js .news-image:hover .img-fade.is-loaded, .js .gallery-tile:hover .img-fade.is-loaded { filter: saturate(1.15) contrast(1.05) brightness(1.04); }
.is-loading { background-image: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 50%) 50%, transparent 70%); background-size: 220% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.news-image::before, .gallery-tile::before, .article-cover::before { position: absolute; inset: 0; z-index: 2; background: linear-gradient(115deg, transparent 35%, rgb(255 255 255 / 30%) 50%, transparent 65%); transform: translateX(-130%); content: ''; pointer-events: none; }
.news-image:hover::before, .gallery-tile:hover::before, .article-cover:hover::before { transform: translateX(130%); transition: transform 1s ease; }
.news-image-arrow { z-index: 3; }
.article-cover { position: relative; border-radius: var(--radius); box-shadow: var(--shadow-3); outline: 1px solid rgb(230 196 0 / 40%); outline-offset: 8px; }
.article-cover img { transition: transform 1.4s var(--ease); }
.article-cover:hover img { transform: scale(1.03); }
.article-content img { border-radius: 14px; box-shadow: var(--shadow-2); transition: transform .5s var(--ease), box-shadow .5s ease; }
.article-content img.is-zoomable { cursor: zoom-in; }
.article-content img.is-zoomable:hover, .article-content img.is-zoomable:focus-visible { box-shadow: var(--shadow-3); transform: translateY(-4px); }
.article-content img.is-zoomable:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.lightbox[open] { animation: lightbox-in .35s var(--ease); }
.lightbox[open]::backdrop { animation: page-in .35s ease; }
.lightbox-content img { animation: lightbox-in .5s var(--ease); }
@keyframes lightbox-in { from { opacity: 0; transform: scale(.96); } }

/* Variantes d'apparition */
.js [data-reveal="soft"] { transform: translateY(14px); }
.js [data-reveal="side"] { transform: translateX(-36px); }
.js [data-reveal="zoom"] { transform: scale(.95); }
.js [data-reveal="wipe"] { opacity: 1; transform: none; clip-path: inset(0 0 0 100%); transition: clip-path 1.2s var(--ease); transition-delay: var(--reveal-delay, 0s); }
.js [data-reveal="wipe"].is-visible { clip-path: inset(0); }

/* Titres : trait doré qui se dessine */
.section-heading h2::after, .inner-hero h1::after { display: block; width: 64px; height: 3px; margin-top: 12px; border-radius: 3px; background: linear-gradient(90deg, var(--green), var(--gold-text)); transform-origin: right; content: ''; }
.section-heading-center h2::after { margin-inline: auto; transform-origin: center; }
.js .section-heading h2::after { transform: scaleX(0); transition: transform 1s var(--ease) .35s; }
.js .section-heading.is-visible h2::after { transform: scaleX(1); }
.js .inner-hero h1::after { animation: draw-line 1s var(--ease) .45s both; }
@keyframes draw-line { from { transform: scaleX(0); } }

/* En-tête des pages intérieures */
.inner-hero { position: relative; overflow: hidden; }
.inner-hero .container { position: relative; z-index: 1; }
.inner-hero::after { position: absolute; top: 50%; left: 6%; width: 210px; height: 210px; margin-top: -105px; border-radius: 22%; background: url("../images/logo-512.png") center / contain no-repeat; opacity: .07; animation: drift 9s ease-in-out infinite; content: ''; pointer-events: none; }
@keyframes drift { 50% { transform: translateY(-10px) rotate(-5deg); } }
.js .inner-hero .container > * { animation: fade-up .9s var(--ease) both; }
.js .inner-hero .container > :nth-child(2) { animation-delay: .08s; }
.js .inner-hero .container > :nth-child(3) { animation-delay: .16s; }
.js .inner-hero .container > :nth-child(4) { animation-delay: .24s; }

/* Contenu riche saisi dans l'éditeur de l'admin */
.article-content h4, .article-content h5, .article-content h6 { margin: 24px 0 10px; color: var(--green-dark); }
.article-content blockquote { margin: 22px 0; padding: 6px 20px; border-inline-start: 3px solid var(--gold-text); background: rgb(251 228 90 / 16%); border-radius: 0 10px 10px 0; color: var(--green-dark); font-family: var(--serif); font-size: 1.12em; }
.article-content pre { overflow-x: auto; padding: 14px 16px; border-radius: 10px; background: #E9ECF2; font-size: 14px; white-space: pre-wrap; }
.article-content mark { padding: 0 3px; border-radius: 3px; background: #FCF1AE; }
.article-content hr { margin: 28px 0; border: 0; border-top: 1px solid var(--border); }
.article-content table { width: 100%; margin: 20px 0; border-collapse: collapse; font-size: .95em; }
.article-content th, .article-content td { padding: 8px 12px; border: 1px solid var(--border); vertical-align: top; }
.article-content th { background: #E9ECF2; color: var(--green-dark); }
.article-content iframe { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; margin: 22px 0; border: 0; border-radius: 14px; box-shadow: var(--shadow-2); }
.article-content img[style*="float: left"], .article-content img[align="left"] { margin: 6px 0 12px 20px; }
.article-content img[style*="float: right"], .article-content img[align="right"] { margin: 6px 20px 12px 0; }
.article-content ol, .article-content ul { margin: 0 0 18px; }
@media (max-width: 640px) {
    .article-content table { display: block; overflow-x: auto; }
    .article-content img[style*="float"] { float: none !important; margin: 14px auto; }
}

.branch-detail { display: flex; align-items: center; gap: 8px; margin: 6px 0 0 !important; color: var(--text, #333844) !important; font-size: 14px !important; }
.branch-detail svg { width: 16px; height: 16px; color: var(--gold-text); }
.branch-detail a { color: var(--green); }

@media (max-width: 640px) {
    .inner-hero::after { width: 120px; height: 120px; margin-top: -60px; left: -10px; opacity: .06; }
    .article-cover { outline-offset: 5px; }
}
@media (prefers-reduced-motion: reduce) {
    .js [data-reveal="wipe"] { clip-path: none; }
    .js .img-fade:not(.is-loaded) { opacity: 1; filter: none; transform: none; }
    .has-tilt, .has-tilt:hover { transform: none; }
    .inner-hero::after, .is-loading { animation: none; }
}

/* ===== Versions française et anglaise (LTR) : miroir des réglages pensés pour l’arabe ===== */
:root:not([lang="ar"]) {
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'IBM Plex Sans', 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif;
}
:root:not([lang="ar"]) body { line-height: 1.7; }
:root:not([lang="ar"]) [lang="ar"] { font-family: 'IBM Plex Sans Arabic', Tahoma, sans-serif; line-height: 1.85; }
:root:not([lang="ar"]) .hero-copy h1, :root:not([lang="ar"]) .section-heading h2, :root:not([lang="ar"]) .inner-hero h1, :root:not([lang="ar"]) .article-main > h1 { letter-spacing: -.01em; line-height: 1.15; }
@media (min-width: 1081px) { :root:not([lang="ar"]) .hero-copy h1 { font-size: 54px; } }
:root:not([lang="ar"]) .brand-copy strong { font-size: 18px; line-height: 1.2; }
:root:not([lang="ar"]) .brand-copy small { line-height: 1.35; }
:root:not([lang="ar"]) .director-quote blockquote { font-size: 21px; line-height: 1.6; }
:root:not([lang="ar"]) .director-quote blockquote[lang="ar"] { font-family: var(--serif-ar, 'Amiri', serif); font-size: 19px; line-height: 1.9; }
:root[lang="ar"] .language-link, :root:not([lang="ar"]) .language-link[lang="ar"] { font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif; }

[dir="ltr"] .main-navigation > a:not(.button)::after { right: auto; left: 0; }
[dir="ltr"] .gallery-tile { text-align: left; }
[dir="ltr"] .lightbox-close { right: 12px; left: auto; }
[dir="ltr"] .hero-pattern { -webkit-mask-image: linear-gradient(to left, #000, transparent 65%); mask-image: linear-gradient(to left, #000, transparent 65%); }
[dir="ltr"] .hero-media::before { right: -20px; left: 20px; }
[dir="ltr"] .hero-progress i, [dir="ltr"] .feature-card::after, [dir="ltr"] .scroll-progress { transform-origin: left; }
[dir="ltr"] .hero-badge { right: -28px; left: auto; }
[dir="ltr"] .back-to-top { right: 22px; left: auto; }
[dir="ltr"] .slider-arrows [data-slider-prev] svg, [dir="ltr"] .slider-arrows [data-slider-next] svg { transform: scaleX(-1); }
[dir="ltr"] .text-link:hover span, [dir="ltr"] .button:hover svg.icon, [dir="ltr"] .read-link:hover span, [dir="ltr"] .footer-links a:hover, [dir="ltr"] .related-link:hover { transform: translateX(4px); }
[dir="ltr"] .news-card:hover .news-image-arrow { transform: rotate(-45deg) scale(1.08); }
[dir="ltr"] .button-glow::after { transform: translateX(-120%); }
[dir="ltr"] .button-glow:hover::after { transform: translateX(120%); }
.translation-note { margin: 0 0 18px; padding: 10px 14px; border-inline-start: 3px solid var(--gold-text); background: var(--green-light); color: var(--green-dark); font-size: 14px; }
@media (max-width: 860px) {
    [dir="ltr"] .hero-badge { right: -12px; left: auto; }
    [dir="ltr"] .hero-media::before { right: -12px; left: 20px; }
}
@media (max-width: 640px) {
    [dir="ltr"] .hero-badge { right: -6px; left: auto; }
    [dir="ltr"] .back-to-top { right: 14px; left: auto; }
}

/* ===== Logo officiel (carré bleu) : coins arrondis, jamais rogné en cercle ni tourné ===== */
.brand img, .footer-brand img, .hero-badge, .news-image-placeholder img, .admin-sidebar .brand img, .admin-login > img { border-radius: 22%; object-fit: cover; }
.brand img { filter: none; box-shadow: 0 6px 14px -6px rgb(6 20 74 / 45%); }
.brand:hover img { transform: scale(1.05); }
.footer-brand img { box-shadow: 0 0 0 2px rgb(255 255 255 / 18%); }
.hero-badge { box-shadow: 0 0 0 4px var(--white), var(--shadow); }
.news-image-placeholder img { filter: drop-shadow(0 10px 18px rgb(6 20 74 / 28%)); }
.news-image:hover .news-image-placeholder img { transform: scale(1.08); }

/* ===== Maquette validée par l'Institut (docs/home page.jpeg) : en-tête, menu, accueil, nouvelles rubriques ===== */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow-icon-line { width: 15px; height: 15px; }

/* Barre supérieure : langues, recherche, réseaux sociaux */
.topbar { background: var(--green-dark); }
.topbar-inner { min-height: 44px; }
.topbar-tools, .topbar-social { display: flex; align-items: center; gap: 14px; }
.topbar .language-link { padding-inline-start: 0; border: 0; color: var(--white); font-size: 13px; }
.topbar .language-link:hover { color: var(--gold); }
.topbar-search { display: flex; align-items: center; height: 30px; border-radius: 6px; background: var(--white); overflow: hidden; }
.topbar-search input { width: 190px; height: 100%; padding: 0 10px; border: 0; background: transparent; color: var(--ink); font-size: 12.5px; }
.topbar-search input:focus { outline: none; }
.topbar-search:focus-within { box-shadow: 0 0 0 2px var(--gold); }
.topbar-search button { display: grid; place-items: center; width: 34px; height: 100%; padding: 0; border: 0; background: var(--green); color: var(--white); cursor: pointer; }
.topbar-search button svg { width: 15px; height: 15px; color: inherit; }
.topbar-social a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; color: var(--white); transition: background .2s ease, color .2s ease, transform .2s ease; }
.topbar-social a:hover { background: var(--gold); color: var(--green-dark); transform: translateY(-2px); }
.social-icon { width: 17px; height: 17px; fill: currentColor; stroke: none; }

/* En-tête : coordonnées, nom officiel, logo et verset */
.site-header { position: relative; z-index: 30; background: var(--white); border-bottom: 0; }
.header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; min-height: 0; padding-block: 18px 10px; }
.header-contacts { display: flex; flex-wrap: wrap; gap: 14px 26px; }
.header-contact { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 13px; line-height: 1.5; }
.header-contact > svg { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--green-light); color: var(--green); }
.header-contact strong { display: block; color: var(--green-dark); font-size: 13.5px; }
.header-contact span span { color: var(--muted); font-size: 12.5px; }
a.header-contact:hover strong { color: var(--green); }
.header-title { display: grid; justify-items: center; gap: 4px; text-align: center; }
.header-title strong { color: var(--green-dark); font-family: var(--serif); font-size: clamp(22px, 2.3vw, 31px); font-weight: 700; line-height: 1.45; }
.header-title > span { color: var(--green); font-size: 14px; font-weight: 600; }
/* Bloc du logo : logo à gauche, nom centré à côté (demande de l'Institut) */
.site-header .brand { flex-direction: row-reverse; justify-self: end; min-width: 0; gap: 14px; }
.site-header .brand img { width: 92px; height: 92px; }
.site-header .brand-copy { justify-items: center; max-width: 250px; text-align: center; }
.site-header .brand-copy strong { font-size: 20px; line-height: 1.4; }
.site-header .brand-copy small { color: var(--green-dark); font-size: 13.5px; line-height: 1.6; }
.site-header .brand-copy .brand-french { margin-top: 3px; color: var(--muted); font-family: 'IBM Plex Sans', sans-serif; font-size: 8.5px; line-height: 1.35; text-transform: uppercase; }
.brand:hover img { transform: none; }
.verse-band { display: flex; align-items: center; justify-content: center; gap: 14px; margin-block: 2px 12px; padding: 8px 18px; border: 1px solid var(--border); border-radius: 999px; background: linear-gradient(180deg, #FAFBFD, #EEF1F7); }
.verse-band p { margin: 0; color: var(--green-dark); font-family: 'Amiri', serif; font-size: 20px; line-height: 1.7; text-align: center; }
.verse-band cite { color: var(--green); font-size: 14px; font-style: normal; white-space: nowrap; }
.verse-ornament { display: grid; flex: 0 0 auto; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: var(--gold); font-size: 15px; line-height: 1; }

/* Menu principal : barre bleue collante avec sous-menus */
.nav-bar { position: sticky; top: 0; z-index: 40; background: linear-gradient(180deg, var(--green), #1A47A6); box-shadow: 0 10px 22px -16px rgb(6 20 74 / 70%); }
.nav-bar.is-scrolled { box-shadow: 0 12px 26px -14px rgb(6 20 74 / 80%); }
.nav-bar-inner { position: relative; display: flex; align-items: stretch; min-height: 52px; }
.nav-home { display: grid; flex: 0 0 auto; place-items: center; width: 54px; background: var(--green-dark); color: var(--white); transition: background .2s ease; }
.nav-home svg { width: 22px; height: 22px; }
.nav-home:hover, .nav-home.is-active { background: #0A2270; color: var(--gold); }
.main-navigation { position: static; display: flex; flex: 1 1 auto; align-items: stretch; justify-content: space-between; gap: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { display: flex; align-items: center; height: 100%; padding: 0 8px; color: var(--white); font-size: 13px; font-weight: 500; white-space: nowrap; transition: background .2s ease, color .2s ease; }
.nav-item > a:hover, .nav-item:focus-within > a, .nav-item.is-active > a { color: var(--gold); }
.nav-item.is-active { box-shadow: inset 0 -3px 0 var(--gold); }
.nav-item-home { display: none; }
.submenu-toggle { display: grid; place-items: center; width: 18px; height: 100%; margin-inline-start: -6px; padding: 0; border: 0; background: transparent; color: rgb(255 255 255 / 80%); cursor: pointer; }
.submenu-toggle svg { width: 14px; height: 14px; transition: transform .2s ease; }
.submenu { position: absolute; top: 100%; inset-inline-start: 0; z-index: 5; display: grid; min-width: 220px; padding: 8px; border-radius: 0 0 12px 12px; background: var(--white); box-shadow: 0 30px 60px -20px rgb(8 23 57 / 36%); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
.submenu a { padding: 9px 12px; border-radius: 8px; color: var(--ink); font-size: 13.5px; white-space: nowrap; }
.submenu a:hover, .submenu a:focus-visible { background: var(--green-light); color: var(--green-dark); }
.nav-item.has-submenu:hover .submenu, .nav-item.has-submenu:focus-within .submenu, .nav-item.is-open .submenu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease; }
.nav-item.is-open .submenu-toggle svg { transform: rotate(180deg); }
.menu-toggle { display: none; }

/* Accueil : bandeau photo pleine largeur */
.hero-banner { position: relative; overflow: hidden; height: clamp(380px, 46vw, 540px); background: var(--green-dark); }
.hero-banner-slides { position: absolute; inset: 0; }
.hero-banner-slides::after { position: absolute; inset: 0; background: linear-gradient(270deg, rgb(10 30 100 / 90%) 0%, rgb(14 44 138 / 68%) 34%, rgb(14 44 138 / 12%) 66%, transparent 80%); content: ''; }
.hero-banner .hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-banner-inner { position: relative; z-index: 1; display: flex; align-items: center; height: 100%; }
.hero-banner-copy { max-width: 540px; color: var(--white); }
.hero-banner-copy h1 { margin: 0 0 14px; font-family: var(--serif); font-size: clamp(30px, 3.6vw, 46px); font-weight: 700; line-height: 1.45; text-shadow: 0 3px 16px rgb(0 0 0 / 30%); }
.hero-banner-copy p { max-width: 460px; margin: 0; color: #E8EDF8; font-size: 17px; line-height: 1.9; }
.hero-banner .hero-actions { flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button-white { border-color: var(--white); background: var(--white); color: var(--green-dark); }
.button-white:hover { border-color: var(--gold); background: var(--gold); color: var(--green-dark); }
.hero-banner .button:not(.button-white) { border-color: rgb(255 255 255 / 55%); }
.hero-banner-controls { position: absolute; bottom: 58px; inset-inline-end: max(24px, calc((100% - var(--container)) / 2)); z-index: 2; display: flex; gap: 8px; }
.hero-banner-controls button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgb(255 255 255 / 45%); border-radius: 50%; background: rgb(255 255 255 / 14%); color: var(--white); cursor: pointer; backdrop-filter: blur(6px); transition: background .2s ease, color .2s ease; }
.hero-banner-controls button:hover { border-color: var(--gold); background: var(--gold); color: var(--green-dark); }
.hero-banner-controls svg { width: 16px; height: 16px; }
.hero-banner-controls .icon-play, .hero-banner [data-slider-pause][aria-pressed="true"] .icon-pause { display: none; }
.hero-banner [data-slider-pause][aria-pressed="true"] .icon-play { display: block; }

/* Accueil : tuiles des rubriques, à cheval sur le bandeau */
.section-tiles { position: relative; z-index: 2; margin-top: -44px; }
.tile-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.section-tile { display: grid; justify-items: center; align-content: start; gap: 3px; padding: 18px 8px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--white); box-shadow: 0 16px 34px -12px rgb(8 23 57 / 24%); text-align: center; transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease; }
.section-tile:hover { border-color: var(--green); box-shadow: 0 30px 60px -20px rgb(8 23 57 / 36%); transform: translateY(-5px); }
.section-tile-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 6px; border-radius: 14px; background: var(--green-light); color: var(--green); transition: background .3s ease, color .3s ease; }
.section-tile-icon svg { width: 26px; height: 26px; }
.section-tile:hover .section-tile-icon { background: var(--green); color: var(--gold); }
.section-tile strong { color: var(--green-dark); font-size: 15px; line-height: 1.5; }
.section-tile > span:last-child { color: var(--muted); font-size: 12px; line-height: 1.5; }

/* Accueil : lmha, actualités, médias */
.home-panels { padding-block: 34px 44px; }
.panels-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.1fr) minmax(0, 1.3fr); align-items: start; gap: 18px; }
.panel { min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: 0 8px 18px -8px rgb(8 23 57 / 14%); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--green-light); }
.panel-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--green-dark); font-family: var(--serif); font-size: 22px; line-height: 1.4; }
.panel-head h2 svg { width: 22px; height: 22px; color: var(--green); }
.panel-head a { color: var(--green); font-size: 12.5px; white-space: nowrap; }
.panel-head a:hover { color: var(--green-dark); }
.panel-about p { margin: 0 0 18px; color: var(--ink); font-size: 15.5px; line-height: 2.05; }
.panel-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.panel-list a { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 12px; }
.panel-thumb { display: block; overflow: hidden; height: 72px; border-radius: 10px; background: var(--paper); }
.panel-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.panel-thumb .panel-thumb-logo { width: 46px; height: 46px; margin: 13px auto; border-radius: 22%; }
.panel-list a:hover .panel-thumb img { transform: scale(1.06); }
.panel-item-copy { display: grid; gap: 2px; min-width: 0; }
.panel-item-copy time { color: var(--green); font-size: 12px; }
.panel-item-copy strong { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--ink); font-size: 14px; line-height: 1.6; }
.panel-list a:hover strong { color: var(--green); }
.panel-media-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; }
.media-feature { position: relative; display: block; overflow: hidden; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 0; border-radius: 12px; background: var(--green-dark); color: var(--white); cursor: pointer; text-align: start; }
.media-feature img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.media-feature:hover img { transform: scale(1.05); }
.media-feature::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgb(7 18 42 / 82%), transparent 55%); content: ''; }
.media-play { position: absolute; top: 50%; left: 50%; z-index: 1; display: grid; place-items: center; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgb(255 255 255 / 92%); color: var(--green-dark); box-shadow: 0 10px 24px rgb(0 0 0 / 30%); transition: transform .3s var(--ease), background .3s ease; }
.media-play svg { width: 24px; height: 24px; fill: currentColor; }
.media-feature:hover .media-play { background: var(--gold); transform: scale(1.08); }
.media-feature-title { position: absolute; right: 12px; bottom: 10px; left: 12px; z-index: 1; font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.media-list { display: grid; align-content: start; gap: 10px; margin: 0; padding: 0; list-style: none; }
.media-list button { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 10px; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; text-align: start; }
.media-thumb { position: relative; display: block; overflow: hidden; height: 54px; border-radius: 8px; background: var(--paper); }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-thumb-icon { position: absolute; inset-inline-start: 5px; bottom: 5px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgb(14 44 138 / 85%); color: var(--white); }
.media-thumb-icon svg { width: 11px; height: 11px; }
.media-list-copy { display: grid; min-width: 0; }
.media-list-copy strong { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.55; }
.media-list-copy span { color: var(--green); font-size: 11.5px; }
.media-list button:hover strong { color: var(--green); }

/* Accueil : les réalisations en chiffres */
.figures-band { border-block: 1px solid var(--border); background: var(--white); }
.figures-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.figure { display: grid; justify-items: center; align-content: start; gap: 2px; padding: 22px 6px; text-align: center; }
.figure + .figure { border-inline-start: 1px solid var(--border); }
.figure-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 4px; border-radius: 50%; background: var(--green-light); color: var(--green); }
.figure-icon svg { width: 22px; height: 22px; }
.figure strong { color: var(--green-dark); font-family: var(--serif); font-size: 27px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.figure-label { color: var(--muted); font-size: 12.5px; line-height: 1.5; }

/* Accueil : fenêtre de la plateforme */
.platform-band { position: relative; overflow: hidden; padding-block: 54px; background: linear-gradient(120deg, var(--green-dark), var(--green) 60%, #2A62D6); color: var(--white); }
.platform-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 40px; }
.platform-copy .eyebrow { color: var(--gold); }
.platform-copy h2 { margin: 8px 0 12px; font-family: var(--serif); font-size: clamp(26px, 2.8vw, 34px); line-height: 1.45; }
.platform-copy p { margin: 0; color: #DCE3F3; line-height: 2; }
.platform-band .hero-actions { flex-wrap: wrap; margin-top: 24px; }
.text-link-light { color: var(--white); }
.text-link-light span { color: var(--gold); }
.platform-features { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.platform-band .platform-features li { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid rgb(255 255 255 / 16%); border-radius: 12px; background: rgb(255 255 255 / 8%); font-size: 14.5px; }
.platform-features svg { width: 20px; height: 20px; color: var(--gold); }
.platform-features-page { margin-bottom: 18px !important; }
.platform-features-page li { display: flex; align-items: center; gap: 10px; }
.platform-features-page svg { color: var(--green); }
.soon-badge { padding: 1px 8px; border-radius: 999px; background: var(--green-light); color: var(--green-dark); font-size: 11px; }

/* Accueil : partenaires et contact */
.home-contact { padding-block: 44px 60px; }
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.contact-card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: 0 8px 18px -8px rgb(8 23 57 / 14%); }
.contact-card-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 12px; border-radius: 14px; background: var(--green); color: var(--gold); }
.contact-card-icon svg { width: 24px; height: 24px; }
.contact-card h2 { margin: 0 0 8px; color: var(--green-dark); font-family: var(--serif); font-size: 22px; }
.contact-card p { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.contact-card p svg { width: 16px; height: 16px; color: var(--green); }
.contact-card p a:hover { color: var(--green); }

/* Pages des rubriques, médias et recherche */
.section-aside-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--green); color: var(--gold); }
.section-aside-icon svg { width: 30px; height: 30px; }
.section-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 26px !important; }
.section-related-news { padding-top: 0; }
.founder-section { padding-bottom: 0; }
.founder-section h2 { margin-top: 0; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.search-form { display: flex; gap: 10px; max-width: 620px; margin-top: 18px; }
.search-form input { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 10px 14px; border: 1px solid #CAD1E1; border-radius: 10px; background: var(--white); }
.search-form input:focus { outline: 2px solid #8A9AC1; outline-offset: 1px; }
.search-summary { margin: 0 0 22px; color: var(--muted); }
.search-summary strong { color: var(--green-dark); }

/* Versions française et anglaise : dégradé et contrôles en miroir */
[dir="ltr"] .hero-banner-slides::after { background: linear-gradient(90deg, rgb(10 30 100 / 90%) 0%, rgb(14 44 138 / 68%) 34%, rgb(14 44 138 / 12%) 66%, transparent 80%); }
[dir="ltr"] .hero-banner-controls [data-slider-prev] svg, [dir="ltr"] .hero-banner-controls [data-slider-next] svg { transform: scaleX(-1); }
:root:not([lang="ar"]) .header-title strong, :root:not([lang="ar"]) .hero-banner-copy h1 { line-height: 1.2; }
:root:not([lang="ar"]) .site-header .brand-copy { display: none; }
:root:not([lang="ar"]) .hero-banner-copy { max-width: 600px; }
:root:not([lang="ar"]) .hero-banner-copy h1 { font-size: clamp(28px, 3vw, 40px); }

@media (max-width: 1180px) {
    .header-contacts { flex-direction: column; gap: 10px; }
    .site-header .brand-copy { display: none; }
    .tile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .figures-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .figure:nth-child(5) { border-inline-start: 0; }
    .figure:nth-child(n + 5) { border-top: 1px solid var(--border); }
    .panels-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .panel-media { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
    .menu-toggle { display: inline-flex; align-items: center; gap: 10px; width: auto; height: auto; margin-inline-start: auto; padding: 0 16px; border: 0; background: transparent; color: var(--white); font-weight: 600; cursor: pointer; }
    .menu-toggle .menu-toggle-bars { display: grid; gap: 4px; width: auto; height: auto; margin: 0; background: none; }
    .menu-toggle-bars span { display: block; width: 20px; height: 2px; margin: 0; background: currentColor; }
    .main-navigation { position: absolute; top: 100%; right: 0; left: 0; display: none; max-height: calc(100vh - 60px); overflow-y: auto; padding: 8px 18px 16px; background: var(--white); box-shadow: 0 18px 30px -12px rgb(8 23 57 / 35%); }
    .main-navigation.is-open { display: grid; }
    .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--border); }
    .nav-item-home { display: flex; }
    .nav-item > a { flex: 1 1 auto; padding: 12px 4px; color: var(--ink); font-size: 15px; }
    .nav-item.is-active { box-shadow: none; }
    .nav-item.is-active > a, .nav-item > a:hover, .nav-item:focus-within > a { color: var(--green); }
    .submenu-toggle { width: 44px; height: 44px; margin: 0; color: var(--green); }
    .submenu { position: static; display: none; flex-basis: 100%; min-width: 0; padding: 0 12px 10px; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
    .nav-item.has-submenu:hover .submenu, .nav-item.has-submenu:focus-within .submenu { display: none; }
    .nav-item.has-submenu.is-open .submenu { display: grid; }
}
@media (max-width: 860px) {
    .header-inner { grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding-block: 14px 8px; }
    .header-contacts { display: none; }
    .site-header .brand { grid-row: 1; grid-column: 1; justify-self: start; }
    .site-header .brand img { width: 72px; height: 72px; }
    .header-title { grid-column: 2; justify-items: start; text-align: start; }
    .verse-band { padding: 6px 12px; border-radius: 14px; }
    .verse-band p { font-size: 16px; }
    .verse-ornament { display: none; }
    .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .section-tiles { margin-top: -30px; }
    .hero-banner-slides::after, [dir="ltr"] .hero-banner-slides::after { background: linear-gradient(0deg, rgb(10 30 100 / 92%) 0%, rgb(14 44 138 / 70%) 45%, rgb(14 44 138 / 25%) 100%); }
    .hero-banner-inner { align-items: flex-end; padding-bottom: 70px; }
    .hero-banner-controls { bottom: 52px; }
    .panels-grid, .platform-grid, .contact-cards { grid-template-columns: 1fr; }
    .panel-media { grid-column: auto; }
    .platform-grid { gap: 26px; }
    .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .topbar-inner { flex-wrap: wrap; justify-content: center; gap: 6px 12px; padding-block: 6px; }
    .topbar-search input { width: 150px; }
    .site-header .brand img { width: 58px; height: 58px; }
    .header-title strong { font-size: 18px; }
    .header-title strong br { display: none; }
    .header-title > span { font-size: 12px; }
    .verse-band p { font-size: 14px; }
    .verse-band cite { font-size: 12px; }
    .hero-banner { height: 470px; }
    .hero-banner-copy h1 { font-size: 28px; }
    .hero-banner-copy p { font-size: 15px; }
    .hero-banner .hero-actions .button { min-height: 44px; padding-inline: 14px; font-size: 13px; }
    .hero-banner-controls { bottom: 50px; inset-inline-end: 15px; }
    .hero-banner-controls button { width: 34px; height: 34px; }
    .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .section-tile:last-child { grid-column: 1 / -1; }
    .section-tile { padding: 14px 6px 12px; }
    .panel { padding: 16px; }
    .panel-media-grid { grid-template-columns: 1fr; }
    .panel-list a { grid-template-columns: 92px minmax(0, 1fr); }
    .figures-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .figure, .figure:nth-child(5) { border-inline-start: 0; }
    .figure:nth-child(even) { border-inline-start: 1px solid var(--border); }
    .figure:nth-child(n + 3) { border-top: 1px solid var(--border); }
    .figure:last-child { grid-column: 1 / -1; }
    .figure strong { font-size: 24px; }
    .video-grid { grid-template-columns: 1fr; }
    .search-form { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    .submenu, .section-tile, .media-feature img, .panel-thumb img { transition: none; }
}

/* Sélecteur de langue (arabe, français, anglais) */
.language-links, .footer-languages { display: inline-flex; align-items: center; gap: 12px; }

/* Catégories des actualités : filtres sur /news et étiquettes cliquables */
.filter-chip .category-count { min-width: 20px; padding: 0 6px; border-radius: 999px; background: rgb(28 77 179 / 10%); font-size: 11px; text-align: center; }
.filter-chip.is-active .category-count, .filter-chip:hover .category-count { background: rgb(255 255 255 / 22%); }
.news-meta > a.news-category, .article-kicker > a { color: var(--gold-text); font-weight: 600; }
.news-meta > a.news-category:hover, .article-kicker > a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.news-empty { padding: 30px 0; color: var(--muted); text-align: center; }
