/*--------------------------------------------------------------
# Navigation « Nav A » — institutionnelle avec méga-menu
# Chargé après style.css. Toutes les classes sont préfixées « acn- ».
--------------------------------------------------------------*/
:root {
  --acn-green: #3C7C01;
  --acn-green-dark: #2F6301;
  --acn-green-logo: #418700;
  --acn-green-light: #8CC63F;
  --acn-green-pale: #EEF5E6;
  --acn-blue: #1A307C;
  --acn-navy: #0F1D4A;
  --acn-forest: #162311;
  --acn-text: #2B3136;
  --acn-grey: #5B636B;
  --acn-line: #E5E3DC;
  --acn-sand: #F6F4EE;
  --acn-bar-h: 92px;
  --acn-bar-h-compact: 72px;
  --acn-font-title: "Raleway", sans-serif;
  --acn-font-text: "Open Sans", sans-serif;
  --acn-ease: 0.25s ease;
}

/* Focus visible commun */
.acn-topbar a:focus-visible,
.acn-header a:focus-visible,
.acn-header button:focus-visible,
.acn-mobile a:focus-visible,
.acn-mobile button:focus-visible,
.acn-lang__btn:focus-visible {
  outline: 3px solid var(--acn-green-light);
  outline-offset: 2px;
}

.acn-header .visually-hidden,
.acn-mobile .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/*--------------------------------------------------------------
# 1) Bandeau supérieur
--------------------------------------------------------------*/
.acn-topbar {
  background: var(--acn-green);
  color: #fff;
  font-family: var(--acn-font-text);
  font-size: 13px;
  line-height: 1;
}

.acn-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}

.acn-topbar ul {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.acn-topbar a {
  color: #fff;
  text-decoration: none;
}

.acn-topbar a:hover {
  text-decoration: underline;
}

.acn-topbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.acn-topbar__sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.35);
}

/* Réseaux sociaux en icônes */
.acn-topbar__social {
  gap: 4px !important;
}

.acn-topbar__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  transition: background-color var(--acn-ease), color var(--acn-ease);
}

.acn-topbar__social a:hover,
.acn-topbar__social a:focus-visible {
  background: #fff;
  color: var(--acn-green);
  text-decoration: none;
}

/* Pastilles de langue */
.acn-lang {
  display: flex;
  align-items: center;
  gap: 4px;
}

.acn-lang__btn {
  min-width: 30px;
  height: 22px;
  padding: 0 6px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92); /* contraste 4,5:1 minimum */
  font-family: var(--acn-font-title);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.acn-lang__btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.acn-lang__btn[aria-pressed="true"] {
  background: #fff;
  color: var(--acn-green);
}

/* Sélecteur de langue du bandeau : menu déroulant */
.acn-langmenu {
  position: relative;
}

.acn-langmenu__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: var(--acn-font-title);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color var(--acn-ease);
}

.acn-langmenu__btn:hover,
.acn-langmenu__btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.15);
}

.acn-langmenu__btn .bi-globe2 {
  font-size: 14px;
}

.acn-langmenu__caret {
  font-size: 10px;
  transition: transform var(--acn-ease);
}

.acn-langmenu__btn[aria-expanded="true"] .acn-langmenu__caret {
  transform: rotate(180deg);
}

/* Préfixe .acn-topbar : doit l'emporter sur la règle générale « .acn-topbar ul » */
.acn-topbar .acn-langmenu__list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1040;
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 0 !important;
  min-width: 170px;
  margin: 0;
  padding: 6px 0 !important;
  border-top: 3px solid var(--acn-green);
  border-radius: 0 0 10px 10px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 29, 74, 0.2);
  list-style: none;
}

.acn-topbar .acn-langmenu.is-open .acn-langmenu__list,
html:not(.acn-js) .acn-topbar .acn-langmenu:focus-within .acn-langmenu__list {
  display: flex;
}

.acn-langmenu__item,
.acn-langmenu__item[aria-pressed="true"] {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  height: auto;
  padding: 9px 16px;
  border-radius: 0;
  background: transparent;
  color: var(--acn-blue);
  font-size: 14px;
  letter-spacing: 0;
  text-align: left;
}

