/* =========================================================
   GRID ARTICLES — 100% VW BASED (Référence 1920px)
========================================================= */

/* ✅ AJOUT: conteneur pour aligner intro + grid */
.wrap{
  width:90%;
  max-width:1800px;
  margin:0 auto;
}

/* ✅ AJOUT: intro suit le conteneur */
.intro{
  margin:0 0 2rem 0;
}

.intro__title{
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.6rem);
  color: #004080;
  line-height: 1.15;
  margin: 0 0 0.6rem;
}

.intro__text{
  font-size: clamp(0.9rem, 0.8rem + 0.3vw, 1.05rem);
  color: #555;
  line-height: 1.7;
  margin: 0;
}

.cards{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:1.771vw;
  padding-top:0.52vw;
}

.card{
  border:0;
  overflow:hidden;
  text-decoration:none;
  color:inherit;
  display:flex;
  flex-direction:column;
  border-radius:0.52vw;
}

.card__img{
  width:100%;
  aspect-ratio:16 / 9;
  background:#004080;
  background-size:cover;
  background-position:center;
  border-radius:0.52vw;
}


.card__body{
  background:#fff;
  padding:0.729vw;
  min-height:10.417vw;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.card__title{
  font-size:22px;
  font-weight:800;
  color:#004080;
  margin:6px 0 10px;
}

.card__teaser{
  color:#000;
  font-size:15px;
  line-height:1.35;
  font-weight:600;
  margin-bottom:10px;
}

.card__actions{
  display:flex;
  justify-content:flex-end;
  margin-top:14px;
}

.btn{
  background:#004080;
  color:#fff;
  text-decoration:none;
  font-weight:800;
  font-size:15px;
  padding:6px 10px;
  border-radius:10px;
}

/* =========================================================
   ARTICLE PAGE — DESIGN PROPRE + IMAGE 16/9
========================================================= */

.article-wrap{
  max-width:900px;
  width:90%;
  margin:1vw auto 2vw auto;
}

/* Rail commun */

.article-head,
.article-cover,
.article-content{
  width:85%;
  max-width:800px;
  margin-left:auto;
  margin-right:auto;
}

/* 🔥 SEULE MODIFICATION : TITRE ADAPTATIF */

.article-title{
  font-size:clamp(24px, 2.2vw, 20px);
  line-height:1.1;
  margin:0 0 20px 0;
  color:#004080;
}

/* IMAGE 16/9 */

.article-cover{
  aspect-ratio:16 / 9;
  overflow:hidden;
  border-radius:12px;
  margin-bottom:20px;
}

.article-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* TEXTE FIXE */

.article-content{
  font-size:17px;
  line-height:1.75;
  color:#111;
}

.article-content h2{
  font-size:24px;
  margin-top:30px;
  margin-bottom:14px;
  color:#004080;
}

.article-content p{
  margin-bottom:18px;
}

.article-content img{
  max-width:100%;
  border-radius:8px;
  margin:24px 0;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width:1000px){

  .cards{
    grid-template-columns:1fr;
    justify-items:center;
  }

  .card{
    width:90%;
  }

  /* ✅ FIX : cover de card proportionnel à la largeur en grid 1 */
  .card__img{
    height:auto;
    aspect-ratio:16 / 9;
    background-size:cover;
    background-position:center;
  }

  /* 🔒 On garde la structure desktop pour l'article */
  .article-wrap{
    width:90%;
    max-width:900px;
    margin:20px auto;
  }

  .article-head,
  .article-cover,
  .article-content{
    width:85%;
    max-width:800px;
  }
.intro{
    width:90%;
    margin:0 auto 2rem auto;
}

}
