/* Elite Bénin : l'en-tête, le menu, l'appel au don et le pied de page, communs à toutes les pages.
   Toutes les classes commencent par « eb- » pour ne jamais se mélanger aux styles des pages intérieures. */
:root {
  --eb-bg: #ffffff; --eb-surface: #eef5ef; --eb-ink: #15221a; --eb-muted: #5b6660; --eb-line: #dbe4dd;
  --eb-green: #047028; --eb-green-hover: #035d21; --eb-mint: #a6e3b8; --eb-night: #0d1a12;
  --eb-display: "Red Hat Display", system-ui, sans-serif; --eb-text: "Red Hat Text", system-ui, sans-serif;
  --eb-ease: cubic-bezier(.22, .61, .36, 1); --eb-wrap: 1280px; --eb-gut: 24px; --eb-nav: 56px;
}
/* mêmes marges et même largeur que les pages intérieures (boîte à outils : 24, 48 puis 80 px de marge, 1280 px au plus) */
@media (min-width: 640px) { :root { --eb-gut: 48px; --eb-nav: 72px; } }
@media (min-width: 1024px) { :root { --eb-gut: 80px; } }
.eb-wrap { width: min(100% - 2 * var(--eb-gut), var(--eb-wrap)); margin-inline: auto; padding: 0; }
.eb-sr, .eb-skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.eb-skip:focus { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 16px; background: #fff; color: var(--eb-ink); border-radius: 10px; }

/* boutons et liens */
.eb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px;
          font: 600 16px/1.1 var(--eb-text); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
          transition: background-color .25s, color .25s, border-color .25s, transform .2s var(--eb-ease); }
