/* 
 * Styles pour le nouveau carrousel inspiré du hero des articles 
 * Version 2.7.0 - Refonte complète avec image à droite et ratio fixe
 */

/* Structure de base du carrousel */
.featured-carousel {
  position: relative;
  margin: 0 0 3rem 0;
  background: #111;
  min-height: 520px;
  border-radius: 0;
  box-shadow: 0 4px 32px rgba(0,0,0,0.10);
  overflow: hidden;
}

.carousel-container {
  position: relative;
  min-height: 520px;
  max-height: 600px;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 2rem;
  background: #111;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Contenu textuel à gauche */
.carousel-hero-content {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.carousel-breadcrumb {
  font-size: 1.08rem;
  color: #fff;
  margin-bottom: 0;
  letter-spacing: 0.01em;
}

.carousel-breadcrumb a {
  color: #fff;
  text-decoration: none;
  background: none;
  border-radius: 8px;
  padding: 0.12em 0.32em;
  transition: opacity 0.18s;
  opacity: 0.92;
  font-weight: 500;
  font-size: 0.97em;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.carousel-breadcrumb a:hover {
  opacity: 1;
}

.carousel-breadcrumb ol {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.carousel-breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.carousel-breadcrumb li:not(:last-child) {
  margin-right: 0.25rem;
}

.carousel-breadcrumb .breadcrumb-separator {
  margin: 0 0.5rem;
  color: rgba(255, 255, 255, 0.5);
}

.carousel-title {
  font-size: 3.2rem;
  font-weight: 500;
  color: #fff;
  margin: 0;
  line-height: 1.08;
  text-align: left;
}

.carousel-title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.carousel-title a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.carousel-excerpt {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 90%;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-link {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.8rem;
  background: transparent;
  color: #ffffff;
  text-decoration: none;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  gap: 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.carousel-link:hover,
.carousel-link:focus,
.carousel-link:active {
  color: #fff !important;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.carousel-link i {
  font-size: 0.9rem;
}

/* Image à droite avec ratio fixe */
.carousel-hero-image {
  position: relative;
  flex: 0 0 50%;
  max-width: 50%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 18px;
}

.carousel-hero-image > div {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
}

.carousel-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  display: block;
}

/* Lien cliquable sur l'image - invisible mais fonctionnel */
.carousel-image-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: none;
}

.carousel-image-link:hover {
  text-decoration: none;
  color: inherit;
}

.carousel-image-link:focus {
  outline: none;
}

/* Image par défaut quand pas d'image */
.carousel-default-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.default-image-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.default-image-content i {
  font-size: 2.5rem;
  opacity: 0.5;
}

.default-image-content span {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.7;
}

/* Position des badges dans le carrousel */
.carousel-image-badges {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 0.7rem;
  background: rgba(10,10,10,0.85);
  border-radius: 16px;
  padding: 0.35em 1.1em;
  align-items: center;
  z-index: 20;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
}

.carousel-image-badges .meta-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-image-badges span {
  display: flex;
  align-items: center;
  gap: 0.4em;
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
  font-size: 0.95rem;
}

.carousel-image-badges i {
  color: #fff;
  font-size: 0.95em;
  opacity: 0.9;
}

/* Contrôles du carrousel */
.carousel-controls {
  position: absolute;
  top: 1rem;
  left: 2rem;
  right: calc(50% + 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
  pointer-events: none;
}

.carousel-prev,
.carousel-next {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
  pointer-events: auto;
  opacity: 0.6;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  opacity: 1;
  transform: scale(1.05);
}

.carousel-dots {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  pointer-events: auto;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  transform: scale(1.2);
}

.carousel-dot.active {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.6);
  opacity: 1;
  transform: scale(1.3);
}

/* Style de base du carrousel avec bords arrondis pour tous les écrans ≥ 768px */
.featured-carousel {
  position: relative;
  margin: 0 0 3rem 0;
  background: #111;
  min-height: 520px;
  /* Pas de border-radius par défaut, on l'applique uniquement via media queries */
  border-radius: 0;
  box-shadow: 0 4px 32px rgba(0,0,0,0.10);
  overflow: hidden;
}

.carousel-container {
  position: relative;
  min-height: 520px;
  max-height: 600px;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 2rem;
  background: #111;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-hero-content {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.carousel-breadcrumb {
  font-size: 1.08rem;
  color: #fff;
  margin-bottom: 0;
  letter-spacing: 0.01em;
}

.carousel-breadcrumb a {
  color: #fff;
  text-decoration: none;
  background: none;
  border-radius: 8px;
  padding: 0.12em 0.32em;
  transition: opacity 0.18s;
  opacity: 0.92;
  font-weight: 500;
  font-size: 0.97em;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.carousel-breadcrumb a:hover {
  opacity: 1;
}

.carousel-breadcrumb ol {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.carousel-breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.carousel-breadcrumb li:not(:last-child) {
  margin-right: 0.25rem;
}

.carousel-breadcrumb .breadcrumb-separator {
  margin: 0 0.5rem;
  color: rgba(255, 255, 255, 0.5);
}

.carousel-title {
  font-size: 3.2rem;
  font-weight: 500;
  color: #fff;
  margin: 0;
  line-height: 1.08;
  text-align: left;
}

.carousel-title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.carousel-title a:hover {
  color: rgba(255, 255, 255, 0.9);
}


.featured-carousel .carousel-hero-image {
  position: relative !important;
  max-width: 1000px !important;
  min-width: 260px !important;
  flex: 0 0 700px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2.5rem 0 !important;
  overflow: visible !important;
  transition: flex 0.3s ease !important;
  width: 700px !important;
}

.carousel-hero-image img {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: none;
  box-shadow: 0 6px 32px 0 rgba(0,0,0,0.18);
  object-fit: cover;
  object-position: center;
  position: relative;
  display: block;
}

.carousel-excerpt {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 90%;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-link {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.8rem;
  background: transparent;
  color: #ffffff;
  text-decoration: none;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  gap: 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.carousel-link:hover,
.carousel-link:focus,
.carousel-link:active {
  color: #fff !important;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.carousel-link i {
  font-size: 0.9rem;
}

.carousel-controls {
  position: absolute !important;
  top: 1rem !important;
  left: 2rem !important;
  right: calc(50% + 2rem) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  z-index: 2 !important;
  pointer-events: none !important;
  transition: right 0.3s ease !important;
}

.carousel-prev,
.carousel-next {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
  pointer-events: auto;
  opacity: 0.6;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  opacity: 1;
  transform: scale(1.05);
}

.carousel-dots {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  pointer-events: auto;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  transform: scale(1.2);
}

.carousel-dot.active {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.6);
  opacity: 1;
  transform: scale(1.3);
}

/* Position des badges dans le carrousel (vues, commentaires, temps de lecture) */
.carousel-image-badges {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 0.7rem;
  background: rgba(10,10,10,0.85);
  border-radius: 16px;
  padding: 0.35em 1.1em;
  align-items: center;
  z-index: 20;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
}

.carousel-image-badges .meta-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-image-badges span {
  display: flex;
  align-items: center;
  gap: 0.4em;
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
  font-size: 0.95rem;
}

.carousel-image-badges i {
  color: #fff;
  font-size: 0.95em;
  opacity: 0.9;
}

/* Effets TV si activés */
.carousel-hero-image.tv-effects {
  position: relative;
  max-width: 1000px;
  min-width: 260px;
  flex: 0 0 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 0;
}

.carousel-hero-image.tv-effects > div {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 6px 32px 0 rgba(0,0,0,0.18);
  background: radial-gradient(circle at center, #444 0%, #111 100%);
}

.carousel-hero-image.tv-effects img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  animation: flicker 1.5s infinite;
  opacity: 0.9;
  mix-blend-mode: screen;
  margin: 0;
  padding: 0;
}

.carousel-hero-image.tv-effects .scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.04) 2px,
    transparent 2px,
    transparent 4px
  );
  pointer-events: none;
  z-index: 10;
  animation: scroll 5s linear infinite;
  border-radius: 0;
}

/* Ajout d'effets supplémentaires uniquement à l'intérieur du conteneur */
.carousel-hero-image.tv-effects > div::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0) 80%,
    rgba(255, 255, 255, 0.1) 100%
  );
  pointer-events: none;
  z-index: 9;
}

.carousel-hero-image.tv-effects > div::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 8;
  animation: glow 4s infinite alternate;
}

