/* Creative Tunisia 2.0 - home v3
   Inspiration: biofarma.com.ar (pill nav, inset rounded hero, card strip, soft tint, scroll-revealed statement).
   Brand: Barlow Condensed + Barlow, brick red / ink / off-white. Axis palettes only inside .ax-* components. */

:root {
  --ink: #141414;
  --ink-2: #3a3836;
  --mute: #6b6560;
  --red: #a02828;
  --red-d: #7d1c1c;
  --white: #fff;
  --bg: #fbf7f3;
  --tint: #f3e9e2;
  --line: #e6dcd5;
  --r-xl: 36px;
  --header-h: 104px;
  --nav-h: var(--header-h);
  --paper: #f2f2ef;
  --r-lg: 28px;
  --r-md: 20px;
  --pad: clamp(16px, 2.2vw, 32px);
  --max: 1360px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Barlow", system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(60, 30, 20, .06), 0 14px 40px -12px rgba(60, 30, 20, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  background:
    radial-gradient(900px 600px at 92% 4%, rgba(160, 40, 40, .08), transparent 70%),
    radial-gradient(800px 700px at 4% 38%, rgba(232, 184, 140, .22), transparent 70%),
    radial-gradient(900px 700px at 96% 72%, rgba(160, 40, 40, .06), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--red); color: #fff; }
html { scrollbar-color: var(--red) var(--tint); scrollbar-width: thin; }
.skip { position: absolute; left: 12px; top: -64px; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; z-index: 300; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(72px, 9vw, 140px); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: .96; letter-spacing: -.012em; text-wrap: balance; }
h2 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); }
h3 { font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1; }
.dot { display: inline-block; width: .16em; height: .16em; border-radius: 50%; background: var(--red); margin-left: .06em; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; gap: .75em; padding: .9em 1.5em; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1; white-space: nowrap; color: var(--fg); background: var(--bg);
  transition: transform .3s var(--ease), background-color .25s, box-shadow .3s var(--ease);
}
.btn i { font-size: 1.1em; transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(20, 20, 20, .45); }
.btn:hover i { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--red { --bg: var(--red); }
.btn--red:hover { background: var(--red-d); }
.btn--white { --bg: #fff; --fg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { --bg: var(--ink); --fg: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn .pip { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.link {
  display: inline-flex; align-items: center; gap: .5em; font-weight: 600; padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1.5px no-repeat;
  transition: background-size .4s var(--ease), color .2s;
}
.link:hover { background-size: 0 1.5px; background-position: right bottom; color: var(--red); }
.link i { transition: transform .3s var(--ease); }
.link:hover i { transform: translateX(4px); }

/* ---------- hero ---------- */
.hero { padding: var(--pad); padding-bottom: 0; }
.hero-frame {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl);
  min-height: clamp(560px, 86vh, 820px); display: flex; align-items: center;
  padding: 96px clamp(28px, 6vw, 96px) clamp(150px, 15vw, 210px); background: var(--tint);
}
.hero-frame > img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%;
  transform: scale(1.06); animation: hero-in 1.8s var(--ease) both;
}
.hero-frame::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(251, 247, 243, .93) 0%, rgba(251, 247, 243, .72) 38%, rgba(251, 247, 243, .1) 66%, transparent 80%);
}
@keyframes hero-in { from { transform: scale(1.14); } to { transform: scale(1.06); } }
.hero-copy { max-width: 780px; }
.hero h1 { font-size: clamp(3rem, 7vw, 6rem); line-height: .94; font-weight: 500; letter-spacing: -.02em; }
.hero-copy--long { max-width: 640px; }
.hero-copy--long h1, .hero h1.long { font-size: clamp(1.6rem, 2.5vw, 2.4rem); line-height: 1.12; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--red); font-weight: 600; }
.hero .lead { margin-top: 26px; max-width: 46ch; font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.5; color: var(--ink-2); }
.hero .cta { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn--white { box-shadow: var(--shadow); }
.hero h1 span.l { display: block; overflow: hidden; padding-bottom: .08em; }
.hero h1 span.l > span { display: block; animation: rise 1.1s var(--ease) both; animation-delay: calc(.15s + var(--i, 0) * .12s); }
.hero .lead, .hero .cta { animation: fade-up 1s var(--ease) .55s both; }
.hero .cta { animation-delay: .7s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* hero slideshow (list of slides in the CT Accueil : bannière widget) */
.hero-frame.hero-frame--slider { display: grid; align-items: stretch; padding: 0; }
.hero-slide {
  grid-area: 1 / 1; position: relative; isolation: isolate; display: flex; align-items: center;
  padding: 96px clamp(28px, 6vw, 96px) clamp(150px, 15vw, 210px);
  visibility: hidden;
}
.hero-slide.on, .hero-slide.out { visibility: visible; }
.hero-slide.on { z-index: 2; }
.hero-slide.out { z-index: 1; }
.hero-slide > img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%;
  transform: scale(1.14);
}
.hero-slide.on > img { transform: scale(1.06); animation: hero-in 1.8s var(--ease) both; }
.hero-slide.out > img { transform: scale(1.06); }
.hero-slide::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(251, 247, 243, .93) 0%, rgba(251, 247, 243, .72) 38%, rgba(251, 247, 243, .1) 66%, transparent 80%);
}
/* change of slide: soft crossfade over the previous slide */
.hero-frame--slider.ready .hero-slide.on { animation: hero-fade .9s var(--ease) both; }
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
.hero-slide.out .hero-copy { opacity: 0; transition: opacity .4s var(--ease); }
.hero-slide.out h1 span.l > span, .hero-slide.out h2 span.l > span { animation: none; transform: none; }
.hero-slide.out .lead, .hero-slide.out .cta { animation: none; }
.hero-slide:not(.on):not(.out) h1 span.l > span, .hero-slide:not(.on):not(.out) h2 span.l > span { animation: none; transform: translateY(105%); }
.hero-slide:not(.on):not(.out) .lead, .hero-slide:not(.on):not(.out) .cta { animation: none; opacity: 0; }
.hero h2 { font-size: clamp(3rem, 7vw, 6rem); line-height: .94; font-weight: 500; letter-spacing: -.02em; }
.hero h2 em { font-style: normal; color: var(--red); font-weight: 600; }
.hero h2 span.l { display: block; overflow: hidden; padding-bottom: .08em; }
.hero h2 span.l > span { display: block; animation: rise 1.1s var(--ease) both; animation-delay: calc(.15s + var(--i, 0) * .12s); }
.elementor .hero-slide > img { width: 100%; height: 100%; max-width: none; object-fit: cover; }