.acn-langmenu__item:hover,
.acn-langmenu__item:focus-visible {
  background: var(--acn-green-pale);
  color: var(--acn-green);
}

.acn-langmenu__item[aria-pressed="true"] {
  color: var(--acn-green);
}

/* Coche devant la langue active */
.acn-langmenu__check {
  visibility: hidden;
  font-size: 14px;
}

.acn-langmenu__item[aria-pressed="true"] .acn-langmenu__check {
  visibility: visible;
}

/*--------------------------------------------------------------
# 2) Barre principale (sticky)
--------------------------------------------------------------*/
.acn-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #fff;
  border-bottom: 1px solid var(--acn-line);
  font-family: var(--acn-font-title);
}

.acn-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--acn-bar-h);
  transition: height var(--acn-ease);
}

.acn-header.is-scrolled .acn-bar {
  height: var(--acn-bar-h-compact);
}

.acn-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: auto;
  text-decoration: none;
}

.acn-brand__logo {
  display: block;
  width: auto;
  height: 58px;
  transition: height var(--acn-ease);
}

.acn-header.is-scrolled .acn-brand__logo {
  height: 46px;
}

.acn-brand__compact {
  display: none;
  align-items: center;
  gap: 8px;
}

.acn-brand__compact img {
  width: auto;
  height: 36px;
}

.acn-brand__name {
  color: var(--acn-green-logo);
  font-family: var(--acn-font-title);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

/* Menu */
.acn-nav {
  align-self: stretch;
}

.acn-menu {
  display: flex;
  align-items: stretch;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.acn-item {
  display: flex;
  align-items: stretch;
}

.acn-item--drop {
  position: relative;
}

/* Le méga-menu se positionne par rapport au container (.acn-bar) */
.acn-item--mega {
  position: static;
}

.acn-link {
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: var(--acn-blue);
  font-family: var(--acn-font-title);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--acn-ease), background-color var(--acn-ease), box-shadow var(--acn-ease);
}

.acn-link--parent {
  padding-right: 4px;
}

/* Bouton ▾ / ▴ des sous-menus (vrai <button>, piloté au clavier) */
.acn-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  margin-right: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--acn-blue);
  cursor: pointer;
  transition: color var(--acn-ease);
}

.acn-toggle::before {
  content: "";
  border-top: 5px solid currentColor;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  transition: transform var(--acn-ease);
}

.acn-toggle[aria-expanded="true"]::before {
  transform: rotate(180deg);
}

/* Rubrique active, survolée ou ouverte : vert, fond vert pâle, soulignement intérieur de 4 px */
.acn-item:hover,
.acn-item.is-active,
.acn-item.is-open {
  background: var(--acn-green-pale);
  box-shadow: inset 0 -4px 0 var(--acn-green);
}

.acn-item:hover .acn-link,
.acn-item:hover .acn-toggle,
.acn-item.is-active .acn-link,
.acn-item.is-active .acn-toggle,
.acn-item.is-open .acn-link,
.acn-item.is-open .acn-toggle {
  color: var(--acn-green);
}

/* Bouton « Faire un don » */
.acn-donate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: 8px;
  padding: 15px 24px;
  border-radius: 999px;
  background: var(--acn-green);
  color: #fff;
  font-family: var(--acn-font-title);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--acn-ease);
}

.acn-donate:hover,
.acn-donate:focus {
  background: var(--acn-green-dark);
  color: #fff;
}

