/* ==================================================
   SINGLE NOS ACTUS — ACADÉMIE DES ARTS D'AVIGNON
   ================================================== */

.aa-actu-single {
  --actu-blue: #264154;
  --actu-gold: #d6a12c;
  --actu-text: #374151;
  --actu-muted: #64748b;
  --actu-light: #f4f4f0;
  --actu-border: #e5e5df;

  background: #ffffff;
  color: var(--actu-text);
}

.aa-actu-single,
.aa-actu-single * {
  box-sizing: border-box;
}

.aa-actu-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 30px;
}


/* ==================================================
   1. HERO
   ================================================== */

.aa-actu-hero {
  padding: 30px 0 60px;
  background: radial-gradient(
    circle at top left,
    #ffffff 0%,
    #f4f4f0 45%,
    #ece8e0 100%
  );
}

.aa-actu-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--actu-blue);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s ease;
}

.aa-actu-back span {
  transition: transform 0.25s ease;
}

.aa-actu-back:hover {
  color: var(--actu-blue);
  text-decoration: underline;
}

.aa-actu-back:hover span {
  transform: translateX(-4px);
}

.aa-actu-hero-inner {
  max-width: 950px;
  margin: 30px auto 0;
  text-align: center;
}

.aa-actu-category {
  margin-bottom: 16px;
  color: #96701f;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.aa-actu-title {
  margin: 0 0 20px;
  color: var(--actu-blue);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.aa-actu-hero-date {
  margin: 0;
  color: var(--actu-muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.5;
}

.aa-actu-hero-line {
  display: block;
  width: 55px;
  height: 3px;
  margin: 28px auto 0;
  background: var(--actu-gold);
}


/* ==================================================
   2. CONTENU PRINCIPAL
   ================================================== */

.aa-actu-main {
  padding: 60px 0;
}

.aa-actu-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(30px, 4vw, 60px);
}

.aa-actu-layout--full {
  grid-template-columns: minmax(0, 1fr);
  max-width: 900px;
  margin-inline: auto;
}

.aa-actu-article {
  min-width: 0;
}


/* Image principale */

.aa-actu-cover {
  margin: 0 0 35px;
  overflow: hidden;
  background: var(--actu-light);
  border-radius: 4px;
}

.aa-actu-cover img {
  display: block;
  width: 100%;
  height: auto;
}


/* Titres de sections */

.aa-actu-section-title {
  position: relative;
  margin: 0 0 28px;
  padding-bottom: 16px;
  color: var(--actu-blue);
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
}

.aa-actu-section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--actu-gold);
}


/* Description et contenu WordPress */

.aa-actu-description,
.aa-actu-content {
  color: var(--actu-text);
  font-size: 1.05rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.aa-actu-description p,
.aa-actu-content p {
  margin: 0 0 1.2em;
}

.aa-actu-description p:last-child,
.aa-actu-content p:last-child {
  margin-bottom: 0;
}

.aa-actu-description + .aa-actu-content {
  margin-top: 25px;
}

.aa-actu-content h2,
.aa-actu-content h3,
.aa-actu-content h4 {
  margin-top: 1.5em;
  color: var(--actu-blue);
}

.aa-actu-content img {
  max-width: 100%;
  height: auto;
}

.aa-actu-content a {
  color: var(--actu-blue);
  text-decoration: underline;
}


/* ==================================================
   3. INFORMATIONS PRATIQUES
   ================================================== */

.aa-actu-infos {
  min-width: 0;
}

.aa-actu-infos-inner {
  padding: clamp(22px, 3vw, 35px);
  background: var(--actu-light);
  border-top: 4px solid var(--actu-gold);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 8px 30px rgba(38, 65, 84, 0.05);
}

.aa-actu-infos-title {
  margin: 0 0 15px;
  color: var(--actu-blue);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
}

.aa-actu-infos-list {
  margin: 0;
  padding: 0;
}

.aa-actu-info-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--actu-border);
}

.aa-actu-info-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.aa-actu-info-item dt {
  margin: 0 0 6px;
  color: var(--actu-blue);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.aa-actu-info-item dd {
  margin: 0;
  color: var(--actu-text);
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.aa-actu-location {
  display: block;
  font-weight: 600;
}

.aa-actu-address {
  display: block;
  margin-top: 5px;
  font-size: 0.95rem;
  color: var(--actu-muted);
}

.aa-actu-artistes {
  list-style: none;
  margin: 0;
  padding: 0;
}

.aa-actu-artistes li {
  padding: 4px 0;
}

.aa-actu-free {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 25px;
  padding: 9px 15px;
  background: #e0eee5;
  color: #286443;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 3px;
}

.aa-actu-free::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}


/* ==================================================
   4. GALERIE D'IMAGES
   ================================================== */

.aa-actu-gallery-section {
  padding: 50px 0;
  background: #f8f8f6;
}

.aa-actu-gallery {
  max-width: 1000px;
  margin-inline: auto;
}

.aa-actu-gallery-viewport {
  overflow: hidden;
  border-radius: 4px;
  background: #eeede9;
}

.aa-actu-gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.aa-actu-gallery-track::-webkit-scrollbar {
  display: none;
}

.aa-actu-gallery-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.aa-actu-gallery-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* Commandes du carrousel */

.aa-actu-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding-top: 24px;
}

