@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

:root {
    --green: #0E5A4F;
    --green-dark: #0A3F38;
    --green-light: #DDEBE5;
    --gold: #F1D9A6;
    --gold-text: #7A5612;
    --paper: #FAF8F3;
    --white: #FFFFFF;
    --border: #E6E1D6;
    --ink: #1B2A27;
    --muted: #55625F;
    --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: #E9F1ED; 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: #394843; 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: #f7e6c3; border-color: #f7e6c3; 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(#d8d0c0 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: #66726D; 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 30 26 / 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: #b4b7ad; 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: #d4e1dc; 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: #b39b69; 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: #F5F2E9; }
.program-card-3 { background: #F0F5F2; }

.director-section { padding-block: 54px; background: #EAEDE6; }
.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 #c8d0c4; }
.quote-mark { position: absolute; top: -16px; inset-inline-start: 10px; color: #b4975c; font-family: var(--serif); font-size: 50px; line-height: 1; }
.director-quote blockquote { margin: 0; color: #34433D; 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 #aab6ad; 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: #e9e5da; }
.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: #e8eee9; }
.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: #F2F0E9; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 21px; }
.filter-chip { min-height: 34px; padding: 5px 14px; border: 1px solid #d7d3c7; 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: #c6d2ca; 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 40 34 / 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: #10241f; color: var(--white); }
.lightbox::backdrop { background: rgb(6 22 18 / 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: #d7e1dc; 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: #b49a65; 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: #d0dfd8; font-size: 14px; }
.quick-register { display: flex; align-items: center; gap: 18px; }
.quick-register > span { color: #d0dfd8; font-size: 13px; }

.site-footer { background: #092F2A; color: #e6eee9; }
.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: #c0d1ca; }
.footer-about > p, .footer-grid > div:not(.footer-about) > p { color: #c0d1ca; 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: #e6eee9; 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-bottom { border-top: 1px solid rgb(255 255 255 / 13%); color: #c0d1ca; 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: #F1F0E9; }
.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: #e9e5da; }
.article-cover img { width: 100%; max-height: 520px; object-fit: cover; }
.article-content { color: #293833; 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: #e2ebe6; 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: #f7f4ed; 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: #dce7e2; 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 #d6d9d2; border-radius: 2px; background: #fff; color: var(--ink); font-weight: 400; }
.field input:focus, .field select:focus { outline: 2px solid #93b8ac; 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: #e8f1ec; 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(22 38 31 / 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(10 63 56 / 6%);
    --shadow: 0 16px 34px -14px rgb(10 63 56 / 28%);
    --shadow-lg: 0 34px 60px -22px rgb(8 36 31 / 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='%23A9813A' 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='%23F1D9A6' 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(250 248 243 / 93%); box-shadow: 0 10px 26px -16px rgb(10 63 56 / 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(10 63 56 / 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(14 90 79 / 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(241 217 166 / 38%), transparent 38%), radial-gradient(circle at 8% 92%, rgb(14 90 79 / 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(169 129 58 / 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(8 30 26 / 82%), rgb(8 30 26 / 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, #E7C77F, 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%, #12705F); }
.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(241 217 166 / 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, #13705F, var(--green-dark)); color: var(--gold); box-shadow: 0 12px 22px -12px rgb(14 90 79 / 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(169 129 58 / 40%); 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%, #FFFDF8, #E6EEE9 75%); }
.news-image-placeholder img { width: 92px; height: 92px; filter: drop-shadow(0 10px 18px rgb(10 63 56 / 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%, #12705F); }
.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(241 217 166 / 45%); border-radius: 50%; background: rgb(241 217 166 / 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, #F3F1EA, #EFEDE4); }
.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(241 217 166 / 38%); } 70%, 100% { box-shadow: 0 0 0 16px rgb(241 217 166 / 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(10 40 34 / 5%), 0 8px 18px -8px rgb(10 40 34 / 14%);
    --shadow-2: 0 2px 5px rgb(10 40 34 / 5%), 0 16px 34px -12px rgb(10 40 34 / 24%);
    --shadow-3: 0 4px 12px rgb(10 40 34 / 7%), 0 30px 60px -20px rgb(10 40 34 / 36%);
    --shadow-green: 0 12px 24px -10px rgb(14 90 79 / 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), #E7C77F); 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(10 40 34 / 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(14 90 79 / 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(241 217 166 / 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(169 129 58 / 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; background: url("../images/logo.svg") center / contain no-repeat; opacity: .08; 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(241 217 166 / 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: #F2F0E9; font-size: 14px; white-space: pre-wrap; }
.article-content mark { padding: 0 3px; border-radius: 3px; background: #F6E3B4; }
.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: #F2F0E9; 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, #34433D) !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; }
}