/* full-width banner: edge to edge, fixed copy, photos cycle behind it */
.hero.hero--full { padding: 0; }
.hero-frame--full { border-radius: 0; min-height: clamp(480px, 56vh, 600px); padding-top: clamp(48px, 6vh, 72px); padding-bottom: 120px; }
.hero-frame--full.hero-frame--slider { display: flex; padding: clamp(48px, 6vh, 72px) clamp(28px, 6vw, 96px) 120px; }
.hero-frame--full::after { z-index: 0; }
.hero-frame--full .hero-slide--img { position: absolute; inset: 0; padding: 0; z-index: -2; }
.hero-frame--full .hero-slide--img.on { z-index: -2; }
.hero-frame--full .hero-slide--img.out { z-index: -3; }
.hero-frame--full .hero-slide--img::after { display: none; }
.hero-frame--full .hero-copy { position: relative; z-index: 1; }
.hero-frame--full .hero-copy .lead { max-width: 60ch; }
.hero-frame--full .hero-nav { z-index: 3; }
@media (max-width: 760px) {
  .hero-frame--full, .hero-frame--full.hero-frame--slider { padding: 56px 22px 300px; align-items: flex-start; }
  .hero-frame--full::after { background: linear-gradient(180deg, rgba(251, 247, 243, .96) 0%, rgba(251, 247, 243, .9) 46%, rgba(251, 247, 243, .35) 62%, rgba(251, 247, 243, 0) 76%); }
}

/* partner logos along the bottom of the full-width banner */
.hero-logos {
  position: absolute; z-index: 2; left: auto; right: clamp(28px, 6vw, 96px); bottom: clamp(20px, 3vw, 36px);
  display: flex; align-items: center; justify-content: flex-end; gap: 18px 36px; flex-wrap: wrap; max-width: calc(100% - 2 * clamp(28px, 6vw, 96px));
  padding: 16px clamp(18px, 2.4vw, 32px); border-radius: var(--r-lg); background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow);
}
.hero-logos ul { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 14px clamp(18px, 2.2vw, 30px); }
.hero .hero-logos li img { height: clamp(22px, 2.2vw, 32px); width: auto; max-width: 120px; object-fit: contain; }
@media (max-width: 760px) { .hero-logos { left: auto; right: 14px; max-width: calc(100% - 28px); bottom: 14px; padding: 12px 16px; } .hero .hero-logos li img { height: 24px; } }

/* compact banner: the programme cards below stay in view */
.hero-frame--full { min-height: clamp(520px, 62vh, 660px); }
.hero-frame--full, .hero-frame--full.hero-frame--slider { padding-top: 56px; padding-bottom: 104px; }
.hero-frame--full .hero-copy--long .lead { max-width: 60ch; margin-top: 18px; }
.hero-frame--full .cta { margin-top: 24px; }
/* one left/right edge for the header, banner copy, logos and sections */
:root { --edge: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad))); }
@media (min-width: 761px) {
  .hero-frame--full, .hero-frame--full.hero-frame--slider { padding-left: var(--edge); padding-right: var(--edge); }
  .hero-frame--full .hero-logos { right: var(--edge); max-width: calc(100% - 2 * var(--edge)); }
}
.header .wrap { max-width: var(--max); }
#offres.section { padding-top: clamp(24px, 2.4vw, 36px) !important; }
#offres .sec-head { margin-bottom: clamp(20px, 2.2vw, 32px); flex-wrap: nowrap; align-items: flex-end; }
#offres .sec-head h2 { font-size: clamp(2.2rem, 3.6vw, 3.4rem); }
#offres .sec-head .link { white-space: nowrap; }
@media (max-width: 760px) { .hero-frame--full, .hero-frame--full.hero-frame--slider { padding: 40px 22px 300px; } }

