/* Retours Al Manar 2.0 — styles partagés, sans compilation. */
:root { --manar-blue: #075bbb; --manar-ink: #142d50; }
.site-header .language-bar { padding-top: .15rem; }
.site-header .language-switcher a { min-height: 24px; }
.site-header > nav { padding-top: .25rem !important; padding-bottom: .45rem !important; }
.site-header .brand-mark { height: 44px; }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, .75fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.home-hero-copy { min-width: 0; }
.home-hero-visual { display: flex; justify-content: center; }
.home-hero-visual img { display: block; width: min(100%, 350px); height: auto; max-height: 520px; object-fit: contain; filter: drop-shadow(0 18px 30px #173f7224); }
.home-programs { padding-block: 0 !important; }
.home-program { margin-bottom: 0 !important; padding-block: clamp(4rem, 8vh, 6rem); scroll-margin-top: 6rem !important; }
.home-page-root { scroll-snap-type: y proximity; scroll-padding-top: 6rem; }
.home-page .home-hero, .home-page .home-program, .home-page .vision-section, .home-page .resources-section, .home-page .contact-section { scroll-snap-align: start; }
.home-page .resources-section, .home-page .contact-section { padding-block: clamp(4rem, 8vh, 6rem); scroll-margin-top: 6rem !important; }
.language-bar { display: flex; justify-content: flex-end; padding-top: .4rem; }
.language-switcher { display: inline-flex; align-items: center; gap: .3rem; color: #c2cbd6; font-size: .75rem; }
.language-switcher a { display: grid; place-items: center; min-width: 36px; min-height: 32px; color: #64748b; border-radius: .4rem; font-weight: 600; }
.language-switcher a[aria-current="true"] { color: #134887; background: #e9f2ff; }
.language-switcher a:hover { background: #f1f5f9; }
.language-switcher a:focus-visible, .history-card summary:focus-visible { outline: 3px solid #075bbb; outline-offset: 4px; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr); align-items: center; gap: 3rem; }
.hero-layout > div { min-width: 0; }
.hero-art { display: flex; justify-content: center; align-items: center; }
.hero-mascot { width: 352px; max-width: 100%; height: auto; max-height: 420px; object-fit: contain; transition: transform .3s ease; }
.hero-mascot:hover { transform: scale(1.05); }
.mascot-accompagnement { mix-blend-mode: multiply; }
.vision-section { padding: 5rem 0; background: linear-gradient(115deg, #0969d6, #124cc5); color: white; }
.vision-intro { max-width: 760px; margin: 0 auto; text-align: center; }
.vision-intro h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
.vision-intro p { font-size: 1.1rem; line-height: 1.8; color: #eff6ff; }
.vision-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; max-width: 1152px; margin: 7.5rem auto 0; }
.vision-card { position: relative; padding: 6rem 1.5rem 2rem; border-radius: 1.25rem; background: white; text-align: center; box-shadow: 0 10px 24px #09397420; }
.vision-card img { position: absolute; top: -72px; left: 50%; transform: translateX(-50%); width: 144px; height: 144px; border: 5px solid white; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 12px #0b39812b; }
.vision-card h3 { font-family: Poppins, sans-serif; font-weight: 700; font-size: 1.15rem; margin-bottom: .75rem; }
.vision-innovation h3 { color: #075bbb; }
.vision-communaute h3 { color: #14805c; }
.vision-impact h3 { color: #bd5513; }
.vision-card p { color: #526176; line-height: 1.7; }
.care-icon { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; color: #075bbb; background: #e6efff; margin-top: -.2rem; }
.care-icon-1 { color: #14805c; background: #e4f7ed; }
.care-icon-2 { color: #c04260; background: #fcecf0; }
.care-icon-3 { color: #a75a0c; background: #fff2da; }
.care-icon-4 { color: #7353b4; background: #f1eaff; }
.contact-section { background: #f3f8ff; padding: 5rem 0; }
.contact-panel { max-width: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2.5rem; align-items: stretch; background: none; text-align: start; }
.contact-copy { display: flex; flex-direction: column; }
.contact-eyebrow { color: var(--manar-blue) !important; text-transform: uppercase; font-size: .8rem; font-weight: 700; letter-spacing: .08em; }
.contact-copy h2 { font-family: Poppins, sans-serif; color: #142d50; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.25; font-weight: 700; }
.contact-copy address { flex: 1; display: grid; align-content: space-between; gap: 1rem; margin-top: 1.5rem; font-style: normal; }
.contact-row { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.contact-row > div { min-width: 0; }
.contact-icon { flex: 0 0 48px; height: 48px; display: grid; place-items: center; background: #e3efff; color: #075bbb; border-radius: 50%; }
.contact-label { display: block; color: #60738d; font-size: .85rem; margin-bottom: .3rem; }
.contact-row p { margin: 0; font-weight: 600; line-height: 1.6; }
.contact-row a { color: #223954; text-decoration: none; display: inline-block; overflow-wrap: anywhere; }
.contact-row a:hover { text-decoration: underline; }
.contact-mobile-numbers { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; }
.contact-map { padding: 1.5rem; background: white; border: 1px solid #e4edf8; border-radius: 1.25rem; box-shadow: 0 12px 30px #1a42600c; }
.contact-map h3 { font-family: Poppins, sans-serif; color: #142d50; font-size: 1.4rem; font-weight: 700; }
.contact-map p { font-size: .9rem; margin: .5rem 0 1rem; }
.contact-map iframe { border: 0; width: 100%; height: 340px; border-radius: .75rem; background: #edf3f9; display: block; }
.contact-map .map-button { display: block; padding: .9rem 1rem; margin-top: 1rem; background: #075bbb; color: white; border-radius: .6rem; text-align: center; text-decoration: none; }
.map-button:hover { background: #064d9f; }
.site-footer { background: #ecf4ff; color: #475569; border-top: 1px solid #dbe8f8; }
.site-footer h3, .site-footer h4 { color: #142d50; }
.site-footer a, .site-footer .footer-phones a { color: #31577e; }
.site-footer a:hover, .site-footer .footer-phones a:hover { color: #075bbb; }
.site-footer .border-gray-800 { border-color: #d6e3f4; }
.site-footer .text-gray-400 { color: #56687e; }
.history-help { color: #64748b; text-align: center; margin: -1.5rem 0 2rem; }
.history-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.history-card { position: relative; min-width: 0; border: 1px solid #e4eaf0; border-radius: .8rem; background: white; box-shadow: 0 3px 10px #16324305; }
.history-card summary { position: relative; display: flex; flex-direction: column; justify-content: center; gap: .5rem; min-height: 106px; padding: 1.2rem 2.5rem 1.2rem 1.25rem; cursor: pointer; list-style: none; }
.history-card summary::-webkit-details-marker { display: none; }
.history-year { align-self: flex-start; padding: .15rem .6rem; border-radius: 2rem; background: #e6f5ed; color: #166044; font-size: .75rem; font-weight: 700; }
.history-title { color: #1c3557; font-size: .9rem; font-weight: 700; line-height: 1.4; }
.history-plus { position: absolute; inset-inline-end: 1rem; top: 1.25rem; color: #6086b3; font-size: 1.1rem; }
.history-card[open] { z-index: 10; border-color: #93b6e0; }
.history-card[open] .history-plus { transform: rotate(45deg); }
.history-popover { position: absolute; z-index: 11; inset-inline: 0; top: calc(100% - 2px); padding: 1rem; background: white; border: 1px solid #d2e1f0; border-radius: .8rem; box-shadow: 0 18px 45px #142d5026; max-height: min(470px, 65vh); overflow: auto; }
.history-card[data-placement="above"] .history-popover { top: auto; bottom: calc(100% - 2px); }
.history-popover img { width: 100%; height: 185px; object-fit: contain; border-radius: .4rem; background: #f5f7fa; margin-bottom: 1rem; }
.history-popover p { color: #475569; font-size: .9rem; line-height: 1.65; }
.gallery-card { display: flex; flex-direction: column; margin: 0; border: 1px solid #e4eaf0; border-radius: .9rem; overflow: hidden; background: white; box-shadow: 0 4px 16px #142d500a; }
.gallery-card > a { display: block; border-radius: 0; box-shadow: none; overflow: hidden; }
html[dir="rtl"] body, html[dir="rtl"] .font-body, html[dir="rtl"] .font-display, html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { font-family: "Noto Sans Arabic", Tahoma, Arial, sans-serif; }
html[dir="rtl"] .language-bar { direction: ltr; }
html[dir="rtl"] .history-card summary { padding: 1.2rem 1.25rem 1.2rem 2.5rem; }
html[dir="rtl"] .lucide-arrow-left, html[dir="rtl"] .lucide-arrow-right { transform: scaleX(-1); }
html[dir="rtl"] .border-l-4 { border-left-width: 0; border-right-width: 4px; }
@media (max-width: 1023px) {
  .home-hero-grid { grid-template-columns: minmax(0, 1fr) 250px; gap: 2rem; }
  .home-hero-copy h1 { font-size: 2.75rem; }
  .hero-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 2rem; }
  .hero-layout h1 { font-size: 2.6rem; }
  .contact-panel { gap: 2rem; }
  .history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .home-page-root { scroll-padding-top: 7.5rem; }
  .site-header .brand-mark { height: 40px; }
  .home-hero-grid { grid-template-columns: 1fr; }
  .home-hero-copy h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .home-hero-visual img { width: min(100%, 310px); max-height: none; }
  .home-program { scroll-margin-top: 7.5rem !important; }
  .home-page .resources-section, .home-page .contact-section { scroll-margin-top: 7.5rem !important; }
  .hero-layout, .contact-panel { grid-template-columns: 1fr; }
  .hero-mascot { width: 288px; max-height: 330px; }
  .hero-layout h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .vision-section { padding: 3.5rem 0; }
  .vision-grid { grid-template-columns: 1fr; gap: 6.5rem; max-width: 420px; }
  .contact-section { padding: 3.5rem 0; }
  .contact-map { padding: 1rem; }
  .contact-map iframe { height: 300px; }
  .history-grid { grid-template-columns: 1fr; }
  .history-popover, .history-card[data-placement="above"] .history-popover { position: static; max-height: none; box-shadow: none; border: 0; border-top: 1px solid #e4eaf0; border-radius: 0 0 .8rem .8rem; }
  .history-popover img { height: auto; max-height: 260px; }
  header h1 { font-size: 1.05rem !important; text-align: center; }
  html[dir="rtl"] .sport-timeline { padding-left: 0; border-left: 0; padding-right: 1.5rem; border-right: 3px solid #1e4781; }
  html[dir="rtl"] .sport-milestone, html[dir="rtl"] .sport-milestone:nth-of-type(n) { text-align: right; padding-right: 1rem; padding-left: 0; }
  html[dir="rtl"] .sport-milestone-dot { left: auto; right: -1.5rem; transform: translateX(50%); }
}
@media (prefers-reduced-motion: reduce) { .hero-mascot { transition: none; } .hero-mascot:hover { transform: none; } }

/* Modifications du 14 octobre 2026 : textes des slides, couleurs du site. */
.lever-card { height: 100%; }
.lever-label { margin-bottom: .35rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.home-garden-photo { display: block; }
.training-download { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; padding: .75rem 1.1rem; border-radius: .5rem; background: #15803d; color: white; font-weight: 600; text-decoration: none; }
.training-download:hover, .training-download:focus-visible { background: #166534; }
.training-download-pending { background: #f1f5f9; color: #64748b; font-weight: 500; }
div:has(> .training-download) { display: flex; flex-direction: column; align-items: flex-start; }
div:has(> .training-download) > .training-download { margin-top: auto; }
.partner-group + .partner-group { padding-top: 0; }
.events-partners-band { padding: 3rem 0 4rem; border-top: 1px solid #e2e8f0; }
.event-partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-around; gap: 1.25rem 2rem; margin: 0; padding: 0; list-style: none; }
.event-partner { display: flex; align-items: center; justify-content: center; height: 76px; padding: .4rem .6rem; border-radius: .5rem; }
.event-partner-dark { background: #173746; }
.event-partner img { display: block; max-width: 170px; max-height: 64px; width: auto; height: auto; object-fit: contain; }
/* Choix de langue dans la ligne de l'en-tête, sans bandeau supplémentaire. */
.header-end { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.header-end .language-switcher { gap: .15rem; }
.header-end .language-switcher a { min-width: 30px; min-height: 30px; }
html[dir="rtl"] .header-end .language-switcher { direction: ltr; }
.coverage-caption { margin: 1rem 0 2.5rem; font-style: italic; }
.coverage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.coverage-continents { margin-top: 2rem; line-height: 1.7; }
@media (max-width: 1023px) { .coverage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .coverage-grid { grid-template-columns: 1fr; }
  .header-end { gap: .5rem; }
  .event-partners { gap: .75rem 1rem; }
  .event-partner { height: 60px; }
  .event-partner img { max-width: 130px; max-height: 50px; }
  header .container > a[data-slot="button"]:first-child { gap: 0; padding-inline: .5rem; font-size: 0; }
}