@keyframes flicker {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.85; }
  55% { opacity: 0.8; }
  60% { opacity: 0.9; }
  65% { opacity: 0.95; }
  70% { opacity: 0.9; }
}

@keyframes scroll {
  0% { background-position: 0 0; }
  100% { background-position: 0 100px; }
}

@keyframes glow {
  0% { opacity: 0.3; }
  100% { opacity: 0.7; }
}

/* Responsive */
/* Grands écrans de bureau */
@media (max-width: 1600px) {
  .featured-carousel .carousel-slide .carousel-hero-image,
  body.home .featured-carousel .carousel-slide .carousel-hero-image {
    flex: 0 0 45% !important;
    max-width: 45% !important;
  }
  
  .carousel-controls {
    right: calc(45% + 2rem) !important;
  }
  
  .carousel-title {
    font-size: 2.8rem;
  }
}

/* Écrans de bureau moyens */
@media (max-width: 1400px) {
  .featured-carousel .carousel-slide .carousel-hero-image,
  body.home .featured-carousel .carousel-slide .carousel-hero-image {
    flex: 0 0 45% !important;
    max-width: 45% !important;
  }
  
  .carousel-controls {
    right: calc(45% + 2rem) !important;
  }
  
  .carousel-title {
    font-size: 2.5rem;
  }
  
  .carousel-excerpt {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}

/* Écrans de bureau standards */
@media (max-width: 1200px) {
  .featured-carousel .carousel-slide .carousel-hero-image,
  body.home .featured-carousel .carousel-slide .carousel-hero-image {
    flex: 0 0 40% !important;
    max-width: 40% !important;
  }
  
  .carousel-controls {
    right: calc(40% + 1.5rem) !important;
  }
  
  .carousel-title {
    font-size: 2.2rem;
  }
  
  .carousel-excerpt {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
  
  .carousel-breadcrumb a {
    max-width: 150px;
  }
}

/* Petits écrans de bureau */
@media (max-width: 1024px) {
  .featured-carousel .carousel-slide .carousel-hero-image,
  body.home .featured-carousel .carousel-slide .carousel-hero-image {
    flex: 0 0 40% !important;
    max-width: 40% !important;
  }
  
  .carousel-controls {
    right: calc(40% + 1.5rem) !important;
  }
  
  .carousel-title {
    font-size: 2rem;
  }
  
  .carousel-slide {
    gap: 1.5rem;
    padding: 2rem 1.5rem;
  }
  
  .carousel-excerpt {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  
  .carousel-breadcrumb a {
    max-width: 120px;
  }
}

/* Tablettes paysage */
@media (max-width: 900px) {
  .featured-carousel .carousel-slide .carousel-hero-image,
  body.home .featured-carousel .carousel-slide .carousel-hero-image {
    flex: 0 0 35% !important;
    max-width: 35% !important;
  }
  
  .carousel-controls {
    right: calc(35% + 1rem) !important;
  }
  
  .carousel-title {
    font-size: 1.8rem;
  }
  
  .carousel-slide {
    gap: 1.2rem;
    padding: 1.8rem 1.2rem;
  }
  
  .carousel-excerpt {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: 0.95rem;
  }
  
  .carousel-breadcrumb a {
    max-width: 100px;
  }
}

/* Tablettes portrait */
@media (max-width: 800px) {
  .featured-carousel .carousel-slide .carousel-hero-image,
  body.home .featured-carousel .carousel-slide .carousel-hero-image {
    flex: 0 0 35% !important;
    max-width: 35% !important;
  }
  
  .carousel-controls {
    right: calc(35% + 1rem) !important;
  }
  
  .carousel-title {
    font-size: 1.6rem;
  }
  
  .carousel-excerpt {
    -webkit-line-clamp: 1;
    line-clamp: 1;
    font-size: 0.9rem;
  }
  
  .carousel-breadcrumb a {
    max-width: 80px;
  }
}

/* Tablettes petites */
@media (max-width: 700px) {
  .featured-carousel .carousel-slide .carousel-hero-image,
  body.home .featured-carousel .carousel-slide .carousel-hero-image {
    flex: 0 0 30% !important;
    max-width: 30% !important;
  }
  
  .carousel-controls {
    right: calc(30% + 1rem) !important;
  }
  
  .carousel-title {
    font-size: 1.4rem;
  }
  
  .carousel-slide {
    gap: 1rem;
    padding: 1.5rem 1rem;
  }
}

/* Mobile paysage */
@media (max-width: 600px) {
  .featured-carousel .carousel-slide .carousel-hero-image,
  body.home .featured-carousel .carousel-slide .carousel-hero-image {
    flex: 0 0 25% !important;
    max-width: 25% !important;
  }
  
  .carousel-controls {
    right: calc(25% + 0.8rem) !important;
  }
  
  .carousel-title {
    font-size: 1.2rem;
  }
  
  .carousel-slide {
    gap: 0.8rem;
    padding: 1.2rem 0.8rem;
  }
}

/* Mobile - Image full width */
@media (max-width: 767px) {
  .featured-carousel,
  body.home .featured-carousel {
    min-height: 680px !important;
    max-height: 750px !important;
    touch-action: auto !important; /* Permet tous les gestes tactiles */
    -webkit-overflow-scrolling: touch !important;
  }
  
  .featured-carousel .carousel-container,
  body.home .featured-carousel .carousel-container {
    min-height: 680px !important;
    max-height: 750px !important;
  }
  
  .featured-carousel .carousel-slide,
  body.home .featured-carousel .carousel-slide {
    flex-direction: column !important;
    gap: 0.6rem !important;
    padding: 1rem !important;
    min-height: 680px !important;
    max-height: 750px !important;
  }
  
  .featured-carousel .carousel-slide .carousel-hero-image,
  body.home .featured-carousel .carousel-slide .carousel-hero-image {
    flex: none !important;
    width: calc(100% - 0.8rem) !important;
    max-width: calc(100% - 0.8rem) !important;
    margin: 0 0.4rem !important;
    order: 2 !important;
    aspect-ratio: 4/3 !important;
    height: auto !important;
  }
  
  .featured-carousel .carousel-slide .carousel-hero-image > div,
  body.home .featured-carousel .carousel-slide .carousel-hero-image > div {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 4/3 !important;
  }
  
  .featured-carousel .carousel-slide .carousel-hero-image img,
  body.home .featured-carousel .carousel-slide .carousel-hero-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    aspect-ratio: 4/3 !important;
  }
  
  .featured-carousel .carousel-slide .carousel-hero-content,
  body.home .featured-carousel .carousel-slide .carousel-hero-content {
    order: 1 !important;
    margin-bottom: 0.2rem !important;
    justify-content: flex-start !important;
    padding-top: 0.5rem !important;
    align-items: flex-start !important;
    align-self: flex-start !important;
    flex: 0 0 auto !important;
  }
  
  .featured-carousel .carousel-slide,
  body.home .featured-carousel .carousel-slide {
    align-items: stretch !important;
    justify-content: flex-start !important;
  }
  
  .carousel-controls {
    right: 1rem !important;
    left: 1rem !important;
  }
  
  .carousel-title {
    font-size: 1.1rem !important;
  }
  
  .carousel-excerpt {
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    font-size: 0.85rem !important;
  }
  
  .carousel-breadcrumb a {
    max-width: 60px !important;
  }
  
  body.home .featured-carousel {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  
  body.home .site-main .container {
    padding-top: 0 !important;
  }
  
  /* Structure de base - suppression des bords arrondis uniquement en mobile */
  .featured-carousel {
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    position: relative;
    border-radius: 0;
    min-height: 750px;
    overflow: hidden;
  }
  
  .carousel-container {
    min-height: 750px;
    position: relative;
    overflow: hidden;
  }
  
  /* Structure du slide */
  .carousel-slide {
    display: grid;
    grid-template-rows: auto auto;
    grid-template-areas: 
      "image"
      "content";
    padding: 3rem 0;
    gap: 0;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  }
  
  /* Contenu textuel */
  .carousel-hero-content {
    grid-area: content;
    padding: 1.5rem;
    background: #111;
    z-index: 10;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .carousel-breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
  }
  
  .carousel-breadcrumb a {
    max-width: 60px;
  }
  
  .carousel-title {
    font-size: 1.5rem;
    line-height: 1.2;
    margin: 0;
  }
  
  
  .carousel-excerpt {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0.3rem 0 0.8rem 0;
    max-width: 100%;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .carousel-link {
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
    align-self: flex-start;
  }
  
  /* Image en haut */
  .carousel-hero-image,
  .carousel-hero-image.tv-effects {
    grid-area: image;
    width: calc(100% - 40px);
    height: 250px;
    padding: 0;
    margin: 16px auto 0 auto;
    position: relative;
    display: block;
    overflow: visible;
  }
  
  .carousel-hero-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 18px;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }
  
  /* Lien cliquable sur l'image en mobile */
  .carousel-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: none;
  }
  
  .carousel-image-link:hover {
    text-decoration: none;
    color: inherit;
  }
  
  .carousel-image-link:focus {
    outline: none;
  }
  
  .carousel-hero-image.tv-effects > div {
    width: 100%;
    height: 250px;
    border-radius: 18px;
    max-height: none;
    overflow: hidden;
  }
  
  .carousel-hero-image.tv-effects img {
    width: 100%;
    height: 250px;
    max-height: none;
    object-fit: cover;
    border-radius: 18px;
  }
  
  /* Badges */
  .carousel-image-badges {
    right: 10px;
    bottom: 10px;
    padding: 0.2em 0.6em;
    gap: 0.4rem;
    border-radius: 12px;
  }
  
  .carousel-image-badges span {
    font-size: 0.8rem;
  }
  
  .carousel-image-badges i {
    font-size: 0.8rem;
  }
  
  /* Contrôles */
  .carousel-controls {
    position: absolute !important;
    top: 1rem !important;
    left: 1rem !important;
    right: 1rem !important;
    z-index: 15 !important;
    justify-content: space-between !important;
    pointer-events: none !important;
  }
  
  .carousel-prev, 
  .carousel-next {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    border-radius: 50%;
    pointer-events: auto !important;
  }
  
  .carousel-dot {
    width: 6px;
    height: 6px;
    pointer-events: auto !important;
  }
  
  .carousel-prev:hover,
  .carousel-next:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: none;
  }

  body.home:not(.tv-enabled) .featured-carousel {
    padding-top: 5rem !important;
  }

  body.home:not(.tv-enabled) main.site-main .featured-carousel {
    padding-top: 5rem !important;
  }
}

/* Empêcher le bouton de devenir violet après clic */
.carousel-link:visited {
  color: #ffffff;
}

/* Style spécifique pour les pages d'archive */
.archive .featured-carousel {
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  /* Largeur du bouton = largeur du titre */
  .carousel-hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .carousel-title {
    width: 100%;
    display: block;
  }
  .carousel-link {
    width: 90%;
    box-sizing: border-box;
    justify-content: flex-start;
    text-align: left;
    margin-top: 0.7rem;
  }
  .featured-carousel {
    border-radius: 28px;
  }
  body.home:not(.tv-enabled) .featured-carousel {
    margin-top: 5rem !important;
  }
  body.home.tv-enabled .site-main .container {
    padding-top: 2rem !important;
  }
  body.home.tv-enabled main.site-main .container {
    padding-top: 2rem !important;
  }
}

@media (max-width: 767px) {
  body.home:not(.tv-enabled) .featured-carousel {
    padding-top: 0rem !important;
  }
} 
