/**
 * Single Actualité — Page article (actu_groupe + actu_marque)
 *
 * Layout : hero image-overlay + text (sharing/chapô) + contenu Gutenberg.
 * Structure Figma : 3 blocs enfants du container, gap 37px.
 * Mobile-first, breakpoints 768px (tablette) et 1024px (desktop).
 *
 * Classes : .lg-single-actu, .lg-single-actu__*
 *
 * @see views/single-actualite.twig
 * @since 1.0.0
 */

/* ============================================
   CONTENEUR PRINCIPAL
   ============================================ */

.lg-single-actu {
  display: flex;
  flex-direction: column;
  gap: 37px;
  padding: 80px 32px;
  background: #FFFFFF;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* ============================================
   HERO — Image + overlay + badges + titre + tags
   ============================================ */

.lg-single-actu__hero {
  position: relative;
  width: 100%;
  height: 397px;
  border-radius: 20px;
  overflow: hidden;
}

.lg-single-actu__hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lg-single-actu__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 0, 0, 1) 100%
  );
  pointer-events: none;
}

/* Badges haut : univers (gauche) + label (droite) */
.lg-single-actu__hero-top {
  position: absolute;
  top: 19px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 2;
}

.lg-single-actu__univers-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  background: #E52A19;
  border-radius: 10px;
  font-family: var(--ff-heading);
  font-size: 16px;
  font-weight: var(--fw-bold);
  color: #FFFFFF;
  text-transform: uppercase;
  white-space: nowrap;
}

.lg-single-actu__label-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(25px);
  border-radius: 2000px;
  font-family: var(--ff-heading);
  font-size: 16px;
  font-weight: var(--fw-bold);
  color: #FFFFFF;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Bas du hero : titre (gauche) + tags (droite) */
.lg-single-actu__hero-bottom {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Tags — slider horizontal sur mobile, au-dessus du titre */
.lg-single-actu__tags {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  order: -1;
}

.lg-single-actu__tags::-webkit-scrollbar {
  display: none;
}

.lg-single-actu__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 18px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid #BEBDBD;
  border-radius: 2000px;
  font-family: var(--ff-heading);
  font-size: 16px;
  font-weight: var(--fw-bold);
  color: #FFFFFF;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.lg-single-actu__title {
  font-family: var(--ff-heading);
  font-size: 20px;
  font-weight: var(--fw-bold);
  line-height: 26px;
  color: #FFFFFF;
  max-width: 230px;
  margin: 0;
}

/* ============================================
   TEXT — Sharing, premier paragraphe, séparateur
   ============================================ */

.lg-single-actu__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Sharing */
.lg-single-actu__sharing {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.lg-single-actu__share-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.lg-single-actu__share-label {
  font-family: var(--ff-heading);
  font-size: 20px;
  font-weight: var(--fw-bold);
  color: #141414;
  line-height: 31px;
}

.lg-single-actu__share-icons {
  display: flex;
  gap: 18px;
  align-items: center;
}

.lg-single-actu__share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  background: #141414;
  border-radius: 8px;
  color: #FFFFFF;
  text-decoration: none;
  transition: opacity 150ms ease;
}

.lg-single-actu__share-btn:hover {
  opacity: 0.7;
  text-decoration: none;
}

.lg-single-actu__share-btn svg {
  width: 20px;
  height: 20px;
}

.lg-single-actu__date {
  font-family: var(--ff-body);
  font-size: 24px;
  font-weight: 400;
  color: #141414;
  line-height: 31px;
}

/* Premier paragraphe (chapô) */
.lg-single-actu__chapo {
  font-family: var(--ff-heading);
  font-size: 24px;
  font-weight: var(--fw-bold);
  line-height: 34px;
  color: #141414;
  margin: 0;
}

/* Séparateur */
.lg-single-actu__separator {
  border: none;
  border-top: 2px solid #D9D9D9;
  margin: 0;
}

/* ============================================
   CONTENU GUTENBERG
   ============================================ */

.lg-single-actu__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.lg-single-actu__content h2 {
  font-family: var(--ff-heading);
  font-size: 32px;
  font-weight: var(--fw-bold);
  line-height: 40px;
  color: #141414;
  margin: 0;
}

.lg-single-actu__content h3 {
  font-family: var(--ff-heading);
  font-size: 26px;
  font-weight: var(--fw-bold);
  line-height: 34px;
  color: #141414;
  margin: 0;
}

.lg-single-actu__content h4 {
  font-family: var(--ff-heading);
  font-size: 22px;
  font-weight: var(--fw-bold);
  line-height: 30px;
  color: #141414;
  margin: 0;
}