/*--------------------------------------------------------------
# Panneaux (méga-menu et listes déroulantes)
--------------------------------------------------------------*/
.acn-panel {
  position: absolute;
  top: 100%;
  z-index: 1031;
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
  background: #fff;
  border-top: 3px solid var(--acn-green);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 24px 50px rgba(15, 29, 74, 0.18);
  font-family: var(--acn-font-text);
  text-align: left;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

.acn-item.is-open > .acn-panel {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}

/* Sans JavaScript : ouverture au survol et au focus clavier */
html:not(.acn-js) .acn-item:hover > .acn-panel,
html:not(.acn-js) .acn-item:focus-within > .acn-panel {
  visibility: visible;
  opacity: 1;
  transform: none;
}

/* Listes simples : À propos, Nos activités */
.acn-panel--list {
  left: 0;
  width: 280px;
  padding: 10px 0;
}

.acn-sublist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.acn-sublink {
  display: block;
  padding: 11px 22px;
  color: var(--acn-blue);
  font-family: var(--acn-font-title);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.acn-sublink:hover,
.acn-sublink:focus,
.acn-sublink.is-current {
  background: var(--acn-green-pale);
  color: var(--acn-green);
}

/* Méga-menu « Nos programmes » : largeur du container */
.acn-panel--mega {
  left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
  right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
  overflow: hidden;
}

.acn-mega {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px 300px;
}

.acn-mega__col {
  padding: 24px 32px 22px;
}

.acn-mega__col--field {
  border-left: 1px solid var(--acn-line);
}

.acn-mega__col--featured {
  padding: 0;
}

.acn-eyebrow {
  margin: 0 0 12px;
  color: var(--acn-green);
  font-family: var(--acn-font-title);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.acn-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 16px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.acn-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 8px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color var(--acn-ease);
}

.acn-card:hover,
.acn-card:focus,
.acn-card.is-current {
  background: var(--acn-sand);
}

.acn-card__img {
  flex-shrink: 0;
  width: 92px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--acn-sand);
}

.acn-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.acn-card__title {
  color: var(--acn-blue);
  font-family: var(--acn-font-title);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  /* 2 lignes maximum (hauteur du méga-menu réduite) */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.acn-card__text {
  color: var(--acn-grey);
  font-family: var(--acn-font-text);
  font-size: 13.5px;
  line-height: 1.4;
  /* 2 lignes maximum */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.acn-more {
  color: var(--acn-green);
  font-family: var(--acn-font-title);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.acn-more:hover {
  text-decoration: underline;
}

.acn-fieldlist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.acn-fieldlink {
  display: inline-block;
  padding: 6px 0;
  color: var(--acn-blue);
  font-family: var(--acn-font-title);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.acn-fieldlink:hover,
.acn-fieldlink:focus,
.acn-fieldlink.is-current {
  color: var(--acn-green);
  text-decoration: underline;
}

/* Encart « À la une » */
.acn-featured {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--acn-navy);
  color: #fff;
  text-decoration: none;
}

.acn-featured__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.acn-featured::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.82) 100%);
}

.acn-featured__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 24px;
}

.acn-featured__tag {
  padding: 4px 8px;
  border-radius: 3px;
  background: var(--acn-green-light);
  color: var(--acn-navy);
  font-family: var(--acn-font-title);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.acn-featured__title {
  color: #fff;
  font-family: var(--acn-font-title);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.acn-featured__more {
  color: #fff;
  font-family: var(--acn-font-title);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
}

/* Méga-menu « À propos » : présentation, rubriques à découvrir, encart « Nous soutenir » */
.acn-card--about {
  margin: 0 -8px 14px;
}

.acn-card--about .acn-card__img {
  width: 120px;
  height: 96px;
}

.acn-card--about .acn-card__text {
  -webkit-line-clamp: 3;
}

.acn-fieldlist--pages {
  margin: 0 0 10px;
}

.acn-discover {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.acn-discover__link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 -10px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color var(--acn-ease);
}

.acn-discover__link:hover,
.acn-discover__link:focus,
.acn-discover__link.is-current {
  background: var(--acn-sand);
}

.acn-discover__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--acn-green-pale);
  color: var(--acn-green);
  font-size: 18px;
}

.acn-discover__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.acn-discover__title {
  color: var(--acn-blue);
  font-family: var(--acn-font-title);
  font-size: 15px;
  font-weight: 800;
}

.acn-discover__link:hover .acn-discover__title,
.acn-discover__link.is-current .acn-discover__title {
  color: var(--acn-green);
}