.eb-btn svg { width: 17px; height: 17px; transition: transform .3s var(--eb-ease); }
.eb-btn:hover svg { transform: translateX(4px); }
.eb-btn:active { transform: scale(.97); }
.eb-btn--green { background: var(--eb-green); color: #fff; }
.eb-btn--green:hover { background: var(--eb-green-hover); color: #fff; }
.eb-btn--white { background: #fff; color: var(--eb-ink); }
.eb-btn--white:hover { background: var(--eb-mint); color: var(--eb-ink); }
.eb-btn--line { border-color: currentColor; color: inherit; }
.eb-btn--line:hover { background: rgba(255, 255, 255, .12); }
.eb-row { display: flex; flex-wrap: wrap; gap: 12px; }
.eb-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--eb-green);
           background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; padding-bottom: 2px; transition: background-size .35s var(--eb-ease); }
.eb-more:hover { background-size: 100% 1.5px; }
.eb-more svg { width: 16px; height: 16px; }
.eb-hd :focus-visible, .eb-ft :focus-visible, .eb-cta :focus-visible, .eb-btn:focus-visible { outline: 3px solid #4fbf74; outline-offset: 3px; }

/* en-tête : blanc ; sur la grande image de l'accueil, transparent jusqu'à la fin de l'image */
.eb-hd { position: fixed; inset: 0 0 auto; z-index: 60; color: var(--eb-ink); background: rgba(255, 255, 255, .95); box-shadow: 0 1px 0 var(--eb-line);
         backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); transition: background-color .35s, color .35s, box-shadow .35s;
         font-family: var(--eb-text); }
.eb-hd.menu-open { background: #fff; }
.eb-hd--over:not(.is-solid) { background: transparent; color: #fff; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.eb-hd__bar { height: var(--eb-nav); display: flex; align-items: center; gap: 20px; }
.eb-hd__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; margin-right: auto; }
.eb-hd__logo img { width: 44px; height: 42px; }
@media (max-width: 639px) { .eb-hd__logo img { width: 38px; height: 36px; } .eb-hd__logo strong { font-size: 17px; } .eb-hd__toggle { width: 42px; height: 42px; } }
.eb-hd__logo strong { display: block; font: 600 19px/1.1 var(--eb-display); letter-spacing: -0.01em; }
.eb-hd__logo small { display: block; font-size: 12.5px; line-height: 1.3; opacity: .78; }
.eb-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.eb-menu > li { position: relative; margin: 0; }
.eb-menu > li > a, .eb-menu > li > button { display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 12px; border: 0; background: none; color: inherit;
        border-radius: 10px; font: 500 15.5px/1 var(--eb-text); text-decoration: none; cursor: pointer; white-space: nowrap; }
.eb-menu > li > a:hover, .eb-menu > li > button:hover { background: rgba(127, 127, 127, .14); }
.eb-menu > li > [aria-current="page"], .eb-menu > li > .is-current { box-shadow: inset 0 -2px 0 var(--eb-green); border-radius: 10px 10px 0 0; }
.eb-hd--over:not(.is-solid) .eb-menu > li > [aria-current="page"] { box-shadow: inset 0 -2px 0 #fff; }
.eb-menu svg { width: 15px; height: 15px; transition: transform .25s; }
.eb-sub { position: absolute; top: calc(100% + 8px); left: -8px; min-width: 260px; list-style: none; margin: 0; padding: 8px; background: #fff; color: var(--eb-ink);
          border-radius: 16px; box-shadow: 0 18px 50px rgba(13, 26, 18, .16), 0 0 0 1px rgba(13, 26, 18, .06);
          opacity: 0; transform: translateY(6px); visibility: hidden; transition: opacity .2s, transform .25s var(--eb-ease), visibility 0s .25s; }
.eb-sub li { margin: 0; }
.eb-sub a { display: block; padding: 11px 14px; border-radius: 10px; color: var(--eb-ink); text-decoration: none; font: 400 15.5px/1.35 var(--eb-text); }
.eb-sub a:hover { background: var(--eb-surface); }
.eb-has-sub.open .eb-sub, .eb-has-sub:focus-within .eb-sub { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.eb-has-sub.open > button svg { transform: rotate(180deg); }
@media (hover: hover) { .eb-has-sub:hover .eb-sub { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; } .eb-has-sub:hover > button svg { transform: rotate(180deg); } }
.eb-hd__toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid currentColor; background: none; color: inherit; cursor: pointer; place-items: center; align-content: center; gap: 6px; padding: 0; }
.eb-hd__toggle span { display: block; width: 18px; height: 1.6px; background: currentColor; margin: 0 auto; transition: transform .3s var(--eb-ease); }
.eb-hd__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.8px) rotate(45deg); }
.eb-hd__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.8px) rotate(-45deg); }
/* le menu du téléphone est à côté de l'en-tête, pas dedans : le flou de l'en-tête l'enfermerait dans ses 56 px */
.eb-mm { position: fixed; inset: var(--eb-nav) 0 0; z-index: 59; overscroll-behavior: contain; background: #fff; color: var(--eb-ink); overflow-y: auto; padding: 8px var(--eb-gut) 40px; }
.eb-mm ul { list-style: none; margin: 0; padding: 0; }
.eb-mm > ul > li { border-bottom: 1px solid var(--eb-line); padding: 14px 0; margin: 0; }
.eb-mm > ul > li > a, .eb-mm > ul > li > span { font: 500 22px/1.3 var(--eb-display); color: var(--eb-ink); text-decoration: none; }
.eb-mm li li { margin: 0; }
.eb-mm li li a { display: block; padding: 8px 0 0 14px; color: var(--eb-muted); text-decoration: none; font: 400 16.5px/1.4 var(--eb-text); }
.eb-mm .eb-btn { margin-top: 24px; width: 100%; }
@media (max-width: 1099px) { .eb-hd__nav, .eb-hd__cta { display: none; } .eb-hd__toggle { display: grid; } }
@media (max-width: 380px) { .eb-hd__logo small { display: none; } }

/* appel au don, sur un fond d'aurore qui ondule */
.eb-cta-band { padding: clamp(72px, 9vw, 120px) 0; background: var(--eb-bg); }
.eb-cta { position: relative; overflow: hidden; border-radius: 34px; background: var(--eb-night); color: #fff; padding: clamp(52px, 8vw, 108px) clamp(26px, 6vw, 90px); isolation: isolate; }
.eb-cta__aur { position: absolute; inset: -30%; z-index: -1; filter: blur(46px); opacity: .9;
               background: radial-gradient(38% 46% at 18% 30%, rgba(4, 112, 40, .9), transparent 62%),
                           radial-gradient(32% 40% at 78% 22%, rgba(52, 168, 98, .65), transparent 62%),
                           radial-gradient(42% 50% at 62% 92%, rgba(166, 227, 184, .35), transparent 62%),
                           radial-gradient(30% 35% at 40% 70%, rgba(12, 74, 110, .45), transparent 60%);
               animation: eb-aur 16s ease-in-out infinite alternate; }
@keyframes eb-aur { 0% { transform: translate3d(-5%, -3%, 0) rotate(0deg) scale(1); } 50% { transform: translate3d(4%, 4%, 0) rotate(9deg) scale(1.08); } 100% { transform: translate3d(-3%, 5%, 0) rotate(-7deg) scale(1.02); } }
.eb-cta h2 { font: 500 clamp(34px, 4.4vw, 58px)/1.04 var(--eb-display); letter-spacing: -0.025em; color: #fff; max-width: 16ch; margin: 0 0 18px; }
.eb-cta p { max-width: 50ch; color: rgba(255, 255, 255, .88); margin: 0 0 32px; font: 400 19px/1.55 var(--eb-text); }

/* pied de page, et le nom qui monte quand il apparaît */
.eb-ft { background: var(--eb-night); color: rgba(255, 255, 255, .78); padding: 80px 0 32px; overflow: hidden; font: 400 16px/1.6 var(--eb-text); }
.eb-ft__cols { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.eb-ft .eb-ft__h { color: #fff; font: 600 15px/1.2 var(--eb-text); letter-spacing: 0; margin: 0 0 14px; }
.eb-ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.eb-ft li { margin: 0; }
.eb-ft a { color: inherit; text-decoration: none; }
.eb-ft a:hover { color: #fff; }
.eb-ft p { margin: 0; }
.eb-ft__brand { display: grid; gap: 14px; align-content: start; }
.eb-ft__brand img { width: 72px; height: 69px; }
.eb-ft__word { margin: 64px 0 0; overflow: hidden; padding-bottom: .05em; font: 600 clamp(64px, 15.5vw, 236px)/.86 var(--eb-display); letter-spacing: -0.055em; color: #fff; white-space: nowrap; display: flex; justify-content: center; }
.eb-ft__word span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--eb-ease); }
.eb-ft__word.up span { transform: none; }
.eb-ft__word .sp { width: .24em; }
.eb-ft__legal { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; font-size: 14px; }
.eb-ft__legal p { max-width: 80ch; }
.eb-ft__legal a { display: inline-flex; align-items: center; gap: 6px; }
.eb-ft__legal svg { width: 15px; height: 15px; }
@media (max-width: 899px) { .eb-ft__cols { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .eb-cta__aur { animation: none; }
  .eb-ft__word span { transform: none; transition: none; }
  .eb-hd, .eb-sub, .eb-btn, .eb-btn svg { transition: none; }
}
