/*
 * Globals
 */

/* Links */
a,
a:focus,
a:hover {
  color: #fff;
}

/* Custom default button */
.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus {
  color: #333;
  text-shadow: none; /* Prevent inheritance from `body` */
  background-color: #fff;
  border: .05rem solid #fff;
}

/*
 * Base structure
 */
html,
body {
  height: 100%;
  background-color: #333;
}

body {
  display: -ms-flexbox;
  display: -webkit-box;
  display: flex;
  -ms-flex-pack: center;
  -webkit-box-pack: center;
  justify-content: center;
  color: #fff;
  text-shadow: 0 .05rem .1rem rgba(0, 0, 0, .5);
}

.cover-container {
  max-width: 42em;
}

/*
 * Header
 */
.masthead {
  margin-bottom: 2rem;
}

.masthead-brand {
  margin-bottom: 0;
}

.nav-masthead .nav-link {
  padding: .25rem 0;
  font-weight: 700;
  color: rgba(255, 255, 255, .5);
  background-color: transparent;
  border-bottom: .25rem solid transparent;
}

.nav-masthead .nav-link:hover,
.nav-masthead .nav-link:focus {
  border-bottom-color: rgba(255, 255, 255, .25);
}

.nav-masthead .nav-link + .nav-link {
  margin-left: 1rem;
}

.nav-masthead .active {
  color: #fff;
  border-bottom-color: #fff;
}

@media (min-width: 48em) {
  .masthead-brand {
    float: left;
  }
  .nav-masthead {
    float: right;
  }
}

/*
 * Cover
 */
.cover {
  padding: 0 1.5rem;
}
.cover .btn-lg {
  padding: .75rem 1.25rem;
  font-weight: 700;
}

/*
 * Footer
 */
.mastfoot {
  color: rgba(255, 255, 255, .5);
}

/* stylelint-disable selector-list-comma-newline-after */
.blog-header {
  line-height: 1;
  border-bottom: 1px solid #e5e5e5;
}

.blog-header-logo {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 2.25rem;
}

.blog-header-logo:hover {
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
}

.display-4 {
  font-size: 2.5rem;
}
@media (min-width: 768px) {
  .display-4 {
    font-size: 3rem;
  }
}

.nav-scroller {
  position: relative;
}

/* --- Optimisations Mobile (ajoutées par GPT) --- */

/* Adapter la largeur sur petits écrans */
.cover-container {
  max-width: 100%;
  padding: 0 1rem;
}

/* Réduire légèrement les grandes polices sur petits écrans */
@media (max-width: 576px) {
  .display-4 {
    font-size: 2rem;
  }
  h1, h2, h3 {
    font-size: 1.5rem;
  }
}

/* Navigation verticale pour petits écrans */
@media (max-width: 768px) {
  .nav-masthead {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .nav-masthead .nav-link + .nav-link {
    margin-left: 0;
    margin-top: 0.5rem;
  }
}
/* --- Adaptation de la section “Gather Your Community” sur petits écrans --- */

/* Container général */
.benefits-associations .gather-community {
  padding: 1rem; /* ajoute de l’espace autour sur mobile */
  margin: 0 auto;
  max-width: 100%;
  box-sizing: border-box;
}

/* Texte principal */
.benefits-associations .gather-community h1 {
  font-size: 2rem; /* réduction pour mobile */
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* Sous-titres, infos tarifaires etc. */
.benefits-associations .gather-community h2,
.benefits-associations .gather-community h3,
.benefits-associations .gather-community .info-box {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

/* Bouton “Start Your Group Today” */
.benefits-associations .gather-community .btn-start-group {
  font-size: 1rem;
  padding: 0.75rem 1.25rem;
  display: inline-block;
  width: auto;
  max-width: 100%;
}

/* Ajustement pour très petits écrans */
@media (max-width: 576px) {
  .benefits-associations .gather-community {
    padding: 0.5rem;
  }
  .benefits-associations .gather-community h1 {
    font-size: 1.75rem;
  }
  .benefits-associations .gather-community h2,
  .benefits-associations .gather-community h3 {
    font-size: 0.9rem;
  }
}

/* Ajustement spécifique pour Gather Your Community sur très petits écrans */
@media (max-width: 480px) {
  .benefits-associations.gather-community h1 {
    font-size: 1.5rem;  /* Réduit davantage la taille */
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-align: center;
  }
  .benefits-associations.gather-community p {
    font-size: 0.95rem;
    line-height: 1.4;
    padding: 0 0.5rem;
  }
  .benefits-associations.gather-community .btn-start-group {
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
  }
}