/*======================
  Import global styles
======================*/
@import url('global.css');
@import url('header.css');
@import url('footer.css');

/*======================
  Article specific styles
======================*/

/* Styles pour les articles */
.article {
  min-height: 100vh;
  padding-top: 92px;
}

/* Bande haute (crème) */
.article__topbar {
  background-color: var(--color-background-2);
  padding: 20px 0;
}

/* Corps (jaune) */
.article__body {
  background-color: var(--jaune);
}

/* Back Button */
.article__back {
  padding: 25px 0 0 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.back-link {
  background: linear-gradient(135deg, #2D5A3D 0%, #1E3A28 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
  margin-left: -300px;
  margin-right: auto;
}

/* Au survol, on "réserve" de l'espace à gauche (miroir du bouton Lire) */
.back-link:hover {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  padding-left: 50px;
}

.back-link__arrow {
  opacity: 0;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  transition: all 0.3s ease;
  transform: rotate(180deg) translateX(-20px); /* glisse depuis l’extérieur gauche */
  filter: brightness(0) invert(1);
  position: absolute;
  left: 16px;
}

.back-link:hover .back-link__arrow {
  opacity: 1;
  transform: rotate(180deg) translateX(0);
}



/* Article container */
.article__container {
  max-width: 100%;
  margin: 0 50px;
  padding: 40px;
}

/* Article Header */
.article__header {
  margin-bottom: 40px;
}

.article__title {
  font-size: 52px;
  font-weight: 900;
  color: var(--texte-noir);
  margin-bottom: 15px;
  line-height: 1.2;
  padding-top: 20px;
}

.article__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: var(--texte-noir);
  margin-bottom: 40px;
}

.article__reading-time, .article__author, .article__separator {
  font-size: 26px;
  font-weight: 600;
  color: var(--texte-noir);
}

.article__reading-time i {
  font-size: 26px;
  font-weight: 900;
  color: var(--texte-noir);
  margin-right: 10px;
}

/* Featured Image */
.article__image {
  margin-bottom: 40px;
}

.article__image-placeholder {
  width: 100%;
  height: 600px;
  background-color: transparent;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.article__image-placeholder img,
.article__image--main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  transition: all 0.3s ease;
}

/* Mode intelligent : si l'image est plus petite que le conteneur, utiliser contain */
.article__image-placeholder img[data-fit="smart"],
.article__image--main[data-fit="smart"] {
  object-fit: contain;
}

.article__image-placeholder::before {
  content: "";
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}


/* Image Column - right side */
.article__image--secondary {
  flex-shrink: 0;
  width: 19%;
  height: auto;
  margin-left: -100px;
  margin-top: 180px;
}

.article__image-placeholder--small {
  width: 170%;
  height: auto;
  background: transparent;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-left: -220px;
  overflow: hidden;
}

.article__image-placeholder--small img,
.article__image--secondary-img {
  width: 100%;
  /* height: 100%; */
  object-fit: cover;
  border-radius: 12px;
  transition: all 0.3s ease;
}

/* Mode intelligent : si l'image est plus petite que le conteneur, utiliser contain */
.article__image-placeholder--small img[data-fit="smart"],
.article__image--secondary-img[data-fit="smart"] {
  object-fit: contain;
}

.article__image-placeholder--small::before {
  content: "";
  color: white;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}


/* Article Content */
.article__content {
  margin-bottom: 60px;
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* Text Column - left side */
.article__text-column {
  flex: 1;
  max-width: 90%;
}

.article__text-column p {
  font-family: 'inter', sans-serif;
  font-size: 18px;
  font-weight: 500;
  max-width: 80%;
  line-height: 1.6;
  color: var(--texte-noir);
  margin-bottom: 20px;
  text-align: left;
}

/* Styles pour les titres et listes dans les articles */
.article__text-column h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--texte-noir);
  margin: 30px 0 20px 0;
  padding-top: 20px;
  /* border-top: 2px solid var(--color-background-2); */
  max-width: 60%;
  white-space: nowrap;
}

.article__text-column h4 {
  font-family: 'inter', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--texte-noir);
  margin: 25px 0 15px 0;
  max-width: 60%;
}

.article__text-column ul,
.article__text-column ol {
  font-family: 'inter', sans-serif;
  margin: 15px 0 20px 40px;
  max-width: 60%;
}

.article__text-column li {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--texte-noir);
  margin-bottom: 10px;
}

.article__text-column strong {
  font-family: 'inter', sans-serif;
  color: var(--texte-noir);
  font-weight: 600;
}

/* Section sources */
.article__sources {
  padding: 25px;
  border-radius: 15px;
  margin-top: 30px;
  margin-right: 30px;
  border-left: 4px solid var(--vert-texte);
  max-width: 100%;
}

.article__sources h4 {
  margin-top: 0;
  color: var(--vert-texte);
  font-family: 'inter', sans-serif;
  font-size: 20px;
  font-weight: 600;
}

.article__sources ul {
  margin: 15px 0 0 0;
  list-style: none;
}

.article__sources li {
  margin-bottom: 12px;
  font-family: 'inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}

.article__sources li::before {
  content: "•";
  color: var(--vert-texte);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.article__text-column p,
.article__text-column ul,
.article__text-column ol,
.article__text-column li,
.article__sources li,
.article__sources ul {
  max-width: 75%;
  text-align: left;
  word-wrap: break-word;
}


/* Navigation Buttons */
.article__navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-button {
  color: #999;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.nav-button:hover {
  color: var(--vert-texte);
  border-color: var(--vert-texte);
  background-color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.nav-button--prev {
  margin-right: auto;
}

  .nav-button--next {
    margin-left: auto;
}

  /* Social Icons Styles */
  .footer__social--list a {
    margin: 0 8px;
    transition: all 0.3s ease;
  }

  .footer__social--list a:hover {
    color: var(--vert-texte) !important;
    transform: translateY(-2px);
  }