.acn-discover__meta {
  color: var(--acn-grey);
  font-size: 13px;
}

.acn-support {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  height: 100%;
  padding: 28px;
  background: var(--acn-navy);
  color: #fff;
}

.acn-support__text {
  margin: 0;
  color: #fff;
  font-family: var(--acn-font-title);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.acn-support__donate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--acn-green);
  color: #fff;
  font-family: var(--acn-font-title);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color var(--acn-ease);
}

.acn-support__donate:hover,
.acn-support__donate:focus {
  background: var(--acn-green-dark);
  color: #fff;
}

.acn-support__contact {
  color: #fff;
  font-family: var(--acn-font-title);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
}

.acn-support__contact:hover,
.acn-support__contact:focus {
  color: var(--acn-green-light);
}

/* Méga-menu « Nos activités » : domaines d'action et dernières activités (sans encart) */
.acn-mega--activities {
  grid-template-columns: minmax(0, 1fr) 380px;
}

.acn-card--domain {
  align-items: center;
}

.acn-card--domain .acn-card__img {
  width: 72px;
  height: 56px;
}

.acn-card__img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--acn-green-pale);
  color: var(--acn-green);
  font-size: 22px;
}

.acn-latest {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.acn-latest__link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 -10px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color var(--acn-ease);
}

.acn-latest__link:hover,
.acn-latest__link:focus,
.acn-latest__link.is-current {
  background: var(--acn-sand);
}

.acn-latest__date {
  color: var(--acn-green);
  font-size: 12.5px;
  font-weight: 600;
}

.acn-latest__title {
  color: var(--acn-blue);
  font-family: var(--acn-font-title);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  /* 2 lignes maximum */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* Voile derrière le méga-menu */
.acn-scrim {
  position: fixed;
  inset: 0;
  z-index: 1020;
  visibility: hidden;
  opacity: 0;
  background: rgba(15, 29, 74, 0.55);
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

.acn-scrim.is-visible {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.2s ease, visibility 0s;
}

/*--------------------------------------------------------------
# Bouton menu mobile
--------------------------------------------------------------*/
.acn-burger {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--acn-line);
  border-radius: 12px;
  background: #fff;
  color: var(--acn-blue);
  cursor: pointer;
}

.acn-burger__bars,
.acn-burger__bars::before,
.acn-burger__bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.acn-burger__bars {
  position: relative;
}

.acn-burger__bars::before,
.acn-burger__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.acn-burger__bars::before {
  top: -6px;
}

.acn-burger__bars::after {
  top: 6px;
}

/*--------------------------------------------------------------
# 5) Menu mobile plein écran
--------------------------------------------------------------*/
.acn-mobile {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  background: var(--acn-navy);
  color: #fff;
  font-family: var(--acn-font-title);
  overscroll-behavior: contain;
}

.acn-mobile.is-open,
html:not(.acn-js) .acn-mobile:target {
  display: flex;
}

.acn-mobile__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.acn-mobile__brand img {
  display: block;
  width: auto;
  height: 46px;
}

.acn-mobile__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: transparent;
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  cursor: pointer;
}

.acn-mobile__nav {
  flex: 1 0 auto;
  padding: 8px 20px 24px;
}

.acn-m-list,
.acn-m-sub,
.acn-mobile__contact {
  margin: 0;
  padding: 0;
  list-style: none;
}

.acn-m-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.acn-m-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.acn-m-link {
  display: flex;
  align-items: center;
  flex: 1;
  min-height: 56px;
  color: #fff;
  font-family: var(--acn-font-title);
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
}

.acn-m-item.is-active > .acn-m-link,
.acn-m-item.is-active > .acn-m-row > .acn-m-link {
  color: var(--acn-green-light);
}

.acn-m-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

/* Signe + / − */
.acn-m-toggle__sign {
  position: relative;
  width: 16px;
  height: 16px;
}

.acn-m-toggle__sign::before,
.acn-m-toggle__sign::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform var(--acn-ease);
}

.acn-m-toggle__sign::after {
  transform: rotate(90deg);
}