.lg-single-actu__content p {
  font-family: var(--ff-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: #141414;
  margin: 0 0 18px;
}

.lg-single-actu__content p:last-child {
  margin-bottom: 0;
}

.lg-single-actu__content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.lg-single-actu__content blockquote {
  margin: 0;
  padding: 16px 24px;
  border-left: 4px solid var(--color-rouge-lg, #E52A19);
  font-family: var(--ff-body);
  font-size: 20px;
  font-style: italic;
  line-height: 1.6;
  color: #141414;
}

.lg-single-actu__content ul,
.lg-single-actu__content ol {
  font-family: var(--ff-body);
  font-size: 18px;
  line-height: 28px;
  color: #141414;
  padding-left: 1.5em;
  margin: 0;
}

.lg-single-actu__content li + li {
  margin-top: 8px;
}

/* ============================================
   BLOC #2 — Colonnes (core/columns)
   ============================================ */

.lg-single-actu__content .wp-block-columns {
  gap: 24px;
  margin-bottom: 0;
}

.lg-single-actu__content .wp-block-column {
  margin: 0;
}

/* ============================================
   BLOC #3 — Image pleine page (core/image)
   ============================================ */

.lg-single-actu__content .wp-block-image {
  margin: 0;
}

.lg-single-actu__content .wp-block-image img {
  border-radius: 40px;
  width: 100%;
  height: auto;
}

.lg-single-actu__content .wp-block-image figcaption {
  font-family: var(--ff-body);
  font-size: 14px;
  color: #6B6B6B;
  text-align: center;
  margin-top: 8px;
}

/* ============================================
   BLOC #5 / #6 — Media & Text (core/media-text)
   ============================================ */

.lg-single-actu__content .wp-block-media-text {
  gap: 24px;
  margin: 0;
}

.lg-single-actu__content .wp-block-media-text .wp-block-media-text__media img,
.lg-single-actu__content .wp-block-media-text .wp-block-media-text__media video {
  border-radius: 40px;
  height: 100%;
  object-fit: cover;
}

.lg-single-actu__content .wp-block-media-text .wp-block-media-text__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}

/* ============================================
   BLOC #7 — Video pleine page (core/video)
   ============================================ */

.lg-single-actu__content .wp-block-video {
  margin: 0;
}

.lg-single-actu__content .wp-block-video video {
  border-radius: 40px;
  width: 100%;
}

/* ============================================
   BLOC #7 — Embed video YouTube/Vimeo (core/embed)
   ============================================ */

.lg-single-actu__content .wp-block-embed {
  margin: 0;
}

.lg-single-actu__content .wp-block-embed .wp-block-embed__wrapper {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
}

.lg-single-actu__content .wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper::before {
  border-radius: 40px;
}

.lg-single-actu__content .wp-block-embed .wp-block-embed__wrapper iframe {
  width: 100%;
  display: block;
}

/* ============================================
   TABLETTE (>= 768px)
   ============================================ */

@media (min-width: 768px) {

  .lg-single-actu {
    padding: 80px 64px;
  }

  .lg-single-actu__hero-top {
    top: 29px;
    left: 44px;
    right: 44px;
  }

  .lg-single-actu__univers-badge {
    font-size: 24px;
  }

  .lg-single-actu__label-badge {
    padding: 12px 28px;
    font-size: 24px;
  }

  .lg-single-actu__hero-bottom {
    bottom: 30px;
    left: 44px;
    right: 44px;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .lg-single-actu__tags {
    flex-direction: column;
    align-items: flex-end;
    overflow-x: visible;
    order: 0;
  }

  .lg-single-actu__tag {
    font-size: 18px;
  }

  .lg-single-actu__title {
    font-size: 32px;
    line-height: 38px;
    max-width: 384px;
  }

  /* Media-text : padding content côté texte */
  .lg-single-actu__content .wp-block-media-text .wp-block-media-text__content {
    padding: 0 8px;
  }

  /* Sharing : row layout */
  .lg-single-actu__sharing {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .lg-single-actu__share-left {
    flex-direction: row;
    align-items: center;
  }
}

/* ============================================
   DESKTOP (>= 1024px)
   ============================================ */

@media (min-width: 1024px) {

  .lg-single-actu__tags {
    flex-direction: row;
  }

  .lg-single-actu__title {
    max-width: 539px;
  }
}

/* ============================================
   DESKTOP MEDIUM (1024px → 1700px)
   MacBook Air / laptops 13"–15" : alignement Figma 1280px.
   Hero seul — image 1152×356, badges + titre + tags à l'échelle.
   ============================================ */

@media (min-width: 1024px) and (max-width: 1700px) {

  /* Image hero — 397 → 356px */
  .lg-single-actu__hero {
    height: 356px;
  }

  /* Décale les badges plus près des bords (Figma : ~22 / 32) */
  .lg-single-actu__hero-top {
    top: 22px;
    left: 32px;
    right: 32px;
  }

  /* Badge univers — 24 → 20px */
  .lg-single-actu__univers-badge {
    font-size: 20px;
  }

  /* Badge label — 24/12-28 → 20/8-20 */
  .lg-single-actu__label-badge {
    padding: 8px 20px;
    font-size: 20px;
  }

  /* Bas du hero — bottom 30 (déjà), insets latéraux 44 → 32 */
  .lg-single-actu__hero-bottom {
    bottom: 30px;
    left: 32px;
    right: 32px;
  }

  /* Titre hero — 32/38 → 26/30, w 539 → 475 */
  .lg-single-actu__title {
    font-size: 26px;
    line-height: 30px;
    max-width: 475px;
  }
}
