/* browser-compatibility.css
 * Fichier dédié à la compatibilité entre navigateurs
 * Inclut des resets CSS et préfixes vendeurs pour assurer un rendu cohérent
 */

/* Reset CSS */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Flexbox avec préfixes vendeurs */
.flex {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.flex-column {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

.flex-row {
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
}

.flex-wrap {
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.flex-nowrap {
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
}

.justify-content-center {
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.justify-content-start {
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
}

.justify-content-end {
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
}

.justify-content-between {
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.align-items-center {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.align-items-start {
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
}

.align-items-end {
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: flex-end;
}

/* Transitions et animations */
.transition {
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

/* Transformations */
.transform-center {
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

/* Ombres */
.box-shadow {
  -webkit-box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Coins arrondis */
.rounded {
  -webkit-border-radius: 4px;
  border-radius: 4px;
}

/* Corrections spécifiques pour les navigateurs */

/* Correction pour Firefox */
@-moz-document url-prefix() {
  select {
    text-indent: 0.01px;
    text-overflow: '';
    padding-right: 25px;
  }
}

/* Correction pour IE */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .flex {
    display: flex;
  }
  
  img {
    max-width: 100%;
  }
}

/* Correction pour Safari */
@media not all and (min-resolution:.001dpcm) { 
  @supports (-webkit-appearance:none) {
    .safari-fix {
      -webkit-appearance: none;
      appearance: none;
      margin: 0;
    }
  }
}

/* Correction pour le carrousel */
.carousel-container {
  -webkit-overflow-scrolling: touch;
}

.carousel-track {
  will-change: transform;
}