/* controls: a progress bar on the top edge of the frame (the timer) and small dots at the top right */
.hero-nav { position: absolute; inset: 0; z-index: 3; pointer-events: none; color: #fff; filter: drop-shadow(0 1px 5px rgba(20, 20, 20, .4)); }
.hero-bar { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.hero-bar span { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(0); animation: hero-bar var(--hero-delay, 7s) linear forwards; }
[data-autoplay="0"] .hero-bar span { animation: none; transform: scaleX(0); }
.hero-frame--slider.paused .hero-bar span { animation-play-state: paused; }
@keyframes hero-bar { to { transform: scaleX(1); } }
.hero-dots { position: absolute; top: 18px; right: 18px; display: flex; gap: 2px; pointer-events: auto; }
.hero-dot { border: 0; background: none; cursor: pointer; padding: 8px 5px; }
.hero-dot span { display: block; width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: .4; transition: opacity .3s, transform .3s var(--ease); }
.hero-dot:hover span { opacity: .8; }
.hero-dot.on span { opacity: 1; transform: scale(1.25); }
.hero-dot:focus-visible { outline: 2px solid #fff; border-radius: 4px; }
@media (max-width: 760px) {
  .hero-slide { padding: 56px 22px 300px; align-items: flex-start; }
  .hero-slide > img { object-position: 62% 78%; }
  .hero-slide::after { background: linear-gradient(180deg, rgba(251, 247, 243, .96) 0%, rgba(251, 247, 243, .9) 46%, rgba(251, 247, 243, .35) 62%, rgba(251, 247, 243, 0) 76%); }
  .hero-dots { top: 14px; right: 12px; }
}

/* ---------- card strip (overlaps hero) ---------- */
.strip { position: relative; z-index: 2; margin-top: clamp(-150px, -11vw, -96px); }
.strip-scroll {
  display: flex; gap: 16px; overflow-x: auto; padding: 4px var(--pad) 28px; scroll-snap-type: x proximity; scrollbar-width: none;
  scroll-padding-inline: var(--pad);
}
.strip-scroll::-webkit-scrollbar { display: none; }
.sc {
  flex: none; scroll-snap-align: start; position: relative; overflow: hidden; border-radius: var(--r-lg); background: #fff;
  width: clamp(250px, 23vw, 330px); min-height: 300px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow); opacity: 0; transform: translateX(70px);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.strip.in .sc { opacity: 1; transform: none; }
.sc .num { font-family: var(--display); font-weight: 500; font-size: clamp(4.4rem, 6.6vw, 6.4rem); line-height: .85; letter-spacing: -.03em; color: var(--ink); display: flex; align-items: flex-start; gap: .06em; }
.sc .num sup { font-size: .42em; line-height: 1; margin-top: .1em; color: var(--red); font-weight: 600; }
.sc .cap { font-weight: 500; font-size: 1.02rem; line-height: 1.35; color: var(--ink-2); }
.sc .cap b { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; font-weight: 600; }
.sc--wide { width: clamp(300px, 30vw, 430px); }
.sc--photo { padding: 0; color: #fff; background: var(--ink); justify-content: flex-end; }
.sc--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.sc--photo:hover img { transform: scale(1.05); }
.sc--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(20, 12, 8, .72)); }
.sc--photo .cap { position: relative; z-index: 1; padding: 26px; color: #fff; }
.sc--photo .cap b { color: #fff; opacity: .85; }
.sc--photo .cap span { font-family: var(--display); font-size: 2rem; font-weight: 600; line-height: 1; display: block; }
.sc--red { background: var(--red); color: #fff; }
.sc--red .num, .sc--red .cap { color: #fff; }
.sc--red .num sup, .sc--red .cap b { color: #fff; opacity: .8; }
.sc--tint { background: var(--tint); box-shadow: none; }
.sc--logos { gap: 14px; justify-content: flex-start; }
.sc--logos .cap b { margin-bottom: 4px; }
.sc--logos .lg { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: auto; }
.sc--logos .lg img { height: 34px; width: auto; max-width: 48%; object-fit: contain; object-position: left; }

/* endless loop (JS wraps the cards in .strip-track and clones them once) */
.strip-scroll.loop { overflow: hidden; padding-inline: 0; scroll-snap-type: none; padding-block: 4px 40px; margin-bottom: -12px; }
.strip-track { display: flex; gap: 16px; width: max-content; will-change: transform; }
.strip-scroll.loop { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.strip-scroll.dragging { cursor: grabbing; }

/* ---------- statement ---------- */
.statement { text-align: center; }
.statement .st {
  max-width: 1080px; margin-inline: auto; font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 4.1vw, 3.7rem);
  line-height: 1.06; letter-spacing: -.012em; text-wrap: balance;
}
.statement .st .w { opacity: .16; transition: opacity .35s linear; }
.statement .st .w.on { opacity: 1; }
.statement .st .w.hl { color: var(--red); }
.statement .sub { max-width: 60ch; margin: 34px auto 0; color: var(--ink-2); font-size: 1.15rem; }
.statement .link { margin-top: 26px; }
.statement--intro { padding-top: clamp(112px, 15vh, 170px); }

/* ---------- offers ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head p { max-width: 52ch; color: var(--ink-2); margin-top: 14px; font-size: 1.1rem; }
.ogrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.oc {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r-xl); overflow: hidden; background: var(--soft);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.oc:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.oc .im { position: relative; margin: 10px 10px 0; border-radius: calc(var(--r-xl) - 10px); overflow: hidden; aspect-ratio: 16 / 10; }
.oc .im img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.oc:hover .im img { transform: scale(1.05); }
.oc .tx { padding: 24px 28px 30px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.oc h3 { color: var(--deep); }
.oc p { color: var(--ink); max-width: 44ch; }
.oc .row { margin-top: auto; padding-top: 6px; display: flex; gap: 10px; flex-wrap: wrap; }
.oc .btn { --bg: var(--red); }
.oc .btn:not(.btn--ghost):hover { background: var(--red-d); }
.oc .btn--ghost { --bg: transparent; --fg: var(--deep); box-shadow: inset 0 0 0 1.5px var(--deep); }
.oc .btn--ghost:hover { --bg: var(--deep); --fg: #fff; }
.oc--a { grid-column: span 7; } .oc--b { grid-column: span 5; } .oc--c { grid-column: span 5; } .oc--d { grid-column: span 7; }
.oc--b .im, .oc--c .im { aspect-ratio: 4 / 3; }
@media (min-width: 1100px) {
  .ogrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ogrid > .oc { grid-column: span 1; }
  .ogrid .oc .im { aspect-ratio: 4 / 3; }
  .ogrid .oc .tx { padding: 20px 20px 24px; }
  .ogrid .oc h3 { font-size: clamp(1.35rem, 1.7vw, 1.7rem); }
}
.brochure { margin-top: 26px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; color: var(--ink-2); }

/* ---------- partners ---------- */
.partners-panel {
  background: #fff; border-radius: var(--r-xl); padding: clamp(30px, 4vw, 56px); display: grid; grid-template-columns: .9fr 1.4fr; gap: 32px 56px; align-items: center;
}
.partners-panel h2 { font-size: clamp(2rem, 3.4vw, 3.1rem); }
.partners-panel p { margin-top: 12px; color: var(--ink-2); }
.partners-panel ul { display: grid; grid-template-columns: repeat(12, 1fr); align-items: center; justify-items: center; gap: 30px 28px; }
.partners-panel li:nth-child(1) { grid-column: span 5; }
.partners-panel li:nth-child(2) { grid-column: span 7; }
.partners-panel li:nth-child(3) { grid-column: span 6; }
.partners-panel li:nth-child(4), .partners-panel li:nth-child(5) { grid-column: span 3; }
.partners-panel li { display: flex; align-items: center; justify-content: center; }
.partners-panel li img { height: 60px; width: auto; max-width: 100%; object-fit: contain; transition: transform .4s var(--ease); }
.partners-panel li:hover img { transform: translateY(-3px); }

/* ---------- results ---------- */
.results { background: #fff; color: var(--ink); border-radius: var(--r-xl); padding: clamp(36px, 5vw, 72px); position: relative; overflow: hidden; isolation: isolate; }
.results::before { content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; right: -160px; top: -240px; border-radius: 50%; background: radial-gradient(closest-side, rgba(160, 40, 40, .12), transparent); }
.results h2 { max-width: 14ch; }
.rgrid { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.rs { padding: 8px clamp(14px, 2vw, 28px) 8px 0; }
.rs + .rs { padding-left: clamp(14px, 2vw, 28px); border-left: 1px solid var(--line); }
.rs b { color: var(--red); font-family: var(--display); font-weight: 500; font-size: clamp(3.2rem, 5vw, 5rem); line-height: .9; letter-spacing: -.03em; display: block; font-variant-numeric: tabular-nums; }
.rs b i { font-style: normal; color: var(--red); }
.rs p { margin-top: 12px; color: var(--ink-2); font-size: 1rem; line-height: 1.35; max-width: 18ch; }

/* ---------- news ---------- */
.mocknote { display: inline-block; margin-top: 12px; font-size: .85rem; color: var(--mute); background: rgba(255, 255, 255, .7); padding: 4px 12px; border-radius: 999px; }
.news { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.post { display: flex; flex-direction: column; gap: 14px; }
.post .img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.post:first-child .img { aspect-ratio: 5 / 4; }
.post .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.post:hover .img img { transform: scale(1.05); }
.post time { font-size: .9rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.post h3 { font-size: clamp(1.4rem, 1.9vw, 1.8rem); line-height: 1.05; }
.post:hover h3 { color: var(--red); }

/* ---------- CTA + footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .78); padding-top: clamp(48px, 6vw, 84px); }
.footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 56px; }
.footer .brand img { height: 64px; width: auto; }
.footer .top > div:first-child p { margin-top: 18px; max-width: 34ch; }
.footer h4 { font-family: var(--display); font-weight: 600; color: #fff; font-size: 1.3rem; margin-bottom: 14px; }
.footer li + li { margin-top: 8px; }
.footer a { transition: color .2s; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer .bot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .92rem; }

/* ---------- axis palettes (only inside axis components) ---------- */
.ax-formation  { --red:#C33C19; --red-d:#8A3B12; --deep:#8A3B12; --soft:#F4CC8F; --hi:#FCA40F; --hi-on:#14161C; }
.ax-incubation { --red:#0F42B7; --red-d:#0A2A5C; --deep:#0A2A5C; --soft:#C9D6F5; --hi:#FECE00; --hi-on:#14161C; }
.ax-niveau     { --red:#00464D; --red-d:#0A3339; --deep:#0A3339; --soft:#AFD9CF; --hi:#C7E538; --hi-on:#14161C; }
.ax-diaspora   { --red:#71277C; --red-d:#2A1030; --deep:#0D1019; --soft:#D8B8E0; --hi:#2FBDBE; --hi-on:#14161C; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 100ms); }
.rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
/* news: one lead story + compact list (v4) */
.news--feat { grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.news--feat .post--lead .img { aspect-ratio: 4 / 3; }
.news--feat .post--lead .img img { object-fit: contain; background: #fff; }
.news-list { display: flex; flex-direction: column; }
.nrow { display: grid; grid-template-columns: 132px 1fr auto; gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.nrow:first-child { padding-top: 0; }
.nrow .th { display: block; aspect-ratio: 4 / 3; border-radius: var(--r-md, 16px); overflow: hidden; background: #fff; }
.nrow .th img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.nrow:hover .th img { transform: scale(1.06); }
.nrow .tx { display: flex; flex-direction: column; gap: 6px; }
.nrow time { font-size: .9rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.nrow b { font-weight: 500; font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.2; }
.nrow i { color: var(--red); transition: transform .3s var(--ease); }
.nrow:hover b { color: var(--red); } .nrow:hover i { transform: translateX(4px); }
@media (max-width: 900px) { .news--feat { grid-template-columns: 1fr; } .nrow { grid-template-columns: 96px 1fr auto; gap: 14px; } }
@media (max-width: 1100px) {
  .ogrid > * { grid-column: span 12 !important; }
  .partners-panel { grid-template-columns: 1fr; }
  .rgrid { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .rs:nth-child(4) { padding-left: 0; border-left: 0; }
  .news { grid-template-columns: 1fr 1fr; }
  .news .post:first-child { grid-column: span 2; }
  .footer .top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero-frame { min-height: 760px; padding: 56px 22px 300px; align-items: flex-start; }
  .hero-frame > img { object-position: 62% 78%; }
  .hero-frame::after { background: linear-gradient(180deg, rgba(251, 247, 243, .96) 0%, rgba(251, 247, 243, .9) 46%, rgba(251, 247, 243, .35) 62%, rgba(251, 247, 243, 0) 76%); }
  .rgrid { grid-template-columns: 1fr 1fr; }
  .rs, .rs + .rs { padding: 0 12px 0 0; border-left: 0; }
  .rs:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .news { grid-template-columns: 1fr; } .news .post:first-child { grid-column: auto; }
  .footer .top { grid-template-columns: 1fr; }
  .oc .tx { padding: 20px 22px 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .rv, .sc { opacity: 1; transform: none; }
  .statement .st .w { opacity: 1; }
}

/* ---------- v3: pinned tabbed deep-dive (from v1), inset and rounded in the v2 shell ---------- */
.btn--hi { --bg: var(--hi); --fg: var(--hi-on, #14161c); }
.btn--hi:hover { --bg: #fff; --fg: #14161c; }
.dive { margin: 0 var(--pad) clamp(72px, 9vw, 140px); border-radius: var(--r-xl); background: var(--deep, var(--ink)); color: #fff; transition: background .6s var(--ease); }
.dive-track { padding: clamp(56px, 7vw, 104px) clamp(20px, 4vw, 64px); }
.dive .stick { max-width: var(--max); margin-inline: auto; }
.dive h2, .dive h3 { color: #fff; }
.dive-head { text-align: center; max-width: 780px; margin-inline: auto; }
.dive-head p { margin-top: 18px; color: rgba(255, 255, 255, .82); font-size: 1.15rem; }
.tabs-pill { position: relative; display: flex; width: fit-content; max-width: 100%; overflow-x: auto; margin: clamp(32px, 4vw, 52px) auto 0; padding: 6px; gap: 4px; border-radius: 999px; background: rgba(0, 0, 0, .3); scrollbar-width: none; }
.tabs-pill::-webkit-scrollbar { display: none; }
.tab { position: relative; z-index: 1; flex: none; padding: .75em 1.4em; border-radius: 999px; font-family: var(--display); font-weight: 600; font-size: 1.2rem; line-height: 1; color: rgba(255, 255, 255, .74); transition: background .3s, color .3s; }
.tab:hover { color: #fff; }
.tab.on { background: var(--hi); color: var(--hi-on, #14161c); }
.dive[data-ind="1"] .tab.on { background: transparent; }
.tab-ind { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 999px; background: var(--hi); transition: left .55s var(--ease), width .55s var(--ease), background .6s var(--ease); pointer-events: none; }
.panels { margin-top: clamp(40px, 5vw, 72px); }
.panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.panel[hidden] { display: none; }
.panel .pl h3 { max-width: 18ch; }
.dlist { margin-top: 28px; }
.dlist li { position: relative; border-top: 1px solid rgba(255, 255, 255, .22); }
.dlist li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .22); }
.dlist .it { display: block; width: 100%; text-align: left; padding: 20px 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 1.9vw, 1.8rem); line-height: 1.05; color: rgba(255, 255, 255, .62); transition: color .3s; }
.dlist .it:hover, .dlist li.on .it { color: #fff; }
.dlist li p { max-height: 0; overflow: hidden; opacity: 0; color: rgba(255, 255, 255, .88); font-size: 1.05rem; line-height: 1.55; max-width: 52ch; transition: max-height .5s var(--ease), opacity .35s, padding .5s var(--ease); }
.dlist li.on p { max-height: 160px; opacity: 1; padding-bottom: 22px; }
.dlist .bar { position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: var(--hi); }
.dlist li.on .bar { width: 100%; }
.dive[data-run="1"] .dlist li.on .bar { width: 0; animation: dfill var(--dur, 7s) linear forwards; }
.dive[data-hold="1"] .dlist li.on .bar { animation-play-state: paused; }
@keyframes dfill { to { width: 100%; } }
.panel .btn--hi { margin-top: 30px; }
.panel .pr { aspect-ratio: 5 / 4.4; border-radius: var(--r-lg); overflow: hidden; background: rgba(0, 0, 0, .25); }
.panel .pr img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.02 + var(--seg, 0) * .07)); }
/* pinned on desktop (JS sets data-scroll) */
.dive[data-scroll="1"] .dive-track { height: 420vh; padding-block: 0; }
.dive[data-scroll="1"] .stick { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); display: flex; flex-direction: column; justify-content: center; padding-block: 24px; }
.dive[data-scroll="1"] .dive-head h2 { font-size: clamp(2rem, 3vw, 2.8rem); max-width: none; }
.dive[data-scroll="1"] .dive-head p { margin-top: 10px; font-size: 1.05rem; }
.dive[data-scroll="1"] .tabs-pill { margin-top: 20px; }
.dive[data-scroll="1"] .panels { margin-top: 28px; }
.dive[data-scroll="1"] .panel .pl h3 { font-size: clamp(1.5rem, 2vw, 1.9rem); }
.dive[data-scroll="1"] .dlist { margin-top: 18px; }
.dive[data-scroll="1"] .dlist .it { padding: 14px 0; }
.dive[data-scroll="1"] .dlist li.on p { padding-bottom: 16px; }
.dive[data-scroll="1"] .panel .btn--hi { margin-top: 22px; }
.dive[data-scroll="1"] .panel .pr { aspect-ratio: auto; height: min(46vh, 430px); }
@media (prefers-reduced-motion: no-preference) {
  @keyframes drise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  @keyframes dwipe { from { clip-path: inset(0 100% 0 0 round var(--r-lg)); } to { clip-path: inset(0 0 0 0 round var(--r-lg)); } }
  @keyframes dzoom { from { scale: 1.2; } to { scale: 1; } }
  .panel.on .pl h3 { animation: drise .75s var(--ease) both; }
  .panel.on .dlist li { animation: drise .75s var(--ease) both; }
  .panel.on .dlist li:nth-child(1) { animation-delay: .08s; }
  .panel.on .dlist li:nth-child(2) { animation-delay: .16s; }
  .panel.on .dlist li:nth-child(3) { animation-delay: .24s; }
  .panel.on .dlist li:nth-child(4) { animation-delay: .32s; }
  .panel.on .btn--hi { animation: drise .75s .42s var(--ease) both; }
  .panel.on .pr { animation: dwipe 1s var(--ease) both; }
  .panel.on .pr img { animation: dzoom 1.5s var(--ease) both; }
}

/* ---------- v3: videotheque (from v1), rounded ---------- */
.vids { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 3vw, 48px); align-items: stretch; }
.vid { position: relative; display: block; overflow: hidden; border-radius: var(--r-xl); background: var(--ink); color: #fff; min-height: 360px; }
.vid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform 1.2s var(--ease), opacity .3s; }
.vid:hover img { transform: scale(1.04); opacity: .95; }
.vid::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .62), transparent 60%); }
.vid .play { position: absolute; z-index: 2; left: 28px; bottom: 28px; display: flex; align-items: center; gap: 16px; font-family: var(--display); font-weight: 600; font-size: 1.9rem; line-height: 1; }
.vid .play i { width: 64px; height: 64px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font-size: 26px; transition: transform .3s var(--ease); }
.vid:hover .play i { transform: scale(1.08); }
.vlist { align-self: center; }
.vlist li { border-top: 1px solid var(--line); }
.vlist li:last-child { border-bottom: 1px solid var(--line); }
.vlist a { display: flex; gap: 16px; align-items: center; padding: 22px 0; transition: color .2s, padding .3s var(--ease); }
.vlist a:hover { color: var(--red); padding-left: 8px; }
.vlist i { font-size: 28px; color: var(--red); flex: none; }
.vlist b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.1; }
.vlist span { font-size: .92rem; color: var(--mute); }
@media (max-width: 1100px) { .vids { grid-template-columns: 1fr; } }
@media (max-width: 960px) {
  .panel { grid-template-columns: 1fr; }
  .panel .pr { order: -1; aspect-ratio: 4 / 3; }
  .dive-head { text-align: left; margin-inline: 0; }
  .tabs-pill { margin-inline: 0; }
}
@media (max-width: 760px) { .dive { margin-inline: 8px; } .dive-track { padding-inline: 16px; } .vid .play { font-size: 1.4rem; left: 20px; bottom: 20px; } }

/* ---------- v3: header, hubs and closing band taken from v1 ---------- */
.header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); height: var(--header-h); }
.header .wrap { height: 100%; max-width: var(--max); display: flex; align-items: flex-end; gap: 28px; padding-bottom: 20px; }
.brand { display: block; flex: none; }
.header .brand { align-self: flex-end; }
.brand img { height: 76px; width: auto; }
.hnav { margin-left: auto; align-self: flex-end; margin-bottom: -8px; display: flex; align-items: flex-end; gap: clamp(14px, 1.7vw, 30px); }
.hnav > li { position: relative; height: var(--header-h); display: flex; align-items: flex-end; padding-bottom: 4px; }
.hnav > li:last-child { padding-bottom: 5px; }
.hnav a.nl {
  font-family: var(--display); font-weight: 600; font-size: 1.12rem; letter-spacing: .07em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 0; white-space: nowrap;
  background: linear-gradient(var(--red), var(--red)) left bottom / 0% 3px no-repeat; transition: background-size .35s var(--ease), color .2s;
}
.hnav a.nl:hover, .hnav a.nl[aria-current="page"], .hnav li:focus-within > a.nl, .hnav li:hover > a.nl { background-size: 100% 3px; }
.hnav a.nl i { font-size: .8em; }
.hnav .btn { padding: .6em 1.3em; font-size: 1rem; }
.header .drop {
  position: absolute; top: 100%; left: -20px; min-width: 330px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red);
  border-radius: 0 0 var(--r-md) var(--r-md); overflow: hidden;
  padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.hnav li:hover > .drop, .hnav li:focus-within > .drop { opacity: 1; visibility: visible; transform: none; }
.header .drop a { position: relative; display: block; padding: 14px 24px; font-weight: 500; font-size: 1rem; transition: background .2s, color .2s, padding .3s var(--ease); }
.header .drop a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red); transform: scaleY(0); transition: transform .3s var(--ease); }
.header .drop a:hover, .header .drop a:focus-visible { padding-left: 32px; color: var(--red); background: var(--paper); }
.header .drop a:hover::before, .header .drop a:focus-visible::before { transform: scaleY(1); }
.burger { display: none; align-self: center; margin-left: auto; width: 48px; height: 48px; align-items: center; justify-content: center; font-size: 28px; }
.mmenu { display: none; }

.hubs-wrap { background: var(--paper); padding-block: clamp(56px, 8vw, 120px); }
.hubsplit { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 80px); align-items: stretch; }
.hubsplit .hphoto { position: relative; display: block; min-height: 520px; overflow: hidden; border-radius: var(--r-lg); }
.hubsplit .hphoto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hubsplit .hphoto:hover img { transform: scale(1.04); }
.hubsplit .tx { padding: clamp(8px, 2vw, 24px) 0; max-width: 780px; align-self: center; }
.hubsplit .tx p { margin-top: 20px; color: var(--ink-2); max-width: 52ch; font-size: 1.12rem; }
.hubnames { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.hubnames a { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 2vw, 2rem); line-height: 1.1; transition: color .2s, padding .3s var(--ease); }
.hubnames a small { font-family: var(--text); font-size: .95rem; font-weight: 600; color: var(--red); letter-spacing: .1em; }
.hubnames a:hover { color: var(--red); padding-left: 8px; }
.hubsplit .tx .link { margin-top: 36px; }

.cta-band { position: relative; background: var(--red); color: #fff; overflow: hidden; }
.cta-band .wrap { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-block: clamp(56px, 8vw, 110px); }
.cta-band h2 { color: #fff; max-width: 15ch; }
.cta-band p { margin-top: 18px; color: #f6dcdc; max-width: 46ch; font-size: 1.15rem; }
.cta-band .leaf { position: absolute; right: 18%; top: 50%; transform: translateY(-50%); height: 150%; width: auto; opacity: .16; pointer-events: none; }

@media (max-width: 960px) {
  :root { --header-h: 80px; }
  .brand img { height: 60px; }
  .header .wrap { align-items: center; padding-bottom: 0; }
  .hnav { display: none; }
  .burger { display: flex; }
  .mmenu { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; z-index: 99; padding: 24px var(--pad) 40px; overflow-y: auto; display: block; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--ease), visibility .25s; }
  .mmenu.open { opacity: 1; transform: none; visibility: visible; }
  .mmenu a { display: block; font-family: var(--display); font-weight: 600; font-size: 2rem; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .mmenu .sub a { font-family: var(--text); font-weight: 500; font-size: 1.1rem; padding: 10px 0 10px 18px; color: var(--ink-2); border-left: 4px solid transparent; }
  .mmenu .sub a[class*="ax-"] { border-left-color: var(--red); }
  .mmenu .btn { margin-top: 24px; font-size: 1.1rem; border: 0; display: inline-flex; }
  .hubsplit { grid-template-columns: 1fr; }
  .hubsplit .hphoto { min-height: 320px; }
  .cta-band .leaf { right: -10%; }
}
@media (max-width: 560px) { .hubnames { grid-template-columns: 1fr; } }

/* ---------- v3: frosted glass on the card strip ---------- */
.strip .sc:not(.sc--photo):not(.sc--red) {
  background: rgba(255, 255, 255, .6); backdrop-filter: blur(22px) saturate(1.7); -webkit-backdrop-filter: blur(22px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 -1px 0 rgba(255, 255, 255, .25) inset, 0 18px 50px -18px rgba(90, 40, 30, .35);
}
.strip .sc--tint { background: rgba(243, 233, 226, .6); }
.strip .sc--red {
  background: rgba(160, 40, 40, .8); backdrop-filter: blur(22px) saturate(1.7); -webkit-backdrop-filter: blur(22px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, .3); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 18px 50px -18px rgba(125, 28, 28, .6);
}
.strip .sc--photo { border: 1px solid rgba(255, 255, 255, .55); }
.strip .sc--photo::after { background: linear-gradient(180deg, transparent 45%, rgba(20, 12, 8, .45)); }
.strip .sc--photo .cap {
  margin: 12px; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); border: 1px solid rgba(255, 255, 255, .38);
}

/* ---------- v3: strip cards take their programme palette (axis components only) ---------- */
.strip .sc[class*="ax-"]:not(.sc--solid) {
  background: color-mix(in srgb, var(--soft) 82%, transparent);
  border-color: rgba(255, 255, 255, .7);
}
.strip .sc[class*="ax-"]:not(.sc--solid) .num, .strip .sc[class*="ax-"]:not(.sc--solid) .cap { color: var(--deep); }
.strip .sc[class*="ax-"]:not(.sc--solid) .num sup, .strip .sc[class*="ax-"]:not(.sc--solid) .cap b { color: var(--red); }
.strip .sc.sc--solid[class*="ax-"]:not(.sc--photo) {
  background: color-mix(in srgb, var(--red) 82%, transparent);
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 18px 50px -18px var(--deep);
}
.strip .sc.sc--solid[class*="ax-"]:not(.sc--photo) .num, .strip .sc.sc--solid[class*="ax-"]:not(.sc--photo) .cap { color: #fff; }
.strip .sc.sc--solid[class*="ax-"]:not(.sc--photo) .num sup, .strip .sc.sc--solid[class*="ax-"]:not(.sc--photo) .cap b { color: var(--hi); opacity: 1; }

/* ---------- v3: programme palettes use every colour (main, deep, accent, tint) ---------- */
.oc h3 { position: relative; padding-bottom: 14px; }
.oc h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 5px; border-radius: 99px; background: var(--hi); }
.oc .btn:not(.btn--ghost) i { display: grid; place-items: center; width: 1.75em; height: 1.75em; margin: -.4em -.75em -.4em 0; border-radius: 50%; background: var(--hi); color: var(--hi-on, #14161c); font-size: .95em; }
.oc .btn:not(.btn--ghost):hover { background: var(--hi); color: var(--hi-on, #14161c); }
.oc .btn:not(.btn--ghost):hover i { background: var(--deep); color: #fff; }
.oc .btn--ghost:hover { --bg: var(--hi); --fg: var(--hi-on, #14161c); background: var(--hi); color: var(--hi-on, #14161c); box-shadow: none; }
.strip .sc[class*="ax-"]::before { content: ""; position: absolute; left: 26px; top: 0; width: 56px; height: 9px; border-radius: 0 0 9px 9px; background: var(--hi); }

/* ---------- v3: stronger glass on the card strip ---------- */
.strip { isolation: isolate; }
.strip::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 70px; bottom: 60px; pointer-events: none; filter: blur(10px);
  background:
    radial-gradient(260px 200px at 8% 62%, rgba(195, 60, 25, .55), transparent 70%),
    radial-gradient(300px 220px at 32% 70%, rgba(15, 66, 183, .45), transparent 70%),
    radial-gradient(280px 200px at 56% 60%, rgba(252, 164, 15, .5), transparent 70%),
    radial-gradient(300px 220px at 78% 72%, rgba(47, 189, 190, .45), transparent 70%),
    radial-gradient(260px 200px at 96% 60%, rgba(113, 39, 124, .45), transparent 70%);
}
.strip .sc:not(.sc--photo):not(.sc--solid) {
  background: linear-gradient(135deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .14) 55%, rgba(255, 255, 255, .3));
  backdrop-filter: blur(20px) saturate(1.9); -webkit-backdrop-filter: blur(20px) saturate(1.9);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 1) inset, 0 -1px 0 rgba(255, 255, 255, .35) inset, 0 20px 50px -18px rgba(60, 30, 20, .45);
}
.strip .sc[class*="ax-"]:not(.sc--solid) {
  background: linear-gradient(135deg, color-mix(in srgb, var(--soft) 78%, rgba(255, 255, 255, .6)), color-mix(in srgb, var(--soft) 30%, transparent) 60%, color-mix(in srgb, var(--soft) 50%, transparent));
}
.strip .sc.sc--solid[class*="ax-"]:not(.sc--photo) {
  background: linear-gradient(135deg, color-mix(in srgb, var(--red) 88%, #fff 12%), color-mix(in srgb, var(--red) 62%, transparent));
  backdrop-filter: blur(20px) saturate(1.9); -webkit-backdrop-filter: blur(20px) saturate(1.9);
  border: 1px solid rgba(255, 255, 255, .4);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 20px 50px -18px var(--deep);
}

/* strip programme cards: dark programme colour as the glass, the other palette colours on the elements */
.strip .sc.sc--solid[class*="ax-"]:not(.sc--photo) {
  --card: color-mix(in srgb, var(--red) 55%, var(--deep));
  background: linear-gradient(135deg, color-mix(in srgb, var(--card) 86%, #fff 14%), color-mix(in srgb, var(--card) 66%, transparent) 70%, color-mix(in srgb, var(--card) 80%, transparent));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 20px 50px -18px var(--deep);
}
.strip .sc--solid[class*="ax-"]::before { background: var(--hi); }

/* ---------- mobile audit fixes ---------- */
@media (max-width: 960px) {
  .tab { padding: .75em 1.05em; font-size: 1.1rem; }
  .link { padding-block: 9px; }
  .footer li a { display: inline-block; padding-block: 7px; }
  .footer li + li { margin-top: 0; }
  .hubnames a { padding-block: 16px; }
}

/* header logo centred in the bar on mobile */
@media (max-width: 960px) {
  .header .brand { align-self: center; }
  .brand img { height: 54px; }
}

/* partners panel on tablets and phones: wide logos get a full row */
@media (max-width: 960px) {
  .partners-panel ul { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
  .partners-panel li:nth-child(n) { grid-column: span 1; }
  .partners-panel li:nth-child(2), .partners-panel li:nth-child(3), .partners-panel li:nth-child(5) { grid-column: span 2; }
  .partners-panel li:nth-child(2) { order: 1; } .partners-panel li:nth-child(3) { order: 2; }
  .partners-panel li:nth-child(1) { order: 3; } .partners-panel li:nth-child(4) { order: 4; } .partners-panel li:nth-child(5) { order: 5; }
  .partners-panel li img { height: 52px; }
}

/* EDMEJ logo next to the brand */
.header .brand-sep { flex: none; align-self: flex-end; width: 1px; height: 40px; margin-bottom: 4px; background: var(--line, #ddd); }
.header .brand-edmej { flex: none; align-self: flex-end; height: 40px; width: auto; }
@media (max-width: 960px) { .header .wrap { padding-bottom: 14px; } .header .burger { margin-top: 14px; } .header .brand, .header .brand-sep, .header .brand-edmej { align-self: flex-end; } .header .brand-sep { height: 28px; margin: 0; } .header .brand-edmej { height: 30px; margin-bottom: 0; } }
@media (max-width: 420px) { .header .brand-edmej { height: 24px; } .header .brand-sep { height: 22px; } .header .brand img { height: 44px; } }

/* full-screen hero, photo or video backgrounds */
.hero-frame--full { min-height: calc(100svh - var(--header-h, 100px)); }
.hero-slide--vid, .hero-bg { container-type: size; background: var(--ink, #141414); }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-vid { position: absolute; border: 0; pointer-events: none; }
video.hero-vid { inset: 0; width: 100%; height: 100%; object-fit: cover; }
iframe.hero-vid { top: 50%; left: 50%; width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw); transform: translate(-50%, -50%); }

/* partner logos: full-width ribbon along the bottom of the banner, translucent, logos scroll in a loop */
.hero .hero-frame--full .hero-logos { left: 0; right: 0; bottom: 0; max-width: none; display: block; padding: 0; border-radius: 0; overflow: hidden; background: rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 -10px 30px -18px rgba(20, 20, 20, .3); }
.hero .hl-track { display: flex; width: max-content; animation: hl-slide 32s linear infinite; }
.hero .hero-logos:hover .hl-track { animation-play-state: paused; }
.hero .hl-set { display: flex; flex: none; align-items: center; }
.hero .hl-set li { display: grid; place-items: center; padding: 18px clamp(28px, 4vw, 64px); position: relative; }
.hero .hl-set li::after { content: ""; position: absolute; right: 0; top: 30%; bottom: 30%; width: 1px; background: rgba(20, 20, 20, .15); }
.hero .hero-logos .hl-set li img { height: clamp(40px, 4vw, 56px); width: auto; max-width: none; transition: transform .45s var(--ease); }
.hero .hero-logos .hl-set li img[src*="p-eu-h"] { height: clamp(32px, 3.2vw, 44px); }
.hero .hero-logos .hl-set li img[src*="p-italie"] { height: clamp(28px, 2.8vw, 38px); }
.hero .hero-logos .hl-set li img[src*="p-ote"] { height: clamp(30px, 3vw, 40px); }
.hero .hl-set li:hover img { transform: scale(1.12); }
@keyframes hl-slide { to { transform: translateX(-33.3333%); } }
@media (prefers-reduced-motion: reduce) { .hero .hl-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; } .hero .hl-set + .hl-set { display: none; } .hero .hl-set { flex-wrap: wrap; justify-content: center; } }
@media (max-width: 760px) { .hero .hero-frame--full .hero-logos { bottom: 0; } .hero .hero-logos .hl-set li img, .hero .hero-logos .hl-set li img[src*="p-eu-h"], .hero .hero-logos .hl-set li img[src*="p-italie"], .hero .hero-logos .hl-set li img[src*="p-ote"] { height: 26px; } .hero .hl-set li { padding: 14px 24px; } }
.hero-frame--full, .hero-frame--full.hero-frame--slider { padding-bottom: 132px; }
/* YouTube background: enlarge a little so the title bar, logo and controls fall outside the frame; the iframe never receives clicks */
iframe.hero-vid { transform: translate(-50%, -50%) scale(1.22); }
.hero-slide--vid::before, .hero-bg::before { content: ""; position: absolute; inset: 0; z-index: 1; }

/* Results: 1/3 figures, 2/3 thumbnail gallery (black and white, colour on hover, click to enlarge) */
.results--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.results--split h2 { max-width: none; font-size: clamp(2.2rem, 3.4vw, 3.4rem); }
.rgrid--col { margin-top: clamp(24px, 3vw, 40px); grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.4vw, 32px) 0; }
.rgrid--col .rs { padding: 0 14px 0 0; }
.rgrid--col .rs + .rs { padding-left: 0; border-left: 0; }
.rgrid--col .rs:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
.rgrid--col .rs b { font-size: clamp(2.6rem, 3.6vw, 3.8rem); }
.rgrid--col .rs p { font-size: .95rem; }
.rgal { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(72px, 7vw, 96px), 1fr)); gap: clamp(8px, 1vw, 12px); align-content: start; }
.rgal li { aspect-ratio: 1; }
.rgal a { display: block; width: 100%; height: 100%; border-radius: 14px; overflow: hidden; background: var(--paper, #f3efe9); box-shadow: inset 0 0 0 3px rgba(20, 20, 20, .08); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.rgal img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .4s var(--ease), transform .6s var(--ease); }
.rgal a:hover, .rgal a:focus-visible { transform: translateY(-4px); box-shadow: 0 14px 28px -14px rgba(20, 20, 20, .45); }
.rgal a:hover img, .rgal a:focus-visible img { filter: none; transform: scale(1.08); }
.elementor .rgal img { max-width: none; }
.lb { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: rgba(12, 12, 14, .86); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.lb.open { opacity: 1; visibility: visible; }
.lb img { max-width: min(92vw, 1200px); max-height: 86vh; border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); }
.lb button { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.6rem; transition: background .2s; }
.lb button:hover { background: rgba(255, 255, 255, .3); }
.lb .lb-x { top: 20px; right: 20px; }
.lb .lb-p { left: 20px; top: 50%; transform: translateY(-50%); }
.lb .lb-n { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 960px) { .results--split { grid-template-columns: 1fr; } .rgal { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); } }
@media (max-width: 560px) { .lb .lb-p, .lb .lb-n { top: auto; bottom: 20px; transform: none; } }

/* Gallery intro: thumbnails pop in one after another, appearing in colour then turning black and white in a wave */
.rgal.rv { opacity: 1; transform: none; transition: none; }
.rgal.rv li { opacity: 0; transform: translateY(22px) scale(.55) rotate(-4deg); }
.rgal.rv.in li { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .8s cubic-bezier(.34, 1.45, .5, 1); transition-delay: calc(var(--d, 0) * 55ms); }
.rgal.rv.in li img:not(.col) { animation: rgal-bw 1.1s var(--ease) backwards; animation-delay: calc(var(--d, 0) * 55ms + .55s); }
@keyframes rgal-bw { from { filter: none; } to { filter: grayscale(1) contrast(1.05); } }
.elementor-editor-active .rgal.rv li, .elementor-editor-preview .rgal.rv li { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { .rgal.rv li, .rgal.rv.in li { opacity: 1; transform: none; transition: none; } .rgal.rv.in li img { animation: none; } }

/* Gallery: colour only inside a disc around the cursor (the coloured copy of each photo is masked by a radial gradient centred on the pointer) */
.rgal a { position: relative; }
.rgal a:hover img, .rgal a:focus-visible img { filter: grayscale(1) contrast(1.05); transform: scale(1.08); }
.rgal a:hover img.col, .rgal a:focus-visible img.col { filter: none; }
.rgal img.col { position: absolute; inset: 0; filter: none; pointer-events: none; -webkit-mask-image: radial-gradient(circle calc(var(--spot, 380px) / 2) at var(--cx, -999px) var(--cy, -999px), #000 50%, transparent 100%); mask-image: radial-gradient(circle calc(var(--spot, 380px) / 2) at var(--cx, -999px) var(--cy, -999px), #000 50%, transparent 100%); }
.rgal.rv.in li img.col { animation: none; }
@media (hover: none) { .rgal img.col { display: none; } }
/* Gallery: outline on the hovered or focused thumbnail */
.rgal a { outline: 3px solid transparent; outline-offset: 0; transition: transform .35s var(--ease), box-shadow .35s var(--ease), outline-color .3s var(--ease), outline-offset .35s var(--ease); }
.rgal a:hover, .rgal a:focus-visible { outline-color: var(--red); outline-offset: 3px; }
.rgal a:hover, .rgal a:focus-visible { box-shadow: inset 0 0 0 3px rgba(20, 20, 20, .08); }

/* Gallery idle life: while nobody is pointing at it, a few random thumbnails slowly turn to colour and back */
@media (hover: none) { .rgal img.col { display: block; } }
.rgal.rv.in li.lit img.col, .rgal li.lit img.col { -webkit-mask-image: none; mask-image: none; animation: rgal-lit 4.4s cubic-bezier(.45, 0, .25, 1) both; }
@keyframes rgal-lit { 0% { opacity: 0; } 38% { opacity: 1; } 52% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rgal li.lit img.col { animation: none; opacity: 0; } }
#offres.section { padding-bottom: clamp(40px, 5vw, 72px); }
/* home: tighter vertical rhythm between sections */
.home main .section { padding-block: clamp(40px, 5vw, 80px); }
