/* =====================================================================
   Braillard — Section Actualité (carrousel d activités)
   Images : hauteur fixe commune, ratio préservé (largeur = hauteur * ratio).
   ===================================================================== */
.br-actu{ padding: clamp(56px, 7vw, 110px) clamp(20px, 3.24vw, 56px); }
.br-actu__head{ text-align: right; margin-bottom: clamp(24px, 3vw, 48px); }
.br-actu__heading{ font-family: var(--br-font-body); font-weight: 400; font-size: clamp(34px, 3.47vw, 60px); line-height: 1.2; margin: 0; } /* Figma : 60px / lh 72px @1728 */

.br-actu__viewport{ overflow: hidden; }
.br-actu{ --actu-n: 4; --actu-gap: clamp(16px, 1.85vw, 32px); }  /* gouttière = grille (32 @1728) */
.br-actu__track{
  display: flex; align-items: flex-start; gap: var(--actu-gap);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
}
.br-actu__track::-webkit-scrollbar{ display: none; }

/* Figma : 4 cards de 380px par vue (4*380 + 3*32 = 1616 = largeur de contenu).
   Réglage « Cartes par page » du widget = attribut data-cards (desktop ;
   les breakpoints plus bas reprennent la main). */
.br-actu__card{ flex: 0 0 calc((100% - (var(--actu-n) - 1) * var(--actu-gap)) / var(--actu-n)); scroll-snap-align: start; }
.br-actu[data-cards="2"]{ --actu-n: 2; }
.br-actu[data-cards="3"]{ --actu-n: 3; }
.br-actu[data-cards="4"]{ --actu-n: 4; }
.br-actu[data-cards="5"]{ --actu-n: 5; }
.br-actu[data-cards="6"]{ --actu-n: 6; }
.br-actu__media{ display: block; position: relative; aspect-ratio: 380 / 475; background-size: cover; background-position: center; text-decoration: none; background-color: #e9e7e2; }
.br-actu__media::after{ content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.07) 57%, rgba(0,0,0,.7) 89%); pointer-events: none; } /* Figma */
.br-actu__title{
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; margin: 0; padding: 0 24px 24px; /* retrait 24px (Figma) */
  color: #fff; font-family: var(--br-font-body); font-style: normal; font-weight: 500;
  font-size: clamp(22px, 1.62vw, 28px); line-height: 1.1; text-shadow: 0 1px 14px rgba(0,0,0,.4); /* Figma : HN Medium 28px */
}
.br-actu__date{ margin-top: clamp(24px, 1.85vw, 32px); font-family: var(--br-font-body); font-size: clamp(14px, 0.93vw, 16px); line-height: 1.4; color: var(--br-black); } /* Figma : 16px, 32px sous l'image */
.br-actu__excerpt{ margin-top: 12px; font-family: var(--br-font-body); font-size: clamp(16px, 1.16vw, 20px); line-height: 1.4; color: var(--br-black); } /* Figma : 20px */
.br-actu__excerpt p{ margin: 0; }

.br-actu__nav{ display: flex; align-items: center; gap: 20px; margin-top: clamp(28px, 3vw, 48px); }
.br-actu__arrow{ background: none; border: 0; cursor: pointer; color: var(--br-black); display: inline-flex; padding: 4px; }
.br-actu__arrow-svg{ width: clamp(64px, 7vw, 96px); height: auto; display: block; }
.br-actu__arrow:hover{ opacity: .6; }
.br-actu__dots{ display: flex; gap: clamp(12px, 1.16vw, 20px); font-family: var(--br-font-display); font-style: italic; font-size: clamp(18px, 1.74vw, 30px); } /* Figma : PP Eiko italic 30px */
.br-actu__dot{ -webkit-appearance: none; appearance: none; background: none; border: 0; border-radius: 0; padding: 0; cursor: pointer; color: #c2bdb5; transition: color .2s ease; line-height: 1; font-family: inherit; font-size: inherit; font-style: inherit; font-weight: inherit; } /* les <button> n'héritent pas la police par défaut */
.br-actu__dot:hover, .br-actu__dot:focus, .br-actu__dot:active{ background: none !important; box-shadow: none !important; outline: none; }
.br-actu__dot.is-active{ color: var(--br-black); }
.br-actu__all{ margin-left: auto; font-family: var(--br-font-body); font-size: 16px; color: var(--br-black); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1200px){ .br-actu, .br-actu[data-cards]{ --actu-n: 3; --actu-gap: 24px; } }
@media (max-width: 820px){ .br-actu, .br-actu[data-cards]{ --actu-n: 2; --actu-gap: 24px; } }
@media (max-width: 560px){ .br-actu__card{ flex-basis: 84%; } }

/* Drag du carrousel */
.br-actu__track{ cursor: grab; }
.br-actu__track.is-dragging{ cursor: grabbing; scroll-snap-type: none; user-select: none; }
.br-actu__track.is-dragging .br-actu__media img,
.br-actu__track.is-dragging a{ pointer-events: none; }
.br-actu__media img{ -webkit-user-drag: none; user-select: none; }

/* Neutraliser le highlight natif (accent OS) sur les flèches */
.br-actu__arrow{ -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; background: transparent; }
.br-actu__arrow:focus, .br-actu__arrow:active, .br-actu__arrow:focus-visible{ outline: none; background: transparent; box-shadow: none; }

/* =====================================================================
   Trombinoscope (.br-actu--trombi) : peu de personnes -> les cartes s'étirent
   pour remplir toute la largeur (pas de vide à droite) ; beaucoup -> elles
   gardent leur taille et défilent (4 par vue). flex-grow ne s'applique que
   s'il reste de la place -> comportement automatique selon le nombre. */
.br-actu--trombi .br-actu__card{ flex-grow: 1; }
