@charset "UTF-8";
/* Bloc Galerie Avancée Technolution - Styles Frontend */
.wp-block-technolution-advanced-gallery {
  width: 100%;
  box-sizing: border-box;
  position: relative;
}
.wp-block-technolution-advanced-gallery * {
  box-sizing: border-box;
}

/* Titre et description du bloc */
.technolution-gallery-title {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem 0;
  font-family: inherit;
  word-wrap: break-word;
  hyphens: auto;
}

.technolution-gallery-description {
  line-height: 1.6;
  margin: 0 0 2rem 0;
  word-wrap: break-word;
  hyphens: auto;
}
.technolution-gallery-description p {
  margin: 0 0 1em 0;
}
.technolution-gallery-description p:last-child {
  margin-bottom: 0;
}

/* Conteneur principal de la galerie */
.technolution-gallery-container {
  width: 100%;
  position: relative;
}

/* Styles pour layout Grid */
.technolution-gallery-grid .technolution-gallery-container {
  display: grid;
  width: 100%;
}

/* Styles pour layout Masonry */
.technolution-gallery-masonry .technolution-gallery-container {
  column-fill: balance;
}
.technolution-gallery-masonry .technolution-gallery-item {
  break-inside: avoid;
  page-break-inside: avoid;
}

/* Styles pour layout Carousel */
.technolution-gallery-carousel .technolution-gallery-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.3) rgba(0, 0, 0, 0.1);
}
.technolution-gallery-carousel .technolution-gallery-container::-webkit-scrollbar {
  height: 8px;
}
.technolution-gallery-carousel .technolution-gallery-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}
.technolution-gallery-carousel .technolution-gallery-container::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}
.technolution-gallery-carousel .technolution-gallery-container::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.5);
}
.technolution-gallery-carousel .technolution-gallery-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 300px;
  margin-right: 1rem;
}
.technolution-gallery-carousel .technolution-gallery-item:last-child {
  margin-right: 0;
}

/* Styles pour layout Mosaic */
.technolution-gallery-mosaic .technolution-gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
}
.technolution-gallery-mosaic .technolution-gallery-item:nth-child(3n) {
  grid-column: span 2;
  grid-row: span 2;
}
.technolution-gallery-mosaic .technolution-gallery-item:nth-child(5n) {
  grid-row: span 2;
}
.technolution-gallery-mosaic .technolution-gallery-item:nth-child(7n) {
  grid-column: span 2;
}

/* Styles pour layout Slideshow */
.technolution-gallery-slideshow {
  position: relative;
}
.technolution-gallery-slideshow .technolution-gallery-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.technolution-gallery-slideshow .technolution-gallery-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}
.technolution-gallery-slideshow .technolution-gallery-item.active {
  opacity: 1;
  position: relative;
}
.technolution-gallery-slideshow .technolution-slideshow-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.technolution-gallery-slideshow .technolution-slideshow-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}
.technolution-gallery-slideshow .technolution-slideshow-dot.active {
  background: white;
  transform: scale(1.2);
}
.technolution-gallery-slideshow .technolution-slideshow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10;
}
.technolution-gallery-slideshow .technolution-slideshow-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}
.technolution-gallery-slideshow .technolution-slideshow-arrow.prev {
  left: 20px;
}
.technolution-gallery-slideshow .technolution-slideshow-arrow.next {
  right: 20px;
}

/* Styles pour layout Blog */
.technolution-gallery-blog .technolution-gallery-container {
  display: flex;
  flex-direction: column;
}
.technolution-gallery-blog .technolution-gallery-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.technolution-gallery-blog .technolution-gallery-item:nth-child(even) {
  flex-direction: row-reverse;
}
.technolution-gallery-blog .technolution-gallery-item img {
  flex: 0 0 40%;
  margin-right: 1.5rem;
  border-radius: 8px;
}
.technolution-gallery-blog .technolution-gallery-item:nth-child(even) img {
  margin-right: 0;
  margin-left: 1.5rem;
}
.technolution-gallery-blog .technolution-gallery-caption {
  flex: 1;
  position: relative !important;
  background: transparent !important;
  padding: 0 !important;
}

/* Styles pour layout Thumbnails */
.technolution-gallery-thumbnails .technolution-gallery-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.technolution-gallery-thumbnails .technolution-gallery-item {
  width: 120px;
  height: 120px;
  margin: 4px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}
.technolution-gallery-thumbnails .technolution-gallery-item:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.technolution-gallery-thumbnails .technolution-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Items de galerie généraux */
.technolution-gallery-item {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
}
.technolution-gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}
.technolution-gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
  border-radius: inherit;
}
.technolution-gallery-item:hover img {
  transform: scale(1.05);
}

