@charset "UTF-8";
/* Styles Frontend - Bloc Vitrine de Publications Technolution - Version Améliorée */
.wp-block-technolution-posts-showcase {
  width: 100%;
  box-sizing: border-box;
  position: relative;
}
.wp-block-technolution-posts-showcase * {
  box-sizing: border-box;
}

/* Titre et description du bloc */
.technolution-block-title {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 2rem 0;
  font-family: inherit;
}
.technolution-block-title[class*=h1], .technolution-block-titleh1 {
  font-size: 2.5rem;
}
.technolution-block-title[class*=h2], .technolution-block-titleh2 {
  font-size: 2.25rem;
}
.technolution-block-title[class*=h3], .technolution-block-titleh3 {
  font-size: 1.875rem;
}
.technolution-block-title[class*=h4], .technolution-block-titleh4 {
  font-size: 1.5rem;
}
.technolution-block-title[class*=h5], .technolution-block-titleh5 {
  font-size: 1.25rem;
}
.technolution-block-title[class*=h6], .technolution-block-titleh6 {
  font-size: 1.125rem;
}

.technolution-block-description {
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0 0 2rem 0;
  opacity: 0.9;
}
.technolution-block-description p {
  margin-bottom: 1rem;
}
.technolution-block-description p:last-child {
  margin-bottom: 0;
}

/* ======================================
   GRILLES ET LAYOUTS PRINCIPAUX
====================================== */
/* Grille de base avec support publication vedette */
.technolution-posts-grid {
  display: grid;
  width: 100%;
  position: relative;
  gap: var(--gap, 30px);
}

/* Grille standard sans publication vedette */
.technolution-posts-grid:not(.has-featured) {
  grid-template-columns: repeat(var(--columns-desktop, 3), 1fr);
}

/* Grille avec publication vedette */
.technolution-posts-grid.has-featured {
  /* Les colonnes sont définies dans le PHP selon la position et le nombre de colonnes */
}

/* ======================================
   PUBLICATION VEDETTE
====================================== */
.technolution-featured-post {
  position: relative;
}
.technolution-featured-post.technolution-featured-top {
  align-self: start;
}
.technolution-featured-post.technolution-featured-center {
  align-self: center;
}
.technolution-featured-post.technolution-featured-bottom {
  align-self: end;
}
.technolution-featured-post.technolution-featured-full {
  align-self: stretch;
}