.acn-m-toggle[aria-expanded="true"] .acn-m-toggle__sign::after {
  transform: rotate(0deg);
}

.acn-m-sub {
  display: none;
  padding: 0 0 14px 4px;
}

.acn-m-item.is-expanded > .acn-m-sub,
html:not(.acn-js) .acn-m-sub {
  display: block;
}

.acn-m-sublink {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0 6px 16px;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--acn-font-text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.acn-m-sublink:hover,
.acn-m-sublink.is-current {
  border-left-color: var(--acn-green-light);
  color: #fff;
}

.acn-mobile__foot {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 20px 32px;
  background: var(--acn-forest);
}

.acn-mobile__donate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  border-radius: 999px;
  background: var(--acn-green);
  color: #fff;
  font-family: var(--acn-font-title);
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
}

.acn-mobile__donate:hover {
  background: var(--acn-green-dark);
  color: #fff;
}

.acn-mobile__contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--acn-font-text);
  font-size: 15px;
}

.acn-mobile__contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  text-decoration: none;
}

.acn-lang--mobile .acn-lang__btn {
  min-width: 44px;
  height: 44px;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Défilement de la page bloqué pendant que le menu mobile est ouvert */
html.acn-locked,
html.acn-locked body {
  overflow: hidden;
}

/* Sans JavaScript : lien d'ancre à la place des boutons */
.acn-burger--nojs,
.acn-mobile__close--nojs {
  display: none !important;
}

/*--------------------------------------------------------------
# Écrans moyens (1200 - 1399 px) : menu plus serré
--------------------------------------------------------------*/
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .acn-link {
    padding: 0 10px;
  }

  .acn-link--parent {
    padding-right: 2px;
  }

  .acn-toggle {
    margin-right: 8px;
  }

  .acn-donate {
    padding: 14px 18px;
  }

  .acn-mega__col {
    padding: 22px 24px 20px;
  }

  /* Encarts « À la une » et « Nous soutenir » : toujours bord à bord */
  .acn-mega__col--featured {
    padding: 0;
  }

  .acn-mega {
    grid-template-columns: minmax(0, 1fr) 240px 280px;
  }

  .acn-mega--activities {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

/*--------------------------------------------------------------
# Mobile et tablette (moins de 1200 px)
--------------------------------------------------------------*/
@media (max-width: 1199.98px) {
  .acn-topbar {
    display: none;
  }

  .acn-bar,
  .acn-header.is-scrolled .acn-bar {
    height: var(--acn-bar-h-compact);
  }

  .acn-nav,
  .acn-scrim {
    display: none;
  }

  .acn-brand__logo {
    display: none;
  }

  .acn-brand__compact {
    display: flex;
  }

  .acn-donate {
    gap: 8px;
    margin-left: 0;
    padding: 12px 16px;
    font-size: 14px;
  }

  .acn-burger {
    display: inline-flex;
  }

  html:not(.acn-js) .acn-burger {
    display: none;
  }

  html:not(.acn-js) .acn-burger--nojs {
    display: inline-flex !important;
  }

  html:not(.acn-js) .acn-mobile__close {
    display: none;
  }

  html:not(.acn-js) .acn-mobile__close--nojs {
    display: flex !important;
  }
}

/* Très petits écrans (moins de 360 px) : seul le symbole est affiché */
@media (max-width: 359.98px) {
  .acn-brand__name {
    display: none;
  }

  .acn-donate {
    padding: 12px 14px;
  }
}

/* Pas d'animation pour les visiteurs qui l'ont désactivée */
@media (prefers-reduced-motion: reduce) {
  .acn-bar,
  .acn-brand__logo,
  .acn-link,
  .acn-toggle,
  .acn-toggle::before,
  .acn-panel,
  .acn-item.is-open > .acn-panel,
  .acn-scrim,
  .acn-scrim.is-visible,
  .acn-card,
  .acn-donate,
  .acn-m-toggle__sign::before,
  .acn-m-toggle__sign::after {
    transition: none !important;
  }
}