/* Styles des légendes */
.technolution-gallery-caption {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  transition: all 0.3s ease;
  /* Légendes en overlay */
  /* Légendes sous l'image */
}
.technolution-gallery-caption[style*="position: absolute"] {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.technolution-gallery-caption[style*="position: relative"] {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 8px 8px;
}

.technolution-gallery-caption-title {
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.5rem 0;
  word-wrap: break-word;
}

.technolution-gallery-caption-description {
  line-height: 1.4;
  margin: 0;
  word-wrap: break-word;
  opacity: 0.95;
}
.technolution-gallery-caption-description p {
  margin: 0 0 0.5em 0;
}
.technolution-gallery-caption-description p:last-child {
  margin-bottom: 0;
}

/* Animations d'overlay */
.technolution-gallery-item:hover .technolution-gallery-caption[style*="position: absolute"] {
  background-color: rgba(0, 0, 0, 0.85) !important;
}

/* Effets de transition pour overlays */
.technolution-gallery-caption.fade-animation {
  transition: opacity 0.3s ease;
}
.technolution-gallery-caption.slide-up-animation {
  transition: all 0.3s ease;
}
.technolution-gallery-caption.slide-down-animation {
  transition: all 0.3s ease;
}
.technolution-gallery-caption.slide-left-animation {
  transition: all 0.3s ease;
}
.technolution-gallery-caption.slide-right-animation {
  transition: all 0.3s ease;
}
.technolution-gallery-caption.zoom-animation {
  transition: all 0.3s ease;
}

/* Animations de chargement */
.technolution-gallery-item img {
  opacity: 0;
  animation: technolutionImageLoad 0.6s ease-in-out forwards;
}

@keyframes technolutionImageLoad {
  to {
    opacity: 1;
  }
}
.technolution-gallery-item {
  animation: technolutionItemAppear 0.5s ease-out;
}

@keyframes technolutionItemAppear {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* États de focus pour l'accessibilité */
.technolution-gallery-item:focus,
.technolution-gallery-item a:focus {
  outline: 3px solid #007cba;
  outline-offset: 2px;
  border-radius: 8px;
}

.technolution-slideshow-arrow:focus,
.technolution-slideshow-dot:focus {
  outline: 2px solid #007cba;
  outline-offset: 2px;
}

/* Bouton "Voir plus" */
.technolution-gallery-show-more-container {
  margin-top: 2rem;
  text-align: center;
}

.technolution-gallery-show-more-btn {
  background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
  position: relative;
  overflow: hidden;
}
.technolution-gallery-show-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 124, 186, 0.4);
  background: linear-gradient(135deg, #0073aa 0%, #004a75 100%);
}
.technolution-gallery-show-more-btn:active {
  transform: translateY(0);
}
.technolution-gallery-show-more-btn:focus {
  outline: 3px solid rgba(0, 124, 186, 0.3);
  outline-offset: 2px;
}
.technolution-gallery-show-more-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}
.technolution-gallery-show-more-btn:hover::before {
  left: 100%;
}

/* Images cachées avec animation */
.technolution-gallery-item[style*="display: none"] {
  opacity: 0;
  transform: translateY(20px);
}

