/* Améliorations responsive */

/* Mobile First - Base styles */
.container {
  padding: 0 1rem;
}

/* Amélioration des colonnes responsive */
@media screen and (max-width: 768px) {
  .columns.is-mobile-reverse {
    flex-direction: column-reverse;
  }
  
  .column.is-full-mobile {
    flex: none;
    width: 100%;
  }
  
  .is-hidden-mobile {
    display: none !important;
  }
  
  .is-size-1-mobile { font-size: 2rem !important; }
  .is-size-2-mobile { font-size: 1.75rem !important; }
  .is-size-3-mobile { font-size: 1.5rem !important; }
  .is-size-4-mobile { font-size: 1.25rem !important; }
  .is-size-5-mobile { font-size: 1.125rem !important; }
  .is-size-6-mobile { font-size: 1rem !important; }
  
  /* Hero responsive */
  .hero.is-large {
    padding: 3rem 0;
  }
  
  .hero-body {
    padding: 1.5rem;
  }
  
  /* Navigation mobile */
  .navbar-burger {
    display: block;
  }
  
  .navbar-menu {
    display: none;
  }
  
  .navbar-menu.is-active {
    display: block;
  }
  
  /* Cards responsive */
  .card {
    margin-bottom: 1.5rem;
  }
  
  .card-content {
    padding: 1rem;
  }
  
  /* Boutons mobile */
  .button.is-fullwidth-mobile {
    width: 100%;
  }
  
  .buttons {
    justify-content: center;
  }
  
  /* Images responsive */
  .image.is-mobile-square {
    padding-top: 100%;
  }
  
  /* Espacement mobile */
  .section {
    padding: 2rem 0;
  }
  
  .mb-6-mobile {
    margin-bottom: 3rem !important;
  }
  
  .mt-6-mobile {
    margin-top: 3rem !important;
  }
  
  /* Grilles mobile */
  .columns.is-mobile {
    display: flex;
  }
  
  .column.is-half-mobile {
    flex: none;
    width: 50%;
  }
  
  /* Texte mobile */
  .has-text-centered-mobile {
    text-align: center !important;
  }
  
  .has-text-left-mobile {
    text-align: left !important;
  }
}

/* Tablet styles */
@media screen and (min-width: 769px) and (max-width: 1023px) {
  .is-hidden-tablet {
    display: none !important;
  }
  
  .column.is-half-tablet {
    flex: none;
    width: 50%;
  }
  
  .column.is-one-third-tablet {
    flex: none;
    width: 33.3333%;
  }
  
  .column.is-two-thirds-tablet {
    flex: none;
    width: 66.6667%;
  }
  
  /* Hero tablet */
  .hero.is-large {
    padding: 6rem 0;
  }
  
  /* Cards tablet */
  .columns.is-multiline .column.is-4 {
    width: 50%;
  }
  
  /* Formulaires tablet */
  .field.is-grouped {
    display: flex;
    justify-content: flex-start;
  }
}

/* Desktop styles */
@media screen and (min-width: 1024px) {
  .is-hidden-desktop {
    display: none !important;
  }
  
  .column.is-one-quarter-desktop {
    flex: none;
    width: 25%;
  }
  
  .column.is-one-third-desktop {
    flex: none;
    width: 33.3333%;
  }
  
  .column.is-half-desktop {
    flex: none;
    width: 50%;
  }
  
  .column.is-two-thirds-desktop {
    flex: none;
    width: 66.6667%;
  }
  
  .column.is-three-quarters-desktop {
    flex: none;
    width: 75%;
  }
  
  /* Hover effects desktop only */
  .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 10, 10, 0.15);
    transition: all 0.3s ease;
  }
  
  .button:hover {
    transform: translateY(-1px);
    transition: all 0.2s ease;
  }
}

/* Large desktop styles */
@media screen and (min-width: 1216px) {
  .container {
    max-width: 1152px;
  }
  
  .is-hidden-widescreen {
    display: none !important;
  }
  
  /* Hero large */
  .hero.is-large {
    padding: 9rem 0;
  }
  
  /* Grilles large desktop */
  .columns.is-variable.is-8-widescreen {
    --columnGap: 2rem;
  }
}

/* Extra large desktop styles */
@media screen and (min-width: 1408px) {
  .container {
    max-width: 1344px;
  }
  
  .is-hidden-fullhd {
    display: none !important;
  }
}

/* Utilitaires responsive génériques */
.is-flex-mobile {
  display: flex !important;
}

.is-block-mobile {
  display: block !important;
}

.is-inline-block-mobile {
  display: inline-block !important;
}

.is-fullwidth-mobile {
  width: 100% !important;
}

.has-text-weight-normal-mobile {
  font-weight: normal !important;
}

.has-text-weight-bold-mobile {
  font-weight: bold !important;
}

/* Espacements responsive */
.p-0-mobile { padding: 0 !important; }
.p-1-mobile { padding: 0.25rem !important; }
.p-2-mobile { padding: 0.5rem !important; }
.p-3-mobile { padding: 0.75rem !important; }
.p-4-mobile { padding: 1rem !important; }
.p-5-mobile { padding: 1.25rem !important; }
.p-6-mobile { padding: 1.5rem !important; }

.m-0-mobile { margin: 0 !important; }
.m-1-mobile { margin: 0.25rem !important; }
.m-2-mobile { margin: 0.5rem !important; }
.m-3-mobile { margin: 0.75rem !important; }
.m-4-mobile { margin: 1rem !important; }
.m-5-mobile { margin: 1.25rem !important; }
.m-6-mobile { margin: 1.5rem !important; }

/* Tables responsive */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media screen and (max-width: 768px) {
  .table-responsive table {
    min-width: 600px;
  }
}

/* Images responsive avec aspect ratios */
.aspect-ratio-16-9 {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
}

.aspect-ratio-4-3 {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 75%;
}

.aspect-ratio-1-1 {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
}

.aspect-ratio-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .page-break-before {
    page-break-before: always;
  }
  
  .page-break-after {
    page-break-after: always;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
}