/* Young Creators — styles communs aux trois langues. */
:root {
  --dark: #151020;
  --plum: #23152d;
  --purple: #701a70;
  --orange: #f99b35;
  --ink: #261b2d;
  --muted: #5d5164;
  --paper: #fff;
  --tint: #f6f1f7;
  --line: #e3d8e6;
  --wrap: 1320px;
  --pad: clamp(16px, 5vw, 64px);
  --radius: 14px;
  --heading: Barlow, Arial, sans-serif;
  --body: Barlow, Arial, sans-serif;
  scrollbar-color: #8e6390 #ece3ee;
}
* { box-sizing: border-box; }
html { scroll-padding-block-start: 6rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.62 var(--body); }
[lang="ar"] { --body: 'Noto Sans Arabic', Tahoma, Arial, sans-serif; --heading: var(--body); }
a { color: inherit; text-decoration: none; cursor: pointer; }
button { color: inherit; font: inherit; cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
img { display: block; max-inline-size: 100%; block-size: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--heading); font-weight: 700; line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(2.5rem, 5.5vw, 5rem); }
h2 { font-size: clamp(2rem, 4.15vw, 3.65rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { color: var(--muted); }
[dir="rtl"] :is(h1,h2,h3) { letter-spacing: 0; line-height: 1.38; }
[dir="rtl"] .eyebrow, [dir="rtl"] .tag { letter-spacing: 0; }
:focus-visible { outline: 3px solid #703480; outline-offset: 4px; }
:is(.hero,.detail-hero,.contact,.results,.method-feature,.lightbox) :focus-visible { outline-color: var(--orange); }
::selection { background: var(--orange); color: var(--dark); }
.wrap { inline-size: min(100%,var(--wrap)); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: fixed; inset-block-start: 8px; inset-inline-start: 12px; z-index: 50; padding: .6em 1em; background: var(--purple); color: white; }
.skip:not(:focus) { clip-path: inset(50%); }
.header { position: sticky; inset-block-start: 0; z-index: 20; background: var(--paper); border-block-end: 1px solid var(--line); }
.bar { min-block-size: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { flex: 0 1 124px; min-inline-size: 90px; }
.brand { display: inline-flex; align-items: center; min-block-size: 44px; }
.brand img { inline-size: 100%; }
.main-nav, .tools, .langs { display: flex; align-items: center; }
.main-nav { gap: clamp(10px,1.7vw,28px); }
.main-nav a, .langs a { display: inline-flex; align-items: center; min-block-size: 44px; }
.main-nav a { font-size: .93rem; font-weight: 600; white-space: nowrap; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--purple); text-decoration: underline; text-underline-offset: .45em; }
.main-nav .nav-contact { font-weight: 700; color: var(--purple); }
.tools { gap: 8px; }
.langs { direction: ltr; gap: 3px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.langs a { justify-content: center; gap: 5px; min-inline-size: 55px; padding-inline: 8px; font-size: .72rem; font-weight: 700; border-radius: 999px; }
.lang-flag { inline-size: 21px; block-size: 14px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px #1d12251f; }
.lang-code { line-height: 1; }
.langs a:hover { background: var(--tint); }
.langs a.active { background: var(--purple); color: white; }
.menu-btn { display: none; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); inline-size: 44px; block-size: 44px; padding: 10px; }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { background: var(--tint); }
.menu-btn span { display: block; block-size: 2px; background: currentColor; margin-block: 5px; }
.hero, .detail-hero {
  position: relative;
  isolation: isolate;
  color: var(--paper);
  background: radial-gradient(ellipse at 78% 40%, #38203e, var(--dark) 76%);
}
.hero::before { content: ''; position: absolute; inset-block: 0; inset-inline: 34% 0; z-index: -1; pointer-events: none; opacity: .13; background: url('neural-hero.webp') center/cover; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); align-items: center; gap: clamp(25px,5vw,74px); padding-block: clamp(36px,6vw,88px); }
.hero h1 { font-size: clamp(2.2rem,4.45vw,4.35rem); line-height: 1.02; }
[dir="rtl"] .hero h1 { line-height: 1.38; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero p { color: #e9deed; max-inline-size: 46ch; margin-block: 20px 24px; font-size: clamp(1.05rem,1.55vw,1.26rem); }
.eyebrow { display: block; color: var(--purple); font-size: .78rem; line-height: 1.5; font-weight: 700; letter-spacing: .12em; margin-block-end: .8rem; }
.eyebrow.light, .results .eyebrow { color: var(--orange); }
.eyebrow i { display: inline-block; inline-size: 7px; block-size: 7px; margin-inline-end: 9px; border-radius: 50%; background: var(--orange); vertical-align: .1em; }
.cta-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-block-size: 46px; padding: .65em 1em; border: 1px solid transparent; border-radius: 7px; font-size: .95rem; font-weight: 700; line-height: 1.35; transition: background-color .18s; }
.btn.primary { background: var(--orange); color: var(--dark); }
.btn.primary:hover { background: #ffba70; }
.btn.outline { border-color: #a78caf; color: white; }
.btn.outline:hover { background: #ffffff18; }
.human-collage { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.human-photo { position: relative; display: block; isolation: isolate; overflow: hidden; border-radius: 9px; background: var(--plum); }
.human-photo-main { grid-column: 1/-1; }
.human-photo img { inline-size: 100%; aspect-ratio: 2 / 1; object-fit: cover; transition: transform .25s; }
.human-photo-main img { aspect-ratio: 2.74 / 1; object-position: center 48%; }
.human-photo:hover img { transform: scale(1.035); }
.human-photo span { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-block-size: 38px; color: white; background: #33213c; padding: 6px 10px; font-size: .84rem; font-weight: 600; line-height: 1.35; }
.human-photo:hover span { background: var(--purple); }
.human-photo span::after { content: '↗'; color: var(--orange); font-family: Arial,sans-serif; }
.section { padding-block: clamp(52px,7vw,100px); }
.tint { background: var(--tint); }
.vision-grid, .section-head, .contact-grid { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr); gap: clamp(20px,5vw,75px); }
.section-head { align-items: end; margin-block-end: 30px; }
.vision-copy { display: grid; gap: 12px; padding-block-start: 8px; }
.vision-copy .lead { font-size: clamp(1.12rem,1.65vw,1.35rem); color: var(--ink); }
.values, .expertise { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: clamp(18px,4vw,60px); margin-block-start: 32px; }
.values article, .expertise article { border-block-start: 1px solid var(--line); padding-block: 19px 26px; }
.values h3, .expertise h3 { margin-block-end: 8px; }
.expertise article:first-child { border-block-start: 2px solid var(--purple); }
.filters { display: none; gap: 7px; flex-wrap: wrap; margin-block-end: 23px; }
.js .filters { display: flex; }
.filter { min-block-size: 44px; border: 1px solid var(--line); color: var(--purple); background: white; border-radius: 7px; padding: 7px 13px; font-size: .93rem; font-weight: 600; }
.filter:hover { border-color: var(--purple); }
.filter[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: white; }
.projects { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.project { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: border-color .18s; }
.project:hover, .project:focus-within { border-color: var(--purple); }
.cover { position: relative; overflow: hidden; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; background: var(--plum); aspect-ratio: 1.85; }
.cover img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.cover-arrow { position: absolute; inset-inline-end: 12px; inset-block-end: 12px; display: grid; place-items: center; inline-size: 34px; block-size: 34px; border-radius: 50%; background: var(--orange); color: var(--dark); font: 700 20px/1 Arial,sans-serif; }
.project-text { display: grid; align-content: start; gap: 8px; padding: 18px 20px 24px; }
.tag { color: var(--purple); font-size: .85rem; font-weight: 700; }
.project h3 a::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); }
.project h3 a:focus-visible { outline: none; }
.project h3 a:focus-visible::after { outline: 3px solid #703480; outline-offset: 4px; }
.project h3 a:hover { color: var(--purple); }
.project-toggle { background: white; color: var(--purple); border-color: var(--purple); margin-block-start: 24px; }
.project-toggle:hover { background: var(--tint); }
.visually-hidden { position: absolute; inline-size: 1px; block-size: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.news-section { background: var(--tint); border-block-end: 1px solid var(--line); padding-block: clamp(34px,5vw,62px); }
.news-layout { display: grid; grid-template-columns: minmax(0,.65fr) minmax(0,1.35fr); gap: clamp(20px,5vw,68px); align-items: start; }
.news-grid article { padding-block: 12px 16px; border-block-start: 1px solid var(--line); }
.news-grid article:first-child { border-block-start: 2px solid var(--purple); }
.news-grid h3 { margin-block: 5px; }
.news-grid .text-link { margin-inline-end: 14px; }
.text-link, .back { display: inline-flex; align-items: center; gap: 7px; min-block-size: 44px; font-size: .95rem; color: var(--purple); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.text-link:hover, .back:hover { text-decoration-thickness: 2px; }
.steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px 32px; margin-block-start: 30px; }
.steps article { border-block-start: 1px solid var(--line); padding-block-start: 12px; }
.step-no { display: block; color: var(--purple); font-variant-numeric: tabular-nums; font-weight: 700; }
.steps h3 { margin-block: 4px 8px; }
.method-feature { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); margin-block-start: 36px; overflow: hidden; border-radius: var(--radius); background: var(--dark); color: white; }
.method-art { display: grid; align-items: center; }
.method-art img { inline-size: 100%; }
.method-copy { padding: clamp(22px,4vw,45px); }
.method-copy h3 { font-size: clamp(1.55rem,3vw,2.65rem); }
.method-copy p { color: #e5d9eb; margin-block-start: 12px; }
.results, .contact { background: var(--plum); color: white; }
.results p, .contact p { color: #e5d9eb; }
.journey-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 25px; }
.journey-card { border-block-start: 1px solid #806583; padding-block: 16px; }
.journey-card strong { color: var(--orange); font-size: 1.5rem; }
.journey-card h3 { margin-block: 4px 10px; }
.pub { display: grid; grid-template-columns: 66px minmax(0,1fr); gap: 15px; padding-block: 18px; border-block-start: 1px solid var(--line); }
.pub-year { font-size: 1.45rem; line-height: 1.3; font-weight: 700; color: var(--purple); }
.pub h3 { margin-block: 4px; }
.pub [lang="fr"] { direction: ltr; text-align: start; }
.research-note, .documented-findings { margin-block-start: 23px; padding: 20px; border-inline-start: 3px solid var(--orange); background: var(--tint); }
.media { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-block-start: 23px; }
.socials, .footer-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.social, .footer-links a { display: inline-flex; align-items: center; min-block-size: 44px; color: var(--purple); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.partners-section { background: var(--tint); }
.partner-intro { max-inline-size: 66ch; margin-block-start: 14px; }
.partner-group { margin-block-start: 28px; }
.partner-group h3 { margin-block-end: 10px; }
.logo-band { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,140px),1fr)); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.logo-slot { position: relative; min-block-size: 94px; display: grid; align-content: center; justify-items: center; gap: 6px; padding: 14px 12px; text-align: center; font-weight: 700; }
.logo-slot::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-block-end: 1px solid var(--tint); border-inline-end: 1px solid var(--tint); }
a.logo-slot:hover { background: var(--tint); color: var(--purple); }
.logo-slot img { inline-size: auto; max-inline-size: 100%; block-size: 40px; object-fit: contain; }
.logo-word { font-size: .96rem; line-height: 1.3; overflow-wrap: anywhere; }
.has-logo .logo-word { font-size: .84rem; font-weight: 600; }
.contact-grid { align-items: start; }
.contact-grid p { margin-block-end: 15px; }
.contact p.email { margin-block: 10px 0; overflow-wrap: anywhere; }
footer { position: relative; isolation: isolate; overflow: hidden; color: white; background: var(--dark); border-block-start: 3px solid var(--orange); }
footer::before { position: absolute; z-index: -1; inset: 0; content: ''; pointer-events: none; opacity: .42; background: radial-gradient(circle at 12% 0%, #6a2d694f, transparent 42%), linear-gradient(90deg,#ffffff08 1px,transparent 1px), linear-gradient(#ffffff08 1px,transparent 1px); background-size: auto, 52px 52px, 52px 52px; }
.footer-inner { display: grid; grid-template-columns: .72fr 1.28fr; align-items: end; gap: 18px 34px; padding-block: 36px 24px; font-size: .9rem; }
.footer-brand { display: grid; justify-items: start; gap: 8px; }
.footer-brand-logo { inline-size: clamp(128px, 13vw, 176px); }
.footer-brand p { max-inline-size: 46ch; color: #d9cddd; }
.footer-links { justify-content: end; align-items: center; gap: 8px 10px; }
.footer-links a { color: #f3ebf5; text-decoration-color: #8e6f91; }
.footer-links a:hover, .footer-links a:focus-visible { color: white; text-decoration-color: var(--orange); }
.footer-links .social-icon { justify-content: center; inline-size: 44px; block-size: 44px; padding: 0; border: 1px solid #ffffff52; border-radius: 50%; color: white; text-decoration: none; transition: color .2s, background-color .2s, border-color .2s, transform .2s; }
.footer-links .social-icon:hover, .footer-links .social-icon:focus-visible { color: var(--dark); background: var(--orange); border-color: var(--orange); transform: translateY(-2px); }
.social-icon svg { inline-size: 20px; block-size: 20px; fill: currentColor; }
.copyright { grid-column: 1/-1; border-block-start: 1px solid #ffffff26; padding-block-start: 14px; color: #bcaec2; }
.detail-hero { padding-block: clamp(18px,4vw,50px) clamp(32px,6vw,82px); }
.back { color: #ffd0a1; margin-block-end: 22px; }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(24px,5vw,66px); align-items: center; }
.detail-grid p { color: #eee3f0; margin-block: 14px 17px; font-size: clamp(1.06rem,1.7vw,1.3rem); }
.detail-grid img { inline-size: 100%; max-block-size: 340px; object-fit: contain; border-radius: var(--radius); }

.abstract-cover {
  background: radial-gradient(ellipse at 84% 25%, #704169, #392442 58%, var(--dark));
  isolation: isolate;
}
.abstract-cover::before, .editorial-detail::before {
  position: absolute;
  inset: 0;
  content: '';
  pointer-events: none;
  z-index: -1;
  background: url('neural-hero.webp') center / cover;
  opacity: .16;
}
.project[data-category="education"] .abstract-cover {
  background: radial-gradient(ellipse at 84% 25%, #8c4b47, #4c2940 56%, var(--dark));
}
.project[data-category="cooperation"] .abstract-cover {
  background: radial-gradient(ellipse at 84% 25%, #574875, #3b2a57 56%, var(--dark));
}
.editorial-detail { overflow: hidden; }
.editorial-detail::before {
  inset-inline-start: 35%;
  mask-image: linear-gradient(90deg, transparent, #000);
}
[dir="rtl"] .editorial-detail::before {
  mask-image: linear-gradient(270deg, transparent, #000);
}
.editorial-detail .detail-grid { grid-template-columns: minmax(0,1fr); }
.editorial-detail .detail-grid h1 { max-inline-size: 19ch; overflow-wrap: anywhere; }

.status { display: inline-block; border: 1px solid #b67a62; border-radius: 5px; color: #ffca96; padding: 4px 10px; font-size: .9rem; font-weight: 600; }
.detail-body, .legal { --wrap: 950px; }
.detail-body article, .legal article { margin-block-end: 24px; }
.detail-body h2, .legal h2 { font-size: clamp(1.5rem,2.75vw,2.2rem); margin-block-end: .4em; }
.legal h1 { margin-block-end: 32px; font-size: clamp(2.3rem,5vw,4rem); }
.legal-details { display: grid; gap: 4px; }
.legal-details dt { font-weight: 700; }
.legal-details dd { margin: 0 0 9px; color: var(--muted); overflow-wrap: anywhere; }
.legal a { color: var(--purple); overflow-wrap: anywhere; text-decoration: underline; }
.documented-findings { margin-block-start: 25px; }
.certification-teaser { display: inline-flex; align-items: center; gap: 12px; }
.certification-logo {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  block-size: auto;
  padding: 6px;
}
.certification-teaser .certification-logo { flex: 0 0 auto; inline-size: 72px; }
.certification-detail {
  display: grid;
  grid-template-columns: 136px minmax(0,1fr);
  align-items: center;
  gap: 18px;
}
.certification-detail .certification-logo { inline-size: 136px; }
@media (max-width: 480px) {
  .certification-detail { grid-template-columns: minmax(0,1fr); }
}
.source-note { margin-block-start: 9px; font-size: .92rem; }
.fact-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 14px 0; padding: 0; list-style: none; }
.fact-grid strong { display: block; color: var(--purple); font-size: 1.8rem; line-height: 1.1; }
.field-gallery { margin-block-start: 32px; }
.photo-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.photo-grid a { display: block; background: var(--tint); border-radius: 8px; }
.photo-grid a:hover { box-shadow: 0 0 0 2px var(--purple); }
.photo-grid img { inline-size: 100%; aspect-ratio: 16 / 10; object-fit: contain; }
.photo-grid figcaption { margin-block-start: 6px; color: var(--muted); font-size: .94rem; }
.related { margin-block-start: 36px; }
.related .projects { grid-template-columns: repeat(2,minmax(0,1fr)); }
.lightbox { color: white; background: var(--dark); border: 1px solid #786880; border-radius: 12px; padding: 14px; inline-size: min(94vw,1000px); max-block-size: 94dvh; }
.lightbox::backdrop { background: #100b17dc; }
.lightbox img { inline-size: 100%; max-block-size: 69dvh; object-fit: contain; }
.lightbox figcaption { margin-block: 9px; }
.lightbox-toolbar { display: flex; justify-content: end; gap: 8px; margin-block-end: 9px; }
.lightbox button { min-block-size: 44px; padding: 5px 12px; border: 1px solid #a78caf; border-radius: 6px; background: var(--plum); color: white; }
.lightbox button:hover { background: var(--purple); }
.error-page { display: grid; align-items: center; min-block-size: 100svh; padding-block: 40px; }
.error-page p { color: #eee3f0; margin-block: 10px 24px; }

@media (max-width: 1000px) {
  .bar { flex-wrap: wrap; gap: 0 10px; min-block-size: 64px; }
  .brand img { max-block-size: 54px; object-fit: contain; object-position: start; }
  .main-nav { order: 3; inline-size: 100%; flex-wrap: wrap; }
  .js .menu-btn { display: block; }
  .js .main-nav { display: none; }
  .js .main-nav.open { display: grid; gap: 0; padding-block: 4px 10px; border-block-start: 1px solid var(--line); max-block-size: calc(100dvh - 65px); overflow: auto; }
  .main-nav a { padding-inline: 8px; }
  html:not(.js) .header { position: static; }
  .hero-grid { gap: 26px; }
}
@media (max-width: 750px) {
  .hero-grid, .vision-grid, .section-head, .contact-grid, .detail-grid, .news-layout { grid-template-columns: minmax(0,1fr); gap: 19px; }
  .hero h1 { font-size: clamp(2.28rem,8.5vw,4rem); }
  .hero p { margin-block: 14px 18px; }
  .vision-copy { padding: 0; }
  .values, .expertise, .projects, .steps, .journey-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: start; }
}
@media (max-width: 480px) {
  .brand { flex-basis: 98px; }
  .langs a { min-inline-size: 38px; padding-inline: 7px; }
  .lang-code { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
  .tools { gap: 5px; }
  .hero-grid { padding-block: 25px; }
  .human-collage { gap: 6px; }
  .human-photo span { font-size: .785rem; }
  .values, .expertise, .projects, .related .projects, .journey-grid, .method-feature, .photo-grid { grid-template-columns: minmax(0,1fr); }
  .values article, .expertise article { padding-block: 11px 15px; }
  .method-art { max-block-size: 165px; overflow: hidden; }
  .fact-grid { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 13px; }
  .pub { grid-template-columns: 52px minmax(0,1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .human-photo:hover img { transform: none; }
  .footer-links .social-icon:hover, .footer-links .social-icon:focus-visible { transform: none; }
}
@media (forced-colors: active) {
  :root { scrollbar-color: auto; }
}
@media print {
  .header,.hero-visual,.filters,.footer-links,.cta-row,.socials,.project-toggle,.skip { display: none !important; }
  .section { padding-block: 18px; }
  .hero,.results,.contact,.detail-hero { color: black; background: white; }
  .hero::before { display: none; }
  .hero h1 em,.results .eyebrow,.results p,.hero p,.contact p,.detail-grid p { color: black; }
  .project,figure { break-inside: avoid; }
  footer { color: black; background: white; border: 0; }
  footer::before { display: none; }
  .footer-brand-logo { filter: invert(1); }
  .footer-brand p, .copyright { color: black; }
}


@font-face {
  font-family: Barlow;
  src: url('fonts/barlow-latin-400-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url('fonts/barlow-latin-600-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url('fonts/barlow-latin-700-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans Arabic';
  src: url('fonts/noto-sans-arabic-arabic-wght-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}

@media (max-width: 340px) {
  .brand { flex-basis: 90px; }
}

/* Galerie des espaces de l’incubateur */
.incubator-gallery > p { max-inline-size: 62ch; margin-block: 6px 16px; }
.incubator-gallery .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.7vw, 20px); }
.incubator-gallery .photo-grid img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: 7px; }
.incubator-gallery .photo-grid figcaption { font-weight: 600; line-height: 1.4; }

@media (max-width: 900px) {
  .incubator-gallery .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .incubator-gallery .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .incubator-gallery .photo-grid figcaption { font-size: .87rem; }
}


/* Mission Senegal and confirmed public events */
.field-events { margin-block: 32px; }
.field-events-head { margin-block-end: 15px; }
.field-events-head h3 { margin-block-end: 6px; }
.field-events-head p { max-inline-size: 64ch; color: var(--muted); }
.field-event-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.field-event-card { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.field-event-card > img { display: block; inline-size: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--tint); }
.field-event-copy { padding: 14px 15px 17px; }
.field-event-meta { display: block; color: var(--purple); font-size: .78rem; font-weight: 700; line-height: 1.4; }
.field-event-copy h4 { margin: 6px 0; font-size: 1.08rem; line-height: 1.3; }
.field-event-copy p { margin: 0; color: var(--muted); font-size: .93rem; }
.senegal-gallery > p { max-inline-size: 62ch; margin-block: 6px 16px; }
.senegal-gallery .photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(12px,2vw,22px); align-items: start; }
.senegal-gallery .photo-grid img { inline-size: 100%; block-size: auto; max-block-size: 540px; aspect-ratio: auto; object-fit: contain; background: var(--tint); border-radius: 7px; }
.senegal-gallery .photo-grid figcaption { font-weight: 600; line-height: 1.4; }
@media (max-width: 900px) { .field-event-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px) { .field-event-grid { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 480px) { .senegal-gallery .photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; } .senegal-gallery .photo-grid figcaption { font-size: .87rem; } }

/* Documentary project opening and catalogue navigation */
.catalog-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-block: 12px 22px; }
.catalog-tools p { font-size: .95rem; font-weight: 600; }
.catalog-tools .project-toggle { margin: 0; min-block-size: 44px; }
.catalog-tools:has(.project-toggle[disabled]) { display: none; }
.detail-hero .mission-photo img { max-block-size: none; border-radius: 10px; }
.mission-photo figcaption { color: #f1dfd4; padding-block-start: 8px; font-size: .94rem; }
@media (min-width: 751px) {
  .editorial-detail .detail-grid:has(.mission-photo) { grid-template-columns: 1fr 1fr; }
}
main > .senegal-gallery { max-inline-size: var(--wrap); padding-inline: var(--pad); margin-inline: auto; }
@media (max-width: 480px) {
  .senegal-gallery .photo-grid { grid-template-columns: 1fr; gap: 24px; }
}
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.header .brand { flex-basis:102px; min-inline-size:76px; }
.header .main-nav a[aria-current=page] { color:#702b70; text-decoration:underline; text-underline-offset:.42em; }
@media(max-width:600px){.header .brand{flex-basis:84px;}}