.technolution-post-featured {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 2px solid var(--link-color, #3182ce);
  position: relative;
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.technolution-post-featured::before {
  content: "⭐";
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--link-color, #3182ce);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.technolution-post-featured:hover {
  transform: scale(1.04) translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}
.technolution-post-featured .technolution-post-title {
  font-size: 1.5rem;
  color: var(--link-color, #3182ce);
}
.technolution-post-featured .technolution-post-excerpt {
  font-size: 1rem;
  line-height: 1.6;
}

/* ======================================
   POSITIONS DES IMAGES
====================================== */
/* Image en haut (par défaut) */
.technolution-post-item.technolution-image-top {
  display: flex;
  flex-direction: column;
}
.technolution-post-item.technolution-image-top .technolution-post-image-wrapper {
  width: 100%;
  order: 0;
}
.technolution-post-item.technolution-image-top .technolution-post-content {
  order: 1;
}

/* Image en bas */
.technolution-post-item.technolution-image-bottom {
  display: flex;
  flex-direction: column;
}
.technolution-post-item.technolution-image-bottom .technolution-post-image-wrapper {
  width: 100%;
  order: 2;
}
.technolution-post-item.technolution-image-bottom .technolution-post-content {
  order: 1;
}

/* Image à gauche */
.technolution-post-item.technolution-image-left {
  display: flex;
  flex-direction: row;
}
.technolution-post-item.technolution-image-left .technolution-post-image-wrapper {
  order: 1;
  margin-right: 16px;
}
.technolution-post-item.technolution-image-left .technolution-post-content {
  flex: 1;
  order: 2;
}

/* Image à droite */
.technolution-post-item.technolution-image-right {
  display: flex;
  flex-direction: row-reverse;
}
.technolution-post-item.technolution-image-right .technolution-post-image-wrapper {
  order: 1;
  margin-left: 16px;
}
.technolution-post-item.technolution-image-right .technolution-post-content {
  flex: 1;
  order: 2;
}

/* ======================================
   ÉLÉMENTS DE PUBLICATION
====================================== */
/* Élément de publication individuel */
.technolution-post-item {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 2px solid transparent;
}

.technolution-post-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

/* Wrapper d'image */
.technolution-post-image-wrapper {
  position: relative;
  overflow: hidden;
}

.technolution-post-image-wrapper a {
  display: block;
}

/* Image de publication */
.technolution-post-image {
  width: 100%;
  height: var(--image-height, 200px);
  object-fit: var(--image-object-fit, cover);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.technolution-post-item:hover .technolution-post-image {
  transform: scale(1.08);
}

.technolution-post-image.lazy {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.technolution-post-image:not(.lazy) {
  opacity: 1;
}

/* Contenu de la publication */
.technolution-post-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Ajustements pour les images latérales */
.technolution-post-item.technolution-image-left .technolution-post-image-wrapper,
.technolution-post-item.technolution-image-right .technolution-post-image-wrapper {
  flex-shrink: 0;
}
.technolution-post-item.technolution-image-left .technolution-post-content,
.technolution-post-item.technolution-image-right .technolution-post-content {
  padding: 20px;
}

/* Ajustements pour les images en bas */
.technolution-post-item.technolution-image-bottom .technolution-post-image-wrapper {
  border-radius: 0 0 12px 12px;
}
.technolution-post-item.technolution-image-bottom .technolution-post-content {
  border-radius: 12px 12px 0 0;
}

/* ======================================
   LAYOUTS SPÉCIAUX
====================================== */
/* Layout Carrousel */
.technolution-posts-grid[data-layout=carousel] {
  display: flex;
  gap: var(--gap, 30px);
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}

.technolution-posts-grid[data-layout=carousel] .technolution-post-item {
  flex: 0 0 auto;
  width: calc(100% / var(--columns-desktop, 3) - var(--gap, 30px) / var(--columns-desktop, 3));
  min-width: 250px;
}

/* Layout Masonry */
.technolution-posts-grid[data-layout=masonry-horizontal],
.technolution-posts-grid[data-layout=masonry-vertical] {
  display: block;
  column-count: var(--columns-desktop, 3);
  column-gap: var(--gap, 30px);
  column-fill: balance;
}

.technolution-posts-grid[data-layout=masonry-horizontal] .technolution-post-item,
.technolution-posts-grid[data-layout=masonry-vertical] .technolution-post-item {
  break-inside: avoid;
  margin-bottom: var(--gap, 30px);
  display: inline-block;
  width: 100%;
}

/* Layout Moderne */
.technolution-posts-grid[data-layout=modern] {
  gap: calc(var(--gap, 30px) * 0.8);
}

.technolution-posts-grid[data-layout=modern] .technolution-post-item {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  border-radius: 20px;
  border: none !important;
}

.technolution-posts-grid[data-layout=modern] .technolution-post-title a,
.technolution-posts-grid[data-layout=modern] .technolution-post-meta,
.technolution-posts-grid[data-layout=modern] .technolution-post-excerpt,
.technolution-posts-grid[data-layout=modern] .technolution-read-more {
  color: white !important;
}

.technolution-posts-grid[data-layout=modern] .technolution-taxonomy-term {
  background: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Layout Mosaïque Améliorée */
.technolution-posts-grid[data-layout=enhanced-mosaic] .technolution-post-item:nth-child(3n+1) {
  transform: translateY(20px);
}

/* Layout Galerie Justifiée */
.technolution-posts-grid[data-layout=justified-gallery] {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--gap, 30px);
}

.technolution-posts-grid[data-layout=justified-gallery] .technolution-post-item {
  flex: 1 1 auto;
  min-width: 200px;
  max-width: 400px;
}

.technolution-posts-grid[data-layout=justified-gallery] .technolution-post-image {
  height: auto !important;
  min-height: 150px;
  max-height: 300px;
}

/* Layout Polaroid Amélioré */
.technolution-posts-grid[data-layout=enhanced-polaroid] {
  gap: calc(var(--gap, 30px) * 1.2);
  padding: 20px;
}

.technolution-posts-grid[data-layout=enhanced-polaroid] .technolution-post-item {
  background: white !important;
  padding: 12px 12px 40px 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  transform: rotate(var(--rotation, 0deg));
  transition: all 0.3s ease;
  border: none !important;
}

.technolution-posts-grid[data-layout=enhanced-polaroid] .technolution-post-item:nth-child(odd) {
  --rotation: 2deg;
}

.technolution-posts-grid[data-layout=enhanced-polaroid] .technolution-post-item:nth-child(even) {
  --rotation: -1.5deg;
}

.technolution-posts-grid[data-layout=enhanced-polaroid] .technolution-post-item:nth-child(3n) {
  --rotation: 1.5deg;
}

.technolution-posts-grid[data-layout=enhanced-polaroid] .technolution-post-item:hover {
  transform: rotate(0deg) translateY(-10px) !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15), 0 12px 40px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

/* Layouts Timeline */
.technolution-posts-grid[data-layout=timeline-standard],
.technolution-posts-grid[data-layout=timeline-modern] {
  display: block;
  position: relative;
  padding-left: 40px;
}

.technolution-posts-grid[data-layout=timeline-standard]::before,
.technolution-posts-grid[data-layout=timeline-modern]::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
  transform: translateX(-50%);
  z-index: 1;
}

.technolution-posts-grid[data-layout=timeline-standard] .technolution-post-item,
.technolution-posts-grid[data-layout=timeline-modern] .technolution-post-item {
  width: calc(50% - 40px);
  position: relative;
  margin-bottom: 40px;
  background: white;
  border: 1px solid #e5e7eb;
}

.technolution-posts-grid[data-layout=timeline-standard] .technolution-post-item:nth-child(odd),
.technolution-posts-grid[data-layout=timeline-modern] .technolution-post-item:nth-child(odd) {
  margin-right: auto;
  margin-left: 0;
}

.technolution-posts-grid[data-layout=timeline-standard] .technolution-post-item:nth-child(even),
.technolution-posts-grid[data-layout=timeline-modern] .technolution-post-item:nth-child(even) {
  margin-left: auto;
  margin-right: 0;
}

.technolution-posts-grid[data-layout=timeline-standard] .technolution-post-item::before,
.technolution-posts-grid[data-layout=timeline-modern] .technolution-post-item::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--link-color, #3182ce);
  border-radius: 50%;
  top: 20px;
  border: 3px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.technolution-posts-grid[data-layout=timeline-standard] .technolution-post-item:nth-child(odd)::before,
.technolution-posts-grid[data-layout=timeline-modern] .technolution-post-item:nth-child(odd)::before {
  right: -48px;
}

.technolution-posts-grid[data-layout=timeline-standard] .technolution-post-item:nth-child(even)::before,
.technolution-posts-grid[data-layout=timeline-modern] .technolution-post-item:nth-child(even)::before {
  left: -48px;
}

/* Timeline Moderne - Style différencié */
.technolution-posts-grid[data-layout=timeline-modern] .technolution-post-item {
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: none;
  overflow: hidden;
}

.technolution-posts-grid[data-layout=timeline-modern] .technolution-post-item::before {
  background: linear-gradient(45deg, var(--link-color, #3182ce), #805ad5);
  width: 20px;
  height: 20px;
}

/* ======================================
   TAXONOMIES
====================================== */
.technolution-taxonomies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.technolution-taxonomy-term {
  background: var(--link-color, #3182ce);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.technolution-taxonomy-term:hover {
  transform: scale(1.05);
  opacity: 0.9;
  text-decoration: none;
}

.technolution-taxonomy-term.technolution-taxonomy-badge {
  border-radius: 20px;
}

.technolution-taxonomy-term.technolution-taxonomy-button {
  border-radius: 6px;
  font-weight: 600;
}

.technolution-taxonomy-term.technolution-taxonomy-pill {
  border-radius: 15px;
  padding: 6px 14px;
}

/* ======================================
   TITRE ET CONTENU
====================================== */
/* Titre de publication */
.technolution-post-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 12px 0;
}

.technolution-post-title a {
  color: var(--text-color, #2d3748);
  text-decoration: none;
  transition: color 0.3s ease;
}

.technolution-post-title a:hover {
  color: var(--link-color, #3182ce);
}

/* Métadonnées */
.technolution-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 16px;
}

.technolution-post-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.technolution-post-meta svg {
  flex-shrink: 0;
}

/* Extrait */
.technolution-post-excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 16px;
  flex-grow: 1;
}

/* Bouton "Lire la suite" */
.technolution-read-more {
  display: inline-flex;
  align-items: center;
  color: var(--link-color, #3182ce);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  margin-top: auto;
}

.technolution-read-more:hover {
  transform: translateX(5px);
  text-decoration: none;
}

.technolution-read-more svg {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.technolution-read-more:hover svg {
  transform: translateX(4px);
}

/* ======================================
   FILTRES
====================================== */
.technolution-filters-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}

.technolution-filter-badge,
.technolution-filter-reset {
  background: #f3f4f6;
  color: #374151;
  border: 2px solid transparent;
  padding: 8px 16px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  display: inline-block;
}

.technolution-filter-badge:hover,
.technolution-filter-reset:hover,
.technolution-filter-badge.active,
.technolution-filter-reset.active {
  background: var(--link-color, #3182ce);
  color: white;
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.technolution-filter-count {
  opacity: 0.7;
  font-size: 0.8em;
  margin-left: 4px;
}

/* ======================================
   BOUTONS PERSONNALISÉS
====================================== */
.technolution-custom-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.technolution-custom-button::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 ease;
}

.technolution-custom-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.technolution-custom-button:hover::before {
  left: 100%;
}

.technolution-custom-button::after {
  content: "→";
  transition: transform 0.3s ease;
}

.technolution-custom-button:hover::after {
  transform: translateX(4px);
}

/* ======================================
   PAGINATION
====================================== */
.technolution-pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.technolution-pagination-wrapper .page-numbers {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  margin: 0 4px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.technolution-pagination-wrapper .page-numbers:hover,
.technolution-pagination-wrapper .page-numbers.current {
  background: var(--link-color, #3182ce);
  color: white;
  border-color: var(--link-color, #3182ce);
  transform: translateY(-2px);
  text-decoration: none;
}

.technolution-pagination-wrapper .page-numbers.dots {
  border: none;
  background: transparent;
  cursor: default;
}

.technolution-pagination-wrapper .page-numbers.dots:hover {
  transform: none;
  background: transparent;
  color: #374151;
}

/* ======================================
   CAROUSEL
====================================== */
.technolution-carousel-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.technolution-carousel-wrapper .technolution-posts-grid {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.technolution-carousel-wrapper .technolution-post-item {
  flex: 0 0 auto;
  width: calc(33.3333333333% - 20px);
  margin-right: 20px;
}

.technolution-carousel-wrapper .technolution-post-item:last-child {
  margin-right: 0;
}

.technolution-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #e5e7eb;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 5;
  backdrop-filter: blur(4px);
}

.technolution-carousel-nav:hover:not(.disabled) {
  background: white;
  border-color: var(--link-color, #3182ce);
  color: var(--link-color, #3182ce);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.technolution-carousel-nav.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.technolution-carousel-nav.technolution-carousel-prev {
  left: -24px;
}

.technolution-carousel-nav.technolution-carousel-next {
  right: -24px;
}

/* ======================================
   ÉTATS ET ANIMATIONS
====================================== */
.technolution-no-posts {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
  font-style: italic;
  font-size: 1.125rem;
}

.technolution-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
}

.technolution-loader p {
  margin: 12px 0 0 0;
  color: #6b7280;
  font-weight: 500;
}

.technolution-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--link-color, #3182ce);
  border-radius: 50%;
  animation: technolutionSpin 1s linear infinite;
  margin: 0 auto;
}

@keyframes technolutionSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.technolution-posts-grid.loading {
  opacity: 0.6;
  pointer-events: none;
  filter: blur(1px);
}

.technolution-error {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 2px solid #fca5a5;
  border-radius: 12px;
  color: #b91c1c;
  margin: 20px 0;
}

.technolution-error p {
  margin: 0 0 12px 0;
  font-weight: 500;
}

.technolution-retry {
  background: var(--link-color, #3182ce);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.technolution-retry:hover {
  background: color-mix(in srgb, var(--link-color, #3182ce) 85%, black);
  transform: translateY(-1px);
}

/* ======================================
   RESPONSIVE DESIGN
====================================== */
@media (max-width: 1024px) {
  .technolution-block-title {
    font-size: 2rem;
  }

  .technolution-block-description {
    font-size: 1rem;
  }

  .technolution-post-content {
    padding: 20px;
  }

  .technolution-post-image {
    height: calc(var(--image-height, 200px) * 0.9);
  }

  /* Responsive pour tous les layouts en grille */
  .technolution-posts-grid:not(.has-featured) {
    grid-template-columns: repeat(var(--columns-tablet, 2), 1fr);
  }

  /* Publication vedette responsive */
  .technolution-featured-post {
    grid-column: span min(var(--featured-columns, 1), var(--columns-tablet, 2));
  }

  /* Images latérales deviennent verticales sur tablette */
  .technolution-post-item.technolution-image-left,
.technolution-post-item.technolution-image-right {
    flex-direction: column;
  }
  .technolution-post-item.technolution-image-left .technolution-post-image-wrapper,
.technolution-post-item.technolution-image-right .technolution-post-image-wrapper {
    width: 100%;
    margin: 0 0 12px 0;
  }

  /* Responsive pour masonry */
  .technolution-posts-grid[data-layout=masonry-horizontal],
.technolution-posts-grid[data-layout=masonry-vertical] {
    column-count: var(--columns-tablet, 2);
  }

  /* Responsive pour carousel */
  .technolution-carousel-wrapper .technolution-post-item {
    width: calc(50% - 10px);
  }

  .technolution-carousel-nav.technolution-carousel-prev {
    left: -20px;
  }

  .technolution-carousel-nav.technolution-carousel-next {
    right: -20px;
  }

  /* Responsive pour timeline */
  .technolution-posts-grid[data-layout=timeline-standard]::before,
.technolution-posts-grid[data-layout=timeline-modern]::before {
    left: 20px;
  }

  .technolution-posts-grid[data-layout=timeline-standard] .technolution-post-item,
.technolution-posts-grid[data-layout=timeline-modern] .technolution-post-item {
    width: calc(100% - 60px);
    margin-left: 40px !important;
    margin-right: 0 !important;
  }

  .technolution-posts-grid[data-layout=timeline-standard] .technolution-post-item::before,
.technolution-posts-grid[data-layout=timeline-modern] .technolution-post-item::before {
    left: -48px !important;
    right: auto !important;
  }
}
@media (max-width: 768px) {
  .technolution-block-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .technolution-block-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .technolution-post-content {
    padding: 16px;
  }

  .technolution-post-image {
    height: calc(var(--image-height, 200px) * 0.8);
  }

  .technolution-post-title {
    font-size: 1.125rem;
  }

  .technolution-post-meta {
    font-size: 0.8rem;
    gap: 12px;
  }

  .technolution-post-excerpt {
    font-size: 0.85rem;
  }

  .technolution-read-more {
    font-size: 0.8rem;
  }

  /* Responsive pour tous les layouts en grille */
  .technolution-posts-grid:not(.has-featured) {
    grid-template-columns: repeat(var(--columns-mobile, 1), 1fr);
  }

  /* Publication vedette responsive */
  .technolution-featured-post {
    grid-column: span min(var(--featured-columns, 1), var(--columns-mobile, 1));
  }

  /* Responsive pour masonry */
  .technolution-posts-grid[data-layout=masonry-horizontal],
.technolution-posts-grid[data-layout=masonry-vertical] {
    column-count: var(--columns-mobile, 1);
  }

  .technolution-filters-wrapper {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 30px;
  }

  .technolution-filter-badge,
.technolution-filter-reset {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .technolution-carousel-wrapper .technolution-post-item {
    width: 100%;
  }

  .technolution-carousel-nav {
    width: 40px;
    height: 40px;
  }

  .technolution-carousel-nav.technolution-carousel-prev {
    left: -16px;
  }

  .technolution-carousel-nav.technolution-carousel-next {
    right: -16px;
  }

  .technolution-custom-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .technolution-pagination-wrapper .page-numbers {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  /* Les images latérales restent en haut sur mobile */
  .technolution-post-item.technolution-image-left,
.technolution-post-item.technolution-image-right {
    flex-direction: column;
  }
  .technolution-post-item.technolution-image-left .technolution-post-image-wrapper,
.technolution-post-item.technolution-image-right .technolution-post-image-wrapper {
    width: 100%;
    margin: 0 0 12px 0;
  }
}
@media (max-width: 480px) {
  .technolution-block-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .technolution-post-item:hover {
    transform: translateY(-4px);
  }

  .technolution-post-meta {
    flex-direction: column;
    gap: 8px;
  }

  .technolution-filters-wrapper {
    gap: 8px;
  }

  .technolution-filter-badge,
.technolution-filter-reset {
    padding: 4px 8px;
    font-size: 0.75rem;
  }

  .technolution-carousel-nav {
    display: none;
    /* Masquer sur très petits écrans */
  }

  .technolution-post-image {
    height: calc(var(--image-height, 200px) * 0.7);
  }
}
/* ======================================
   ANIMATIONS
====================================== */
@keyframes technolutionFadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes technolutionSlideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes technolutionSlideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes technolutionPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}
@keyframes technolutionBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}
/* Application des animations */
.technolution-post-item {
  animation: technolutionFadeInUp 0.6s ease-out;
}

.technolution-post-item:nth-child(1) {
  animation-delay: 0.1s;
}

.technolution-post-item:nth-child(2) {
  animation-delay: 0.2s;
}

.technolution-post-item:nth-child(3) {
  animation-delay: 0.3s;
}

.technolution-post-item:nth-child(4) {
  animation-delay: 0.4s;
}

.technolution-post-item:nth-child(5) {
  animation-delay: 0.5s;
}

.technolution-post-item:nth-child(6) {
  animation-delay: 0.6s;
}

.technolution-post-item.animate-in {
  animation: technolutionFadeInUp 0.5s ease-out;
}

.technolution-post-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

.technolution-posts-grid[data-layout=timeline-standard] .technolution-post-item:nth-child(odd),
.technolution-posts-grid[data-layout=timeline-modern] .technolution-post-item:nth-child(odd) {
  animation: technolutionSlideInLeft 0.8s ease-out;
}

.technolution-posts-grid[data-layout=timeline-standard] .technolution-post-item:nth-child(even),
.technolution-posts-grid[data-layout=timeline-modern] .technolution-post-item:nth-child(even) {
  animation: technolutionSlideInRight 0.8s ease-out;
}

.technolution-filter-badge:hover,
.technolution-filter-reset:hover {
  animation: technolutionBounce 0.6s ease-in-out;
}

/* ======================================
   EFFETS AVANCÉS
====================================== */
/* Effet parallax subtil */
@media (prefers-reduced-motion: no-preference) {
  .technolution-post-image {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .technolution-post-item:hover .technolution-post-image {
    transform: scale(1.08) translateZ(0);
  }
}
/* Overlay au survol pour les liens */
.technolution-post-image-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 123, 255, 0.1), rgba(0, 123, 255, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.technolution-post-item:hover .technolution-post-image-wrapper::after {
  opacity: 1;
}

/* ======================================
   DARK MODE
====================================== */
@media (prefers-color-scheme: dark) {
  .wp-block-technolution-posts-showcase {
    --text-color: #f9fafb;
    --link-color: #60a5fa;
  }

  .technolution-block-title {
    color: #f9fafb;
  }

  .technolution-block-description {
    color: #d1d5db;
  }

  .technolution-post-item {
    background: #374151;
    border: 1px solid #4b5563;
    color: #f9fafb;
  }

  .technolution-post-item:hover {
    background: #4b5563;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.4);
  }

  .technolution-post-meta {
    color: #9ca3af;
  }

  .technolution-post-excerpt {
    color: #d1d5db;
  }

  .technolution-filter-badge,
.technolution-filter-reset {
    background: #4b5563;
    color: #f9fafb;
    border-color: #6b7280;
  }

  .technolution-filter-badge:hover,
.technolution-filter-reset:hover,
.technolution-filter-badge.active,
.technolution-filter-reset.active {
    background: var(--link-color, #60a5fa);
    color: #1f2937;
  }

  .technolution-pagination-wrapper .page-numbers {
    background: #374151;
    color: #f9fafb;
    border-color: #4b5563;
  }

  .technolution-pagination-wrapper .page-numbers:hover,
.technolution-pagination-wrapper .page-numbers.current {
    background: var(--link-color, #60a5fa);
    color: #1f2937;
    border-color: var(--link-color, #60a5fa);
  }

  .technolution-carousel-nav {
    background: rgba(55, 65, 81, 0.95);
    border-color: #6b7280;
    color: #f9fafb;
  }

  .technolution-carousel-nav:hover:not(.disabled) {
    background: #4b5563;
    border-color: var(--link-color, #60a5fa);
    color: var(--link-color, #60a5fa);
  }
}
/* ======================================
   ACCESSIBILITÉ
====================================== */
/* Préférences d'accessibilité */
@media (prefers-reduced-motion: reduce) {
  .technolution-post-item,
.technolution-post-image,
.technolution-read-more,
.technolution-filter-badge,
.technolution-filter-reset,
.technolution-custom-button,
.technolution-carousel-nav {
    transition: none;
    animation: none;
  }

  .technolution-post-item:hover {
    transform: none;
  }

  .technolution-post-item:hover .technolution-post-image {
    transform: none;
  }

  .technolution-read-more:hover {
    transform: none;
  }
}
/* États de focus pour l'accessibilité */
.technolution-post-item:focus-within,
.technolution-filter-badge:focus,
.technolution-filter-reset:focus,
.technolution-read-more:focus,
.technolution-custom-button:focus,
.technolution-pagination-wrapper .page-numbers:focus {
  outline: 3px solid var(--link-color, #3182ce);
  outline-offset: 2px;
}

.technolution-post-title a:focus {
  outline: 2px solid var(--link-color, #3182ce);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ======================================
   OPTIMISATIONS PERFORMANCE
====================================== */
/* Support pour les écrans haute résolution */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .technolution-post-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}
/* Conteneur de performance */
.technolution-posts-grid {
  contain: layout style;
}

.technolution-post-item {
  contain: layout style paint;
}

/* Optimisations GPU */
.technolution-post-item,
.technolution-post-image,
.technolution-carousel-nav {
  will-change: transform;
}

.technolution-post-item:hover,
.technolution-post-image:hover {
  transform: translateZ(0);
  /* Force GPU acceleration */
}

/* Skeleton loading pour les images */
.technolution-post-image[data-src] {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: technolutionSkeleton 1.5s infinite;
}

@keyframes technolutionSkeleton {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
/* ======================================
   PRINT STYLES
====================================== */
@media print {
  .wp-block-technolution-posts-showcase {
    box-shadow: none;
  }

  .technolution-post-item {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
    margin-bottom: 20px;
  }

  .technolution-filters-wrapper,
.technolution-pagination-wrapper,
.technolution-carousel-nav,
.technolution-custom-button {
    display: none;
  }

  .technolution-post-image {
    height: auto;
    max-height: 200px;
  }

  .technolution-read-more::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}

/*# sourceMappingURL=block-frontend.css.map */
