/* Wrapper centré */
.accueil-wrapper {
  max-width: 80vw;
  margin: 0 auto;
}
.accueil-intro {
  text-align: center;
  margin-bottom: 40px;
    
}
.categories-menu {

  display: flex;
  flex-direction: row;
  justify-content: center;
  border-top:solid 1px var(--ast-global-color-3);
  border-bottom:solid 1px var(--ast-global-color-3);
  text-align:center; 
  margin-bottom: 50px;
  min-height: 80px;
  align-items: center;
    
}
.categories-menu a {
  display: inline-block;
  margin: 5px 10px;
  padding: 8px 15px;
  color: #000;
  font-weight: 500;
  transition: color 0.3s;
  font-family: 'LEXEND';
}
.categories-menu a:hover {
  color: var(--ast-global-color-8);
}

/* Section 1 : top article + secondaires */
.top-section {
    display: flex;
    gap: 20px;
}
.article-content-first{
    position: absolute;
    bottom: 40px;
    left: 25px;
}
.article-image {
  height: 100%;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.second-article .article-image {
  height: 200px;
}
.top-article {
  position: relative;
  flex-grow: 1;
}
.article-title-first a {
  color: white;
  text-decoration: none;
  font-size: 30px;
}
.secondary-articles-vertical {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.secondary-article {
  display: flex;
  gap: 20px;
}
.secondary-article > a {
  display: flex;
  position: relative;
  width: 50%;
}
.secondary-article .article-content{
  padding: 20px 0;
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.article-title a {
  color: black;
  font-weight: bold;
  font-size: 20px;
}

/* Section 2 : 3 articles */
.second-section {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  justify-content: space-between;
  margin-bottom: 80px;
  width: 100%;
}
.second-section .article-image {
  padding-bottom: calc(1 * 100%);
}
.second-article {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 250px;
  background: white;
  overflow: hidden;
}
.second-article .article-image {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  height: 100%;
}
.second-article .article-image::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  background: linear-gradient(135deg, var(--ast-global-color-0) 0%, var(--ast-global-color-1) 31%, var(--ast-global-color-8) 100%);
  opacity: 0;
  transition: 0.4s ease-in-out;
  z-index: 1;
}
.second-article:hover .article-image::before {
  opacity: 0.7;
}

/* Catégories encadrées rouge */
.article-category { 
  padding: 3px 6px;
  background-color: var(--ast-global-color-8);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 35px;
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.second-wrapper {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-grow: 2;
}

/* conteneur des 2 premiers articles */
.double-container {
  display: flex;
  gap: 20px;
  width: calc(66.666% - 10px);
}

/* conteneur du 3e article */
.single-container {
  width: calc(33.333% - 10px);
  min-width: 0;
  display: flex;
  align-items: stretch;
}

/* style des articles */
.second-article .article-content {
  padding: 0 30px 12px 0;
  overflow: hidden;
}

/* Titres alignés à gauche */
.second-article .article-title,
.top-article .article-title-first {
  text-align: left;
}

h3.article-title {
  font-size: 23px;
  line-height: 1.2em;
  margin: 5px 0 0 0;
}
.article-date {
  color: #8C8C8C;
  font-size: 13px;
  font-family: 'Manrope';
  font-weight: 400;
}
.article-content-first .article-date {
  color: #fff;
}
.second-section .article-date {
  color: #3d3d3d;
}
.second-section h3 {
  font-size: 16px;
}
.second-section .article-category {
  display: block;
  background-color: transparent;
  color: var(--ast-global-color-8);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  padding: 0;
}
.cta {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  margin: 25px 0;
  justify-content: stretch;
}
span.separator {
  direction: ltr;
  display: flex;
  margin: 0;
  border-block-start: 1px solid var(--ast-global-color-3);
  flex-grow: 1;
}
.btn {
  display: flex;
  flex-direction: row;
  gap: 10px;
  font-weight: 500;
  color: var(--ast-global-color-8);
  font-size: 14px;
  font-family: 'LEXEND';
}
.btn span {
  font-size: 14px;
  fill: var(--ast-global-color-8);
  color: var(--ast-global-color-8);
  align-items: center;
  display: flex;
}
.btn span svg {
  height: 1em;
  width: 1em;
}
nav {
  font-family: 'LEXEND';
}

/* ===========================
   📱 Responsive Design
=========================== */

/* Tablette */
@media (max-width: 1024px) {

  .categories-menu {
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .top-section {
    flex-direction: column;
  }

  .top-section .article-image {
    min-height: 200px;
  }

  .secondary-articles-vertical {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .secondary-article {
    flex-direction: column;
    width: 48%;
  }

  .secondary-article > a,
  .secondary-article .article-content {
    width: 100%;
  }

  .article-title-first a {
    font-size: 24px;
  }

  .second-section {
    flex-wrap: wrap;
  }

  .double-container,
  .single-container {
    width: 100%;
  }

  .second-article {
    width: 48%;
  }
}

/* Mobile */
@media (max-width: 767px) {

  .accueil-wrapper {
    max-width: 95vw;
  }

  .categories-menu a {
    font-size: 14px;
    padding: 6px 10px;
  }

  .top-section {
    flex-direction: column;
    gap: 40px;
  }
  .top-section .article-image {
    min-height: 200px;
  }

  .top-section .article-content-first {
    bottom: 0;
  }

  .top-article,
  .secondary-article,
  .second-article {
    width: 100%;
    border-bottom: 1px solid #7f7f7f;
  }

  .secondary-article {
    flex-direction: column;
  }

  .secondary-article .article-content {
    padding: 15px 0;
  }

  .article-title-first a {
    font-size: 20px;
  }

  .article-title a {
    font-size: 18px;
  }

  .second-section {
    flex-direction: column;
    gap: 20px;
  }

  .second-article {
    width: 100%;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    font-size: 13px;
  }

  .article-category {
    margin-bottom: 15px;
    font-size: 10px;
  }
}