.technolution-gallery-item {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Animation d'apparition des images */
@keyframes technolutionImageAppear {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
/* Responsive Design */
@media (max-width: 1024px) {
  .technolution-gallery-title {
    font-size: calc(var(--title-size, 28px) * 0.9);
  }

  .technolution-gallery-description {
    font-size: calc(var(--description-size, 16px) * 0.95);
  }

  .technolution-gallery-caption {
    padding: 0.75rem !important;
  }

  .technolution-gallery-caption-title {
    font-size: calc(var(--caption-title-size, 18px) * 0.9);
  }

  .technolution-gallery-caption-description {
    font-size: calc(var(--caption-desc-size, 14px) * 0.9);
  }

  /* Ajustements pour layout Blog */
  .technolution-gallery-blog .technolution-gallery-item {
    flex-direction: column !important;
    text-align: center;
  }
  .technolution-gallery-blog .technolution-gallery-item img {
    margin: 0 0 1rem 0 !important;
    max-width: 100%;
    flex: none;
  }

  /* Ajustements pour layout Carousel */
  .technolution-gallery-carousel .technolution-gallery-item {
    width: 250px;
  }
}
@media (max-width: 768px) {
  .technolution-gallery-title {
    font-size: calc(var(--title-size, 28px) * 0.8);
    margin-bottom: 1rem;
  }

  .technolution-gallery-description {
    font-size: calc(var(--description-size, 16px) * 0.9);
    margin-bottom: 1.5rem;
  }

  .technolution-gallery-item:hover {
    transform: translateY(-2px);
  }

  .technolution-gallery-caption {
    padding: 0.5rem !important;
  }

  .technolution-gallery-caption-title {
    font-size: calc(var(--caption-title-size, 18px) * 0.8);
    margin-bottom: 0.25rem;
  }

  .technolution-gallery-caption-description {
    font-size: calc(var(--caption-desc-size, 14px) * 0.8);
    line-height: 1.3;
  }

  .technolution-gallery-show-more-btn {
    font-size: 13px;
    padding: 10px 20px;
  }

  /* Ajustements pour layout Mosaic */
  .technolution-gallery-mosaic .technolution-gallery-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-auto-rows: 150px;
  }
  .technolution-gallery-mosaic .technolution-gallery-item:nth-child(3n),
.technolution-gallery-mosaic .technolution-gallery-item:nth-child(7n) {
    grid-column: span 1;
  }
  .technolution-gallery-mosaic .technolution-gallery-item:nth-child(5n) {
    grid-row: span 1;
  }

  /* Ajustements pour layout Carousel */
  .technolution-gallery-carousel .technolution-gallery-item {
    width: 200px;
  }

  /* Ajustements pour layout Thumbnails */
  .technolution-gallery-thumbnails .technolution-gallery-item {
    width: 80px;
    height: 80px;
    margin: 2px;
  }

  /* Contrôles de slideshow */
  .technolution-slideshow-arrow {
    padding: 8px 12px;
    font-size: 14px;
  }
  .technolution-slideshow-arrow.prev {
    left: 10px;
  }
  .technolution-slideshow-arrow.next {
    right: 10px;
  }

  .technolution-slideshow-controls {
    bottom: 10px;
  }

  .technolution-slideshow-dot {
    width: 10px;
    height: 10px;
  }
}
@media (max-width: 480px) {
  .technolution-gallery-title {
    font-size: calc(var(--title-size, 28px) * 0.7);
    margin-bottom: 0.75rem;
  }

  .technolution-gallery-description {
    font-size: calc(var(--description-size, 16px) * 0.85);
    margin-bottom: 1rem;
  }

  .technolution-gallery-caption {
    padding: 0.4rem !important;
  }

  .technolution-gallery-caption-title {
    font-size: calc(var(--caption-title-size, 18px) * 0.7);
  }

  .technolution-gallery-caption-description {
    font-size: calc(var(--caption-desc-size, 14px) * 0.75);
  }

  /* Ajustements pour layout Carousel */
  .technolution-gallery-carousel .technolution-gallery-item {
    width: 150px;
  }

  /* Ajustements pour layout Thumbnails */
  .technolution-gallery-thumbnails .technolution-gallery-item {
    width: 60px;
    height: 60px;
    margin: 1px;
  }
}
/* Support du mode sombre */
@media (prefers-color-scheme: dark) {
  .wp-block-technolution-advanced-gallery .technolution-gallery-title {
    color: #f7fafc;
  }
  .wp-block-technolution-advanced-gallery .technolution-gallery-description {
    color: #e2e8f0;
  }
  .wp-block-technolution-advanced-gallery .technolution-gallery-item {
    background: #2d3748;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  }
  .wp-block-technolution-advanced-gallery .technolution-gallery-item:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  }
  .wp-block-technolution-advanced-gallery .technolution-gallery-blog .technolution-gallery-item {
    background: #2d3748;
  }
  .wp-block-technolution-advanced-gallery .technolution-slideshow-arrow {
    background: rgba(255, 255, 255, 0.2);
  }
  .wp-block-technolution-advanced-gallery .technolution-slideshow-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
  }
}
/* Optimisations de performance */
.technolution-gallery-item img {
  will-change: transform;
}

.technolution-gallery-caption {
  will-change: opacity, transform;
}

/* Support des préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  .technolution-gallery-item,
.technolution-gallery-item img,
.technolution-gallery-caption,
.technolution-slideshow-arrow,
.technolution-slideshow-dot {
    transition: none !important;
    animation: none !important;
  }

  .technolution-gallery-item:hover {
    transform: none;
  }

  .technolution-gallery-item:hover img {
    transform: none;
  }
}
/* Améliorations de contraste élevé */
@media (prefers-contrast: high) {
  .technolution-gallery-caption {
    background-color: rgba(0, 0, 0, 0.9) !important;
    border: 2px solid #fff;
  }

  .technolution-gallery-item:focus,
.technolution-gallery-item a:focus {
    outline: 4px solid #ffff00;
    outline-offset: 4px;
  }

  .technolution-slideshow-arrow {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #fff;
  }

  .technolution-slideshow-dot {
    border: 2px solid #fff;
  }
  .technolution-slideshow-dot.active {
    background: #ffff00;
  }
}
/* Styles d'impression */
@media print {
  .wp-block-technolution-advanced-gallery .technolution-slideshow-arrow,
.wp-block-technolution-advanced-gallery .technolution-slideshow-controls {
    display: none !important;
  }
  .wp-block-technolution-advanced-gallery .technolution-gallery-item {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .wp-block-technolution-advanced-gallery .technolution-gallery-caption {
    position: relative !important;
    background: #f0f0f0 !important;
    color: #000 !important;
    padding: 0.5rem !important;
    margin-top: 0.25rem !important;
  }
}

/*# sourceMappingURL=block-frontend.css.map */
