/* Articles : la page d'index (articles.html) et les pages d'article (article-*.html).
   Même enveloppe que le reste du site (navigation et pied de page de landing.css) ; ici, seulement le contenu. */

.art { background: var(--surface-pearl, #f6f5fa); color: var(--ink, #1d1d1f); }
.art img { display: block; max-width: 100%; }

/* ------------------------------------------------------------------ Pastilles */
.art-puce {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #ece9fb;
  color: #42377a;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .01em;
}
.art-puce--alerte { background: #fdeef2; color: #b01f45; }
.art-puce--une { background: var(--brand-3, #42377a); color: #fff; }
.art-puce--grande { padding: 7px 16px; font-size: 13px; }

/* ------------------------------------------------------------------ Bandeau d'ouverture */
.art-hero {
  position: relative;
  z-index: 3;
  overflow: visible;
  padding: clamp(150px, 16vw, 210px) 24px clamp(88px, 9vw, 130px);
  background: var(--degrade-marque, linear-gradient(150deg, #42377a, #5e5398 42%, #6862ab));
  color: #fff;
  text-align: center;
}
.art-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 85% 0%, rgba(255, 255, 255, .16), transparent 70%),
    radial-gradient(50% 60% at 8% 100%, rgba(25, 20, 62, .4), transparent 70%);
  pointer-events: none;
}
.art-hero__in { position: relative; z-index: 1; max-width: 940px; margin: 0 auto; }
/* Page d'index : bord net, et la carte « À la une » remonte franchement dans le violet (elle passe au-dessus du bandeau ; pendant la saisie, le bandeau repasse devant pour que les suggestions de recherche ne soient pas masquées). */
.art-hero:not(.art-hero--article) { padding-bottom: clamp(120px, 12vw, 160px); }
.art-hero:not(.art-hero--article):focus-within { z-index: 5; }
.art-eyebrow {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}
.art-hero__titre {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 78px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.025em;
  color: #fff;
  text-wrap: balance;
}
.art-hero__lede {
  margin: 18px auto 0;
  max-width: 620px;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.45;
  color: rgba(255, 255, 255, .9);
  text-wrap: balance;
}

.art-recherche {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 660px;
  height: 62px;
  margin: 34px auto 0;
  padding: 0 22px;
  border-radius: 18px;
  background: #fff;
  color: #6b6788;
  box-shadow: 0 18px 40px rgba(25, 20, 62, .25);
}
.art-recherche:focus-within { outline: 3px solid rgba(255, 255, 255, .6); outline-offset: 2px; }
.art-recherche svg { flex: none; }
.art-recherche input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: #1d1d1f;
}
.art-recherche input:focus, .art-recherche input:focus-visible { outline: 0; box-shadow: none; }
.art-recherche input::placeholder { color: #8b87a0; }

/* Suggestions sous la barre de recherche */
.art-sugg {
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  max-height: min(70vh, 560px);
  overflow-y: auto;
  padding: 8px;
  border-radius: 18px;
  background: #fff;
  color: var(--ink, #1d1d1f);
  text-align: left;
  box-shadow: 0 24px 60px rgba(25, 20, 62, .32), 0 0 0 1px rgba(66, 55, 122, .1);
}
.art-sugg[hidden] { display: none; }
.art-sugg__sous { margin: 0; padding: 12px 12px 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6b6788; }
.art-sugg__aucun { margin: 0; padding: 12px 12px 4px; font-size: 15px; line-height: 1.45; color: #4a4668; }
.art-sugg__item {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}
.art-sugg__item:hover, .art-sugg__item.est-actif, .art-sugg__tous.est-actif, .art-sugg__puce.est-actif { background: #f1effb; }
.art-sugg__theme { font-size: 12px; font-weight: 600; color: #5e5398; }
.art-sugg__nom { font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--brand-1, #19143e); }
.art-sugg__extrait { font-size: 14px; line-height: 1.45; color: #5a5675; }
.art-sugg mark { padding: 0 1px; border-radius: 3px; background: #e4defb; color: inherit; }
.art-sugg__tous { display: block; width: 100%; margin: 2px 0; padding: 11px 12px; border: 0; border-radius: 12px; background: transparent; font: inherit; font-size: 14.5px; font-weight: 600; color: #5e5398; text-align: left; cursor: pointer; }
.art-sugg__tous:hover { background: #f1effb; }
.art-sugg__puces { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 12px 12px; }
.art-sugg__puce { padding: 8px 14px; border: 1px solid #d9d4f1; border-radius: 999px; background: #fff; font: inherit; font-size: 14px; font-weight: 500; color: #42377a; cursor: pointer; }
.art-sugg__puce:hover { background: #f1effb; }
.art-sugg__puce:active { transform: scale(.97); }

.art-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.art-chip {
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.art-chip:hover { background: rgba(255, 255, 255, .18); }
.art-chip:active { transform: scale(.97); }
.art-chip:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.art-chip--actif { background: #fff; color: var(--brand-3, #42377a); border-color: #fff; }

/* ------------------------------------------------------------------ À la une */
.art-une { position: relative; z-index: 4; max-width: 1240px; margin: calc(-1 * clamp(60px, 7vw, 100px)) auto 0; padding: 0 24px; }
.art-une__carte {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: 30px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 24px 60px rgba(66, 55, 122, .18), 0 0 0 1px rgba(66, 55, 122, .08);
  transition: transform .3s ease, box-shadow .3s ease;
}
.art-une__carte:hover { transform: translateY(-3px); box-shadow: 0 30px 70px rgba(66, 55, 122, .24), 0 0 0 1px rgba(66, 55, 122, .1); text-decoration: none; }
.art-une__image { display: block; min-height: 360px; }
.art-une__image img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; }
.art-une__corps { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(28px, 4vw, 56px); }
.art-une__titre {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--brand-1, #19143e);
  text-wrap: balance;
}
.art-une__resume { font-size: 16.5px; line-height: 1.6; color: #4a4655; }
.art-une__pied { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: #6b6788; }
.art-une__pied i { font-style: normal; opacity: .6; }

/* ------------------------------------------------------------------ Cartes */
.art-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 26px; }
.art-grille--trois { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.art-carte {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(66, 55, 122, .1), 0 0 0 1px rgba(66, 55, 122, .07);
  transition: transform .3s ease, box-shadow .3s ease;
}
.art-carte:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(66, 55, 122, .18), 0 0 0 1px rgba(66, 55, 122, .1); }
.art-carte--alerte::before { content: ""; position: absolute; z-index: 2; inset: 0 0 auto 0; height: 5px; background: #d2264f; }
.art-carte[hidden] { display: none; }
.art-carte__lien { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.art-carte__lien:hover { text-decoration: none; }
.art-carte__lien:focus-visible { outline: 3px solid var(--action-focus, #5e5398); outline-offset: -3px; border-radius: 24px; }
.art-carte__image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #e9e6f5; }
.art-carte__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.art-carte:hover .art-carte__image img { transform: scale(1.04); }
.art-carte__corps { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px 22px 24px; }
.art-carte__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: #6b6788; }
.art-carte__titre { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: var(--brand-1, #19143e); text-wrap: balance; }
.art-carte__resume { font-size: 14.5px; line-height: 1.55; color: #5a5668; }
.art-carte__suite { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: var(--action-focus, #5e5398); }
.art-carte__suite svg { transition: transform .25s ease; }
.art-carte:hover .art-carte__suite svg, .art-une__carte:hover .art-carte__suite svg { transform: translateX(4px); }

/* ------------------------------------------------------------------ Sections de l'index */
.art-alertes, .art-tous, .art-liees { max-width: 1240px; margin: 0 auto; padding: 72px 24px 0; }
.art-alertes h2, .art-tous h2, .art-liees h2 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--brand-1, #19143e);
}
.art-alertes__lede { margin: 8px 0 28px; max-width: 640px; font-size: 17px; line-height: 1.55; color: #5a5668; }
.art-tous__compte { margin: 8px 0 28px; font-size: 14px; color: #6b6788; }
.art-liees h2 { margin-bottom: 28px; }
.art-vide { padding: 40px 0; text-align: center; font-size: 16px; color: #6b6788; }

/* ------------------------------------------------------------------ Invitation à essayer */
.art-cta { padding: 88px 24px 96px; }
.art-cta__in {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 24px;
  border-radius: 32px;
  background: var(--degrade-marque, linear-gradient(150deg, #42377a, #5e5398 42%, #6862ab));
  color: #fff;
  text-align: center;
}
.art-cta h2 { margin: 0; font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 46px); font-weight: 600; letter-spacing: -.02em; color: #fff; }
.art-cta p { margin: 12px 0 26px; font-size: 17px; color: rgba(255, 255, 255, .9); }
.art-cta .btn { background: #fff; color: var(--brand-3, #42377a); }
.art-cta .btn:hover { background: #ece9fb; color: var(--brand-3, #42377a); }

/* ------------------------------------------------------------------ Page d'un article */
/* z-index 1 (et non 3 comme le bandeau de l'index) : la photo, au-dessus, doit chevaucher le bandeau violet au lieu de passer dessous.
   Bandeau moins haut qu'avant : le haut de page n'est plus un grand vide violet, le texte arrive plus vite. */
.art-hero--article { z-index: 1; padding-top: clamp(120px, 12vw, 165px); padding-bottom: clamp(100px, 10vw, 140px); }
.art-retour {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
}
.art-retour:hover { color: #fff; text-decoration: underline; }
.art-hero__puces { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 18px; }
.art-hero--article .art-puce { background: rgba(255, 255, 255, .18); color: #fff; }
.art-hero--article .art-puce--alerte { background: #fdeef2; color: #b01f45; }
.art-hero--article .art-hero__titre { font-size: clamp(34px, 5vw, 60px); line-height: 1.1; margin: 0; }
.art-hero__meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 22px 0 0; font-size: 15px; color: rgba(255, 255, 255, .85); }
.art-hero__meta i { font-style: normal; opacity: .6; }

.art-grande { position: relative; z-index: 2; max-width: 1040px; margin: calc(-1 * clamp(70px, 8vw, 110px)) auto 0; padding: 0 24px; }
/* height: auto : sans cela, l'attribut height="900" de la balise impose 900 px de haut, annule le format 16/9 et ne laisse qu'un gros plan. */
.art-grande img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 30%; border-radius: 30px; box-shadow: 0 30px 70px rgba(66, 55, 122, .25); background: #e9e6f5; }

.art-corps { max-width: 780px; margin: 0 auto; padding: 56px 24px 0; }
.art-chapeau { margin: 0 0 28px; font-size: clamp(19px, 2vw, 22px); line-height: 1.55; font-weight: 500; color: var(--brand-1, #19143e); text-wrap: pretty; }
.art-sommaire { margin: 0 0 40px; padding: 22px 26px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(66, 55, 122, .1); }
.art-sommaire__titre { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #6b6788; }
.art-sommaire ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.art-sommaire a { font-size: 16px; line-height: 1.45; color: var(--action-focus, #5e5398); text-decoration: none; }
.art-sommaire a:hover { text-decoration: underline; }

.art-texte { font-size: 18px; line-height: 1.75; color: #2a2733; }
.art-texte p { margin: 0 0 20px; text-wrap: pretty; }
.art-texte h2 {
  margin: 48px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(25px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--brand-1, #19143e);
  scroll-margin-top: 110px;
  text-wrap: balance;
}
.art-texte ul, .art-texte ol { margin: 0 0 24px; padding-left: 26px; display: grid; gap: 12px; }
.art-texte li { padding-left: 4px; text-wrap: pretty; }
.art-texte li::marker { color: var(--action-focus, #5e5398); font-weight: 600; }
.art-texte a { color: var(--action-focus, #5e5398); text-decoration: underline; text-underline-offset: 3px; }
.art-texte strong { font-weight: 600; color: #1d1a2b; }

.art-retenir { margin: 40px 0; padding: 26px 28px; border-radius: 22px; background: #efecfb; }
.art-retenir__titre { margin: 0 0 12px !important; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-3, #42377a); }
.art-retenir ul { margin: 0; gap: 8px; }
.art-retenir li { font-size: 17px; line-height: 1.55; }

.art-produit {
  margin: 44px 0;
  padding: 32px clamp(24px, 4vw, 38px);
  border-radius: 26px;
  background: var(--degrade-marque, linear-gradient(150deg, #42377a, #5e5398 42%, #6862ab));
  color: #fff;
}
.art-produit__titre { margin: 0 0 10px !important; font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.art-produit p { color: rgba(255, 255, 255, .92); font-size: 17px; line-height: 1.65; }
.art-produit .btn { margin-top: 6px; background: #fff; color: var(--brand-3, #42377a); text-decoration: none; }
.art-produit .btn:hover { background: #ece9fb; color: var(--brand-3, #42377a); }

.art-sources { margin-top: 52px; padding-top: 28px; border-top: 1px solid rgba(66, 55, 122, .18); }
.art-sources h2 { margin: 0 0 6px; font-size: 22px; }
.art-sources p { margin: 0 0 14px; font-size: 15.5px; color: #5a5668; }
.art-sources ul { margin: 0; padding-left: 22px; gap: 8px; font-size: 16px; }
.art-avertissement { margin: 28px 0 0 !important; font-size: 14px !important; line-height: 1.6 !important; color: #6b6788; }

/* Questions fréquentes : des blocs repliables */
.art-faq { margin: 8px 0 24px; display: grid; gap: 10px; }
.art-faq details { border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(66, 55, 122, .12); }
.art-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--brand-1, #19143e); cursor: pointer; list-style: none; }
.art-faq summary::-webkit-details-marker { display: none; }
.art-faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid #5e5398; border-bottom: 2px solid #5e5398; transform: rotate(45deg) translateY(-2px); transition: transform .25s ease; }
.art-faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.art-faq summary:focus-visible { outline: 3px solid var(--action-focus, #5e5398); outline-offset: 2px; border-radius: 16px; }
.art-faq details p { margin: 0; padding: 0 20px 18px; font-size: 16.5px; line-height: 1.65; }

/* ------------------------------------------------------------------ Écrans étroits */
@media (max-width: 900px) {
  .art-une { padding: 0 16px; }
  .art-une__carte { grid-template-columns: 1fr; }
  .art-une__image { min-height: 0; aspect-ratio: 3 / 2; }
  .art-alertes, .art-tous, .art-liees { padding: 56px 16px 0; }
  .art-grande { padding: 0 16px; }
  .art-grande img { border-radius: 22px; aspect-ratio: 3 / 2; }
  .art-corps { padding: 40px 18px 0; }
  .art-texte { font-size: 17px; }
}
@media (max-width: 640px) {
  .art-hero { padding-left: 18px; padding-right: 18px; }
  .art-recherche { height: 56px; padding: 0 16px; }
  .art-recherche input { font-size: 15px; }
  .art-grille { gap: 20px; }
  .art-cta { padding: 64px 16px 72px; }
  .art-sommaire { padding: 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .art-carte, .art-carte__image img, .art-une__carte, .art-chip, .art-carte__suite svg { transition: none; }
  .art-carte:hover, .art-une__carte:hover { transform: none; }
  .art-carte:hover .art-carte__image img { transform: none; }
}
