/* Hoppi — utilitaire `.h-section`
 * Bordures arrondies + marge autour d'une section pleine-largeur (card-look).
 * À appliquer sur toute `<section>` qui doit se détacher visuellement du fond
 * avec le pattern "rounded card centered".
 *
 * Usage :
 *   <section class="h-section"> ... </section>
 *
 * Combinable avec n'importe quel composant : ajoute juste la classe,
 * le composant garde son background/padding internes.
 *
 * Variants :
 *   .h-section.is-tight  → margin réduit (8/12px) pour sections serrées
 *   .h-section.is-flush  → pas de margin vertical (collé aux voisines)
 */

.h-section {
  width: calc(100% - 32px);
  max-width: 1400px;
  margin: 24px auto;
  border-radius: 28px;
  overflow: hidden;
  box-sizing: border-box;
  isolation: isolate;
}

.h-section.is-tight { margin: 12px auto; }
.h-section.is-flush { margin-top: 0; margin-bottom: 0; }

@media (max-width: 900px) {
  .h-section {
    width: calc(100% - 32px);
    margin: 16px;
    border-radius: 24px;
  }
  .h-section.is-tight { margin: 10px 16px; }
  .h-section.is-flush { margin-top: 0; margin-bottom: 0; }
}