.aa-actu-gallery-controls[hidden] {
  display: none !important;
}

.aa-actu-gallery-prev,
.aa-actu-gallery-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--actu-border);
  border-radius: 50%;
  background: #ffffff;
  color: var(--actu-blue);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.aa-actu-gallery-prev:hover,
.aa-actu-gallery-next:hover {
  background: var(--actu-blue);
  border-color: var(--actu-blue);
  color: #ffffff;
}

.aa-actu-gallery-prev:disabled,
.aa-actu-gallery-next:disabled {
  opacity: 0.35;
  cursor: default;
}

.aa-actu-gallery-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.aa-actu-gallery-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #c7cdd1;
  cursor: pointer;
  transition:
    width 0.3s ease,
    background 0.3s ease;
}

.aa-actu-gallery-dot.is-active {
  width: 25px;
  background: var(--actu-blue);
}


/* ==================================================
   5. VIDÉO
   ================================================== */

.aa-actu-video-section {
  padding: 50px 0;
}

.aa-actu-video-wrapper {
  position: relative;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  overflow: hidden;
  background: #111827;
  border-radius: 4px;
}

.aa-actu-video-wrapper iframe,
.aa-actu-video-wrapper video,
.aa-actu-video-wrapper embed,
.aa-actu-video-wrapper object {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.aa-actu-video-link {
  display: inline-flex;
  padding: 12px 22px;
  background: var(--actu-blue);
  color: #ffffff;
  text-decoration: none;
  border-radius: 3px;
}

.aa-actu-video-link:hover {
  background: #192e3d;
  color: #ffffff;
}


/* ==================================================
   6. RETOUR AUX ACTUALITÉS
   ================================================== */

.aa-actu-bottom {
  padding: 50px 0 65px;
  text-align: center;
}

.aa-actu-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 28px;
  background: var(--actu-blue);
  color: #ffffff;
  border: 1px solid var(--actu-blue);
  border-radius: 3px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.aa-actu-back-button:hover {
  background: #ffffff;
  color: var(--actu-blue);
  transform: translateY(-2px);
}


/* ==================================================
   7. ACCESSIBILITÉ
   ================================================== */

.aa-actu-single a:focus-visible,
.aa-actu-single button:focus-visible {
  outline: 2px solid var(--actu-blue);
  outline-offset: 4px;
}


/* ==================================================
   8. RESPONSIVE — TABLETTE
   ================================================== */

@media (max-width: 1024px) {

  .aa-actu-container {
    padding-inline: 25px;
  }

  .aa-actu-layout {
    gap: 30px;
  }

  .aa-actu-main {
    padding: 45px 0;
  }

  .aa-actu-infos-inner {
    padding: 22px;
  }

}


/* ==================================================
   9. RESPONSIVE — MOBILE
   ================================================== */

@media (max-width: 767px) {

  .aa-actu-container {
    padding-inline: 20px;
  }

  .aa-actu-hero {
    padding: 22px 0 35px;
  }

  .aa-actu-hero-inner {
    margin-top: 28px;
  }

  .aa-actu-category {
    margin-bottom: 12px;
    font-size: 0.72rem;
  }

  .aa-actu-title {
    margin-bottom: 15px;
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .aa-actu-hero-date {
    font-size: 0.95rem;
  }

  .aa-actu-hero-line {
    margin-top: 22px;
  }

  .aa-actu-main {
    padding: 30px 0;
  }

  .aa-actu-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .aa-actu-cover {
    margin-bottom: 25px;
  }

  .aa-actu-section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .aa-actu-description,
  .aa-actu-content {
    font-size: 1rem;
    line-height: 1.75;
  }

  .aa-actu-infos-inner {
    padding: 22px;
  }

  .aa-actu-infos-title {
    font-size: 1.2rem;
  }

  .aa-actu-gallery-section,
  .aa-actu-video-section {
    padding: 35px 0;
  }

  .aa-actu-gallery-slide {
    aspect-ratio: 4 / 3;
  }

  .aa-actu-gallery-controls {
    gap: 20px;
    padding-top: 18px;
  }

  .aa-actu-gallery-prev,
  .aa-actu-gallery-next {
    width: 40px;
    height: 40px;
  }

  .aa-actu-bottom {
    padding: 35px 0 45px;
  }

}


/* ==================================================
   10. TRÈS PETITS ÉCRANS
   ================================================== */

@media (max-width: 400px) {

  .aa-actu-container {
    padding-inline: 15px;
  }

  .aa-actu-infos-inner {
    padding: 18px;
  }

  .aa-actu-back-button {
    width: 100%;
  }

}


/* ==================================================
   11. RÉDUCTION DES ANIMATIONS
   ================================================== */

@media (prefers-reduced-motion: reduce) {

  .aa-actu-single *,
  .aa-actu-single *::before,
  .aa-actu-single *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

}