:root {
  --bw-white: #ffffff;
  --bw-black: #111111;
  --bw-text: #ffffff;
  --bw-bg-light: #efefef;
  --bw-blue: #3436a8;
  --bw-blue-deep: #25257c;
  --bw-green: #16d0c5;
  --bw-red: #f16462;
  --bw-yellow: #ffd500;
  --bw-container: 1240px;
  --bw-radius-pill: 999px;
  --bw-header-h: 120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bw-bg-light);
  color: var(--bw-black);
  overflow-x: hidden;
  overflow-y: auto;
}

/* CORRECTION : ne plus bloquer le scroll sur la homepage */
body.bw-homepage {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

/* CORRECTION : ne plus forcer le main à une hauteur fixe */
.bw-main-home {
  min-height: 0;
  height: auto;
  overflow: visible;
}

main {
  display: block;
}

.bw-container {
  width: min(100% - 40px, var(--bw-container));
  margin: 0 auto;
}

img,
picture {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

@media (max-width: 991px) {
  :root {
    --bw-header-h: 94px;
  }

  .bw-container {
    width: min(100% - 32px, 100%);
  }
}

/* =========================
   PROGRAM SECTION
========================= */
.bw-program-section {
  width: 100%;
  background: #ffffff;
  padding: 46px 0 54px;
}

.bw-program-container {
  width: min(100% - 96px, 1280px);
  margin: 0 auto;
}

.bw-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.bw-section-head h2 {
  margin: 0;
  color: #111111;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 900;
  text-transform: none;
}

.bw-section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #111111;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

.bw-section-link span:last-child {
  font-size: 34px;
  line-height: 0.8;
  transform: translateY(-1px);
}

.bw-program-banner {
  position: relative;
  width: 100%;
  min-height: 380px;
  border-radius: 22px;
  overflow: hidden;

  background-image: url("../images/program/program-bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 28px;

  animation: bwProgramFloat 8s ease-in-out infinite;
}

/*.bw-program-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(24, 28, 34, 0.48);
  backdrop-filter: blur(2px);
  z-index: 1;
}*/

.bw-program-banner h3 {
  position: relative;
  z-index: 2;
  width: min(100%, 820px);
  margin: 0;
  color: #ffffff;
  font-size: 38px;
  line-height: 1.15;
  font-weight: 900;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

@keyframes bwProgramFloat {
  0% {
    transform: translateY(0);
    background-size: 100%;
  }

  50% {
    transform: translateY(-4px);
    background-size: 104%;
  }

  100% {
    transform: translateY(0);
    background-size: 100%;
  }
}

.bw-newsletter-box {
  width: 100%;
  margin-top: 20px;
  text-align: center;
}

.bw-newsletter-box p {
  margin: 0 0 16px;
  color: #111111;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 900;
}

.bw-newsletter-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.bw-newsletter-form input {
  width: min(100%, 420px);
  height: 48px;
  border: 1px solid #d7d7d7;
  border-radius: 10px;
  background: #ffffff;
  padding: 0 18px;
  color: #111111;
  font-size: 16px;
  outline: none;
}

.bw-newsletter-form input:focus {
  border-color: #f16462;
  box-shadow: 0 0 0 4px rgba(241, 100, 98, 0.12);
}

.bw-newsletter-form button {
  height: 48px;
  border: none;
  border-radius: 999px;
  padding: 0 30px;
  background: #f16462;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.bw-newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(241, 100, 98, 0.28);
}

/* =========================
   RESPONSIVE PROGRAM
========================= */
@media (max-width: 991px) {
  .bw-program-section {
    padding: 38px 0 46px;
  }

  .bw-program-container {
    width: min(100% - 48px, 100%);
  }

  .bw-section-head h2 {
    font-size: 26px;
  }

  .bw-section-link {
    font-size: 20px;
  }

  .bw-program-banner {
    min-height: 310px;
    padding: 42px 20px;
  }

  .bw-program-banner h3 {
    font-size: 30px;
  }
}

@media (max-width: 575px) {
  .bw-program-section {
    padding: 30px 0 40px;
  }

  .bw-program-container {
    width: min(100% - 28px, 100%);
  }

  .bw-section-head {
    gap: 14px;
  }

  .bw-section-head h2 {
    font-size: 18px;
  }

  .bw-section-link {
    font-size: 16px;
  }

  .bw-program-banner {
    min-height: 250px;
    border-radius: 16px;
    padding: 32px 18px;
  }

  .bw-program-banner h3 {
    font-size: 22px;
    line-height: 1.25;
  }

  .bw-newsletter-box p {
    font-size: 16px;
  }

  .bw-newsletter-form {
    flex-direction: column;
    gap: 10px;
  }

  .bw-newsletter-form input,
  .bw-newsletter-form button {
    width: 100%;
  }
}

/* =========================
   NEWS SECTION
========================= */
/* =========================
   NEWS SECTION
========================= */
.bw-news-section {
  position: relative;
  width: 100%;
  padding: 42px 0 52px;
  background: #f5f5f3;
}

.bw-news-container {
  width: min(100% - 96px, 1280px);
  margin: 0 auto;
}

.bw-news-slider {
  position: relative;
}

.bw-news-viewport {
  width: 100%;
  overflow: hidden;
  padding: 4px 0 14px;
}

.bw-news-track {
  display: flex;
  gap: 26px;
  transition: transform 0.45s ease;
  will-change: transform;
}

.bw-news-card {
  flex: 0 0 calc((100% - 52px) / 3);
  display: flex;
  flex-direction: column;
}

.bw-news-image {
  position: relative;
  display: block;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 1.55 / 1;
  background: #dcdcdc;
}

.bw-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.bw-news-card:hover .bw-news-image img {
  transform: scale(1.045);
}

.bw-news-date {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 108px;
  height: 54px;
  border-top-left-radius: 20px;
  background: #243f98;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.bw-news-date span {
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.bw-news-date small {
  margin-top: 1px;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
}

.bw-news-content {
  padding-top: 14px;
}

.bw-news-content h3 {
  margin: 0 0 6px;
  color: #111111;
  font-size: 23px;
  line-height: 1.08;
  font-weight: 900;
}

.bw-news-content p {
  margin: 0;
  color: #111111;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 500;
}

/* NEWS ARROWS */
.bw-news-arrow {
  position: absolute;
  top: 34%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.bw-news-arrow:hover {
  background: #243f98;
  color: #ffffff;
}

.bw-news-arrow-prev {
  left: -22px;
}

.bw-news-arrow-next {
  right: -22px;
}

/* =========================
   RESPONSIVE NEWS
========================= */
@media (max-width: 991px) {
  .bw-news-container {
    width: min(100% - 48px, 100%);
  }

  .bw-news-track {
    gap: 22px;
  }

  .bw-news-card {
    flex-basis: calc((100% - 22px) / 2);
  }

  .bw-news-content h3 {
    font-size: 22px;
  }
}

@media (max-width: 575px) {
  .bw-news-section {
    padding: 34px 0 44px;
  }

  .bw-news-container {
    width: min(100% - 28px, 100%);
  }

  .bw-news-track {
    gap: 18px;
  }

  .bw-news-card {
    flex-basis: 100%;
  }

  .bw-news-image {
    border-radius: 18px;
  }

  .bw-news-content h3 {
    font-size: 20px;
  }

  .bw-news-content p {
    font-size: 15px;
  }

  .bw-news-arrow {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }

  .bw-news-arrow-prev {
    left: -10px;
  }

  .bw-news-arrow-next {
    right: -10px;
  }
}
/* =========================
   PARTNERS SECTION
========================= */
.bw-partners-section {
  width: 100%;
  background: #ffffff;
  padding: 38px 0 72px;
}

.bw-partners-container {
  width: min(100% - 96px, 1280px);
  margin: 0 auto;
}

.bw-section-head-center {
  justify-content: center;
  text-align: center;
  margin-bottom: 28px;
}

.bw-partners-slider {
  position: relative;
}

.bw-partners-viewport {
  width: 100%;
  overflow: hidden;
  padding: 8px 0 18px;
}

.bw-partners-track {
  display: flex;
  gap: 42px;
  transition: transform 0.45s ease;
  will-change: transform;
}

.bw-partner-item {
  flex: 0 0 calc((100% - 210px) / 6);
  min-width: 0;

  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 14px;
}

.bw-partner-logo {
  width: 150px;
  height: 150px;
  border-radius: 50%;

  background: #f5f5f3;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 26px;

  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(0, 0, 0, 0.04);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.bw-partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bw-partner-item:hover .bw-partner-logo {
  transform: translateY(-6px) scale(1.03);
  box-shadow:
    0 26px 55px rgba(0, 0, 0, 0.14),
    inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.bw-partner-item span {
  color: #111111;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

/* ARROWS */
.bw-partners-arrow {
  position: absolute;
  top: 48%;
  transform: translateY(-50%);

  width: 44px;
  height: 44px;

  border: none;
  border-radius: 999px;

  background: #ffffff;
  color: #111111;

  font-size: 34px;
  line-height: 1;
  font-weight: 700;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  z-index: 5;

  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.bw-partners-arrow:hover {
  background: #243f98;
  color: #ffffff;
}

.bw-partners-arrow-prev {
  left: -22px;
}

.bw-partners-arrow-next {
  right: -22px;
}

/* =========================
   RESPONSIVE PARTNERS
========================= */
@media (max-width: 1200px) {
  .bw-partners-track {
    gap: 32px;
  }

  .bw-partner-item {
    flex-basis: calc((100% - 128px) / 5);
  }

  .bw-partner-logo {
    width: 130px;
    height: 130px;
  }
}

@media (max-width: 991px) {
  .bw-partners-section {
    padding: 34px 0 58px;
  }

  .bw-partners-container {
    width: min(100% - 48px, 100%);
  }

  .bw-partner-item {
    flex-basis: calc((100% - 96px) / 4);
  }

  .bw-partner-logo {
    width: 112px;
    height: 112px;
    padding: 22px;
  }

  .bw-partners-arrow-prev {
    left: -18px;
  }

  .bw-partners-arrow-next {
    right: -18px;
  }
}

@media (max-width: 720px) {
  .bw-partners-track {
    gap: 24px;
  }

  .bw-partner-item {
    flex-basis: calc((100% - 48px) / 3);
  }

  .bw-partner-logo {
    width: 96px;
    height: 96px;
    padding: 18px;
  }

  .bw-partner-item span {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .bw-partners-container {
    width: min(100% - 28px, 100%);
  }

  .bw-partners-track {
    gap: 18px;
  }

  .bw-partner-item {
    flex-basis: calc((100% - 18px) / 2);
  }

  .bw-partner-logo {
    width: 98px;
    height: 98px;
  }

  .bw-partners-arrow {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }

  .bw-partners-arrow-prev {
    left: -10px;
  }

  .bw-partners-arrow-next {
    right: -10px;
  }
}

/* =========================
   FOOTER
========================= */
.bw-footer {
  width: 100%;
  background: #1d2940;
  color: #ffffff;
  padding: 34px 0 28px;
}

.bw-footer-container {
  width: min(100% - 96px, 1280px);
  margin: 0 auto;
}

.bw-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px;
}

.bw-footer-col h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
}

.bw-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bw-footer-col li {
  margin-bottom: 8px;
}

.bw-footer-col a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
  text-decoration: none;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.bw-footer-col a:hover {
  color: #16d0c5;
}

.bw-footer-bottom {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.bw-footer-socials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.bw-footer-socials a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.bw-footer-socials a:hover {
  transform: translateY(-3px);
  background: #16d0c5;
}

.bw-footer-socials img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  display: block;
}

/* =========================
   RESPONSIVE FOOTER
========================= */
@media (max-width: 991px) {
  .bw-footer-container {
    width: min(100% - 48px, 100%);
  }

  .bw-footer-grid {
    gap: 36px;
  }

  .bw-footer-col h3 {
    font-size: 19px;
  }

  .bw-footer-col a {
    font-size: 14px;
  }
}

@media (max-width: 700px) {
  .bw-footer {
    padding: 34px 0 26px;
  }

  .bw-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .bw-footer-bottom {
    margin-top: 26px;
  }
}

/* =========================
   AGENDA SECTION
========================= */
.bw-agenda-section {
  width: 100%;
  background: #ffffff;
  padding: 54px 0 66px;
}

.bw-agenda-container {
  width: min(100% - 96px, 1280px);
  margin: 0 auto;
}

.bw-agenda-slider {
  position: relative;
}

.bw-agenda-viewport {
  overflow: hidden;
  width: 100%;
  padding: 4px 0 22px;
}

.bw-agenda-track {
  display: flex;
  gap: 34px;
  transition: transform 0.45s ease;
  will-change: transform;
}

.bw-agenda-card {
  flex: 0 0 calc((100% - 34px) / 2);

  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 24px;

  min-height: 170px;
  padding: 24px;

  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);

  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.bw-agenda-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.18);
}

.bw-agenda-date {
  width: 150px;
  height: 140px;

  border-radius: 14px;
  background: #f16462;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  color: #ffffff;
  text-align: center;
}

.bw-agenda-date span {
  font-size: 70px;
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -3px;
}

.bw-agenda-date small {
  margin-top: 8px;
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
}

.bw-agenda-content h3 {
  margin: 0 0 6px;
  color: #111111;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 900;
}

.bw-agenda-content p {
  margin: 0 0 24px;
  color: #111111;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.bw-agenda-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 40px;
  padding: 0 24px;
  border-radius: 999px;

  background: #243f98;
  color: #ffffff;

  font-size: 17px;
  line-height: 1;
  font-weight: 900;

  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.bw-agenda-btn:hover {
  transform: translateY(-2px);
  background: #182f7a;
}

/* ARROWS */
.bw-agenda-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 46px;
  height: 46px;

  border: none;
  border-radius: 999px;

  background: #ffffff;
  color: #111111;

  font-size: 36px;
  line-height: 1;
  font-weight: 700;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  z-index: 5;

  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.bw-agenda-arrow:hover {
  background: #243f98;
  color: #ffffff;
}

.bw-agenda-arrow-prev {
  left: -23px;
}

.bw-agenda-arrow-next {
  right: -23px;
}

/* =========================
   RESPONSIVE AGENDA
========================= */
@media (max-width: 991px) {
  .bw-agenda-section {
    padding: 44px 0 56px;
  }

  .bw-agenda-container {
    width: min(100% - 48px, 100%);
  }

  .bw-agenda-track {
    gap: 24px;
  }

  .bw-agenda-card {
    flex-basis: calc((100% - 24px) / 2);
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    min-height: 142px;
  }

  .bw-agenda-date {
    width: 112px;
    height: 112px;
  }

  .bw-agenda-date span {
    font-size: 52px;
  }

  .bw-agenda-date small {
    font-size: 17px;
  }

  .bw-agenda-content h3 {
    font-size: 24px;
  }

  .bw-agenda-content p {
    font-size: 17px;
    margin-bottom: 18px;
  }

  .bw-agenda-btn {
    min-height: 36px;
    padding: 0 18px;
    font-size: 14px;
  }

  .bw-agenda-arrow-prev {
    left: -18px;
  }

  .bw-agenda-arrow-next {
    right: -18px;
  }
}

@media (max-width: 720px) {
  .bw-agenda-card {
    flex-basis: 100%;
  }
}

@media (max-width: 575px) {
  .bw-agenda-section {
    padding: 34px 0 46px;
  }

  .bw-agenda-container {
    width: min(100% - 28px, 100%);
  }

  .bw-agenda-track {
    gap: 18px;
  }

  .bw-agenda-card {
    flex-basis: 100%;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border-radius: 16px;
  }

  .bw-agenda-date {
    width: 90px;
    height: 96px;
    border-radius: 12px;
  }

  .bw-agenda-date span {
    font-size: 42px;
    letter-spacing: -1px;
  }

  .bw-agenda-date small {
    font-size: 14px;
    margin-top: 6px;
  }

  .bw-agenda-content h3 {
    font-size: 20px;
  }

  .bw-agenda-content p {
    font-size: 15px;
    margin-bottom: 14px;
  }

  .bw-agenda-btn {
    width: 100%;
    min-height: 34px;
    font-size: 13px;
    padding: 0 12px;
  }

  .bw-agenda-arrow {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }

  .bw-agenda-arrow-prev {
    left: -10px;
  }

  .bw-agenda-arrow-next {
    right: -10px;
  }
}

/* =========================
   FADE UP
========================= */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}


.bw-news-readmore {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);

  color: #1d2940;
  font-size: 14px;
  font-weight: 800;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.bw-news-card:hover .bw-news-readmore {
  background: #243f98;
  color: #ffffff;
  transform: translateY(-2px);
}
