/* ==========================================================================
   IFCIA - BLOG "Implanto Mag" (style STANDARD du site, pas cycle)
   Figma : 154-7035 (listing) + 154-6747 (article)
   Charge sur : home, single post, category, tag, author, date, search
   ET dans l'editeur de blocs (add_editor_style) pour les variantes de blocs.
   Portee : tout est scope sous .mag-*, .article-*, .entry-content ou
   .is-style-ifcia-* afin de ne jamais fuir vers le reste du site.
   Couleurs de categorie (accent / fond) :
     Techniques    -> #8b5cf6 / #f5f3ff
     Cas cliniques -> #10b981 / #ecfdf5
     Conseils      -> #f59e0b / #fffbeb
     Actualites    -> #3b82f6 / #eff6ff
     Interviews    -> #e91e8c / #fdf2f8
   ========================================================================== */

/* ==========================================================================
   1. LISTING - HERO
   ========================================================================== */

.mag-hero {
  text-align: center;
  padding: 72px 0 40px;
  background: var(--background, #f9fafb);
}

.mag-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mag-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--main, #e91e8c);
  background: #fdf2f8;
  border: 1px solid rgba(233, 30, 140, .2);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.mag-hero__badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mag-hero__title {
  font-family: var(--font-sora, 'Sora', system-ui, sans-serif);
  font-weight: 800;
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--base, #111827);
  margin: 0 0 20px;
}

.mag-hero__sub {
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.6;
  color: var(--contrast, #6b7280);
  max-width: 560px;
  margin: 0 auto;
}

/* ==========================================================================
   2. LISTING - FILTRE (categories)
   ========================================================================== */

.mag-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 8px 0 48px;
  background: var(--background, #f9fafb);
}

.mag-filter__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--base, #111827);
  background: #fff;
  border: 1px solid var(--card-border, #f3f4f6);
  padding: 9px 18px;
  border-radius: 999px;
  transition: var(--transition, .18s ease);
  white-space: nowrap;
}

.mag-filter__item:hover {
  border-color: var(--contrast-3, #d1d5db);
  transform: translateY(-1px);
}

.mag-filter__item.is-active {
  background: var(--main, #e91e8c);
  border-color: var(--main, #e91e8c);
  color: #fff;
}

.mag-filter__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  border-radius: 999px;
  color: var(--contrast, #6b7280);
  background: var(--background-alt, #f3f4f6);
}

.mag-filter__item.is-active .mag-filter__count {
  color: #fff;
  background: rgba(255, 255, 255, .22);
}

/* ==========================================================================
   3. LISTING - A LA UNE (featured : 1 grande carte + 3 mini)
   ========================================================================== */

.mag-featured {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  padding-bottom: 64px;
}

/* --- Grande carte a la une --- */
.mag-feature {
  position: relative;
  display: block;
  border-radius: 24px;
  overflow: hidden;
  min-height: 560px;
  background: var(--base, #111827);
  isolation: isolate;
}

.mag-feature__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.mag-feature:hover .mag-feature__img {
  transform: scale(1.04);
}

/* Repli si pas d'image : degrade magenta -> violet */
.mag-feature--noimg {
  background: linear-gradient(135deg, var(--main, #e91e8c) 0%, var(--violet, #8b5cf6) 100%);
}

.mag-feature__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  padding: 40px;
  background: linear-gradient(to top, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .35) 40%, transparent 60%);
}

.mag-feature__badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #fff;
  background: var(--main, #e91e8c);
  padding: 6px 12px;
  border-radius: 999px;
}

.mag-feature__title {
  font-family: var(--font-sora, 'Sora', system-ui, sans-serif);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: #fff;
  margin: 0;
}

.mag-feature__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: 14px;
  color: rgba(255, 255, 255, .7);
}

.mag-feature__meta img,
.mag-feature__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.mag-feature__meta strong {
  font-weight: 600;
  color: #fff;
}

.mag-feature__meta .mag-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  flex-shrink: 0;
}

.mag-feature__meta svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* --- Colonne des 3 mini cartes --- */
.mag-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mag-mini {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--card-border, #f3f4f6);
  border-radius: 20px;
  padding: 21px;
  transition: var(--transition, .18s ease);
}

.mag-mini:hover {
  border-color: var(--contrast-3, #d1d5db);
  box-shadow: var(--shadow, 0 1px 2px rgba(17,24,39,.04), 0 12px 32px rgba(17,24,39,.06));
  transform: translateY(-2px);
}

.mag-mini__img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--background-alt, #f3f4f6);
}

.mag-mini--noimg .mag-mini__img {
  background: linear-gradient(135deg, var(--main, #e91e8c) 0%, var(--violet, #8b5cf6) 100%);
}

.mag-mini__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.mag-mini__cat {
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--main, #e91e8c);
}

.mag-mini__title {
  font-family: var(--font-sora, 'Sora', system-ui, sans-serif);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  color: var(--base, #111827);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mag-mini__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: 12px;
  color: var(--contrast-2, #9ca3af);
}

.mag-mini__meta svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* ==========================================================================
   4. LISTING - "TOUS LES ARTICLES" (en-tete + tri + grille)
   ========================================================================== */

.mag-grid-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.mag-grid-head__title {
  font-family: var(--font-sora, 'Sora', system-ui, sans-serif);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -.01em;
  color: var(--base, #111827);
  margin: 0;
}

.mag-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--card-border, #f3f4f6);
  border-radius: 999px;
  padding: 9px 16px;
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--contrast, #6b7280);
}

.mag-sort select {
  border: none;
  background: transparent;
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--base, #111827);
  cursor: pointer;
  padding-right: 2px;
}

.mag-sort svg {
  width: 16px;
  height: 16px;
  color: var(--contrast-2, #9ca3af);
  flex-shrink: 0;
}

/* --- Grille de cartes --- */
.mag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.mag-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--card-border, #f3f4f6);
  border-radius: 20px;
  overflow: hidden;
  transition: transform var(--transition, .18s ease), box-shadow var(--transition, .18s ease), border-color var(--transition, .18s ease);
}

.mag-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow, 0 1px 2px rgba(17,24,39,.04), 0 12px 32px rgba(17,24,39,.06));
  border-color: var(--contrast-3, #d1d5db);
}

.mag-card__media {
  position: relative;
  overflow: hidden;
}

.mag-card__media img {
  width: 100%;
  height: 235px;
  object-fit: cover;
  transition: transform .5s ease;
}

.mag-card:hover .mag-card__media img {
  transform: scale(1.05);
}

/* Repli si pas d'image */
.mag-card__media--noimg {
  height: 235px;
  background: linear-gradient(135deg, var(--main, #e91e8c) 0%, var(--violet, #8b5cf6) 100%);
}

.mag-card__cat {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 6px 12px;
  border-radius: 999px;
  /* accent + fond definis par variable inline / classe couleur */
  color: var(--main, #e91e8c);
  background: #fdf2f8;
  backdrop-filter: blur(2px);
}

.mag-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  flex: 1;
}

.mag-card__title {
  font-family: var(--font-sora, 'Sora', system-ui, sans-serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: var(--base, #111827);
  margin: 0;
}

.mag-card__excerpt {
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: 14px;
  line-height: 1.6;
  color: var(--contrast, #6b7280);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mag-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  margin-top: auto;
}

.mag-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mag-card__author img,
.mag-card__author .mag-avatar {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
}

/* ==========================================================================
   MULTI-AUTEURS : avatars empiles (chevauchants) + pastille "+N" + chip noms
   ========================================================================== */
.mag-authors__avatars {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
/* Chevauchement + anneau blanc pour separer les vignettes. */
.mag-authors__avatars > * {
  box-shadow: 0 0 0 2px var(--base-2, #fff);
}
.mag-authors__avatars > * + * {
  margin-left: -10px;
}
/* Pastille "+N" (au-dela du nombre d'avatars affiches). */
.mag-authors__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--main, #e91e8c);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
}
/* La pastille prend la meme taille que les avatars du contexte (carte 36 / byline 56). */
.mag-card__author .mag-authors__more { width: 36px; height: 36px; border-radius: 18px; }
.article-byline__author .mag-authors__more { width: 56px; height: 56px; border-radius: 50%; font-size: 14px; }
.article-byline__author .mag-authors__avatars > * + * { margin-left: -14px; }

/* Noms multiples : separateur "et" et chip "+N" cote texte. */
.mag-authors__sep { color: var(--contrast, #6b7280); font-weight: 400; }
.mag-authors__chip {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 9px;
  background: var(--background-alt, #f3f4f6);
  color: var(--base, #111827);
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

.mag-card__author-name {
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--base, #111827);
  line-height: 1.3;
}

.mag-card__author-date {
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: 12px;
  color: var(--contrast-2, #9ca3af);
  line-height: 1.3;
}

.mag-card__time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: 12px;
  color: var(--contrast-2, #9ca3af);
  flex-shrink: 0;
}

.mag-card__time svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* --- Variante SOMBRE (articles similaires sur fond fonce) --- */
.mag-card--dark {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .1);
}

.mag-card--dark:hover {
  border-color: rgba(255, 255, 255, .2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}

.mag-card--dark .mag-card__title {
  color: #fff;
}

.mag-card--dark .mag-card__excerpt {
  color: rgba(255, 255, 255, .6);
}

.mag-card--dark .mag-card__author-name {
  color: #fff;
}

.mag-card--dark .mag-card__author-date,
.mag-card--dark .mag-card__time {
  color: rgba(255, 255, 255, .5);
}

/* ==========================================================================
   5. LISTING - NEWSLETTER (section sombre)
   ========================================================================== */

.mag-newsletter {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, #111827 0%, #1a1a2e 100%);
}

.mag-newsletter::before,
.mag-newsletter::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  pointer-events: none;
}

.mag-newsletter::before {
  top: -160px;
  left: -80px;
  background: radial-gradient(circle, rgba(233, 30, 140, .55) 0%, transparent 70%);
}

.mag-newsletter::after {
  bottom: -180px;
  right: -80px;
  background: radial-gradient(circle, rgba(139, 92, 246, .5) 0%, transparent 70%);
}

.mag-newsletter .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mag-newsletter__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--main, #e91e8c) 0%, var(--violet, #8b5cf6) 100%);
  margin-bottom: 24px;
  box-shadow: 0 12px 32px rgba(233, 30, 140, .35);
}

.mag-newsletter__icon svg {
  width: 32px;
  height: 32px;
  color: #fff;
}

.mag-newsletter__title {
  font-family: var(--font-sora, 'Sora', system-ui, sans-serif);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 36px);
  color: #fff;
  margin: 0 0 12px;
}

.mag-newsletter__sub {
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--contrast-2, #9ca3af);
  max-width: 560px;
  margin: 0 0 32px;
}

.mag-newsletter__form {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 500px;
}

.mag-newsletter__input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: 15px;
  color: #fff;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  padding: 15px 18px;
  transition: var(--transition, .18s ease);
}

.mag-newsletter__input::placeholder {
  color: rgba(255, 255, 255, .4);
}

.mag-newsletter__input:focus {
  outline: none;
  border-color: rgba(233, 30, 140, .5);
  background: rgba(255, 255, 255, .08);
}

.mag-newsletter__btn {
  flex-shrink: 0;
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--main, #e91e8c);
  border-radius: 12px;
  padding: 15px 26px;
  transition: var(--transition, .18s ease);
  white-space: nowrap;
}

.mag-newsletter__btn:hover {
  background: var(--main-accent, #be185d);
  transform: translateY(-1px);
}

/* ==========================================================================
   6. LISTING - ETAT VIDE
   ========================================================================== */

.mag-empty {
  text-align: center;
  padding: 64px 0 80px;
}

.mag-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--background-alt, #f3f4f6);
  color: var(--contrast-2, #9ca3af);
  margin-bottom: 20px;
}

.mag-empty__icon svg {
  width: 32px;
  height: 32px;
}

.mag-empty__title {
  font-family: var(--font-sora, 'Sora', system-ui, sans-serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--base, #111827);
  margin: 0 0 8px;
}

.mag-empty__text {
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: 16px;
  color: var(--contrast, #6b7280);
  margin: 0;
}

/* ==========================================================================
   7. LISTING - PAGINATION
   ========================================================================== */

.mag-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
}

.mag-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--base, #111827);
  background: #fff;
  border: 1px solid var(--card-border, #f3f4f6);
  border-radius: 12px;
  transition: var(--transition, .18s ease);
}

.mag-pagination .page-numbers:hover {
  border-color: var(--contrast-3, #d1d5db);
}

.mag-pagination .page-numbers.current {
  background: var(--main, #e91e8c);
  border-color: var(--main, #e91e8c);
  color: #fff;
}

.mag-pagination .page-numbers.dots {
  border: none;
  background: transparent;
}

/* ==========================================================================
   8. ARTICLE - EN-TETE
   ========================================================================== */

.article-hero {
  padding: 48px 0 40px;
  background: var(--base-2, #ffffff);
}

.article-inner {
  max-width: 900px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* --- Fil d'ariane --- */
.article-bc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: 13px;
  color: var(--contrast, #6b7280);
  margin-bottom: 24px;
}

.article-bc a {
  color: var(--contrast, #6b7280);
  transition: var(--transition, .18s ease);
}

.article-bc a:hover {
  color: var(--main, #e91e8c);
}

.article-bc__sep {
  display: inline-flex;
  color: var(--contrast-3, #d1d5db);
}

.article-bc__sep svg {
  width: 14px;
  height: 14px;
}

.article-bc__current {
  color: var(--base, #111827);
  font-weight: 600;
}

/* --- Pilule de categorie --- */
.article-cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
  color: var(--main, #e91e8c);
  background: #fdf2f8;
}

.article-cat svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* --- Titre --- */
.article-title {
  font-family: var(--font-sora, 'Sora', system-ui, sans-serif);
  font-weight: 800;
  font-size: clamp(32px, 5.5vw, 52px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--base, #111827);
  margin: 0 0 24px;
}

/* --- Chapeau (lead) --- */
.article-lead {
  font-family: var(--font-newsreader, 'Newsreader', Georgia, serif), Georgia, serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0 0 32px;
}

/* --- Ligne d'auteur --- */
.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  padding-bottom: 41px;
  border-bottom: 1px solid var(--background-alt, #f3f4f6);
}

.article-byline__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.article-byline__author img,
.article-byline__author .article-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fdf2f8;
  flex-shrink: 0;
}

.article-byline__name {
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--base, #111827);
  line-height: 1.3;
}

.article-byline__name a {
  color: inherit;
  text-decoration: none;
}

.article-byline__name a:hover {
  color: var(--main, #e91e8c);
}

.article-byline__role {
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: 13px;
  color: var(--contrast, #6b7280);
  line-height: 1.3;
}

.article-byline__info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-right: auto;
}

.article-byline__info span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: 14px;
  color: var(--contrast, #6b7280);
}

.article-byline__info svg {
  width: 18px;
  height: 18px;
  color: var(--contrast-2, #9ca3af);
  flex-shrink: 0;
}

.article-byline__share {
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-byline__share a,
.article-byline__share button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--card-border, #f3f4f6);
  color: var(--contrast, #6b7280);
  transition: var(--transition, .18s ease);
}

.article-byline__share a:hover,
.article-byline__share button:hover {
  border-color: var(--main, #e91e8c);
  color: var(--main, #e91e8c);
  transform: translateY(-1px);
}

.article-byline__share svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   9. ARTICLE - IMAGE A LA UNE
   ========================================================================== */

.article-figure {
  max-width: 1100px;
  margin: 0 auto 48px;
  padding-inline: 24px;
}

.article-figure img {
  display: block;
  width: 100%;          /* horizontal / paysage : remplit la largeur */
  height: auto;         /* ratio conserve (jamais ecrase) */
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
}

/* Portrait (ex. couverture de livre) : taille naturelle centree, pas d'agrandissement force. */
.article-figure--portrait img {
  width: auto;
  max-width: 100%;
  margin-inline: auto;
}

.article-figure figcaption {
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--contrast, #6b7280);
  text-align: center;
  margin-top: 14px;
}

/* ==========================================================================
   10. ARTICLE - CONTENU (blocs Gutenberg de base)
   ========================================================================== */

.entry-content {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: 24px;
  counter-reset: ifcia-step;
}

.entry-content > * {
  margin-bottom: 1.4em;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

/* --- Paragraphes --- */
.entry-content p {
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: 18px;
  line-height: 1.8;
  color: #374151;
  margin: 0 0 1.4em;
}

.entry-content strong {
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-weight: 600;
  color: var(--base, #111827);
}

.entry-content a {
  color: var(--main, #e91e8c);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: var(--transition, .18s ease);
}

.entry-content a:hover {
  color: var(--main-accent, #be185d);
}

/* --- Titres H2 avec barre gradient a gauche --- */
.entry-content h2 {
  position: relative;
  font-family: var(--font-sora, 'Sora', system-ui, sans-serif);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--base, #111827);
  padding-left: 20px;
  margin: 2em 0 .8em;
}

.entry-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .1em;
  bottom: .1em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(to bottom, var(--main, #e91e8c) 0%, var(--violet, #8b5cf6) 100%);
}

/* --- Titres H3 --- */
.entry-content h3 {
  font-family: var(--font-sora, 'Sora', system-ui, sans-serif);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  color: var(--base, #111827);
  margin: 1.6em 0 .6em;
}

.entry-content h4 {
  font-family: var(--font-sora, 'Sora', system-ui, sans-serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--base, #111827);
  margin: 1.4em 0 .5em;
}

/* --- Listes --- */
.entry-content ul,
.entry-content ol {
  padding-left: 1.4em;
  margin: 0 0 1.4em;
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: 18px;
  line-height: 1.8;
  color: #374151;
}

.entry-content ul {
  list-style: none;
  padding-left: 0;
}

.entry-content ul li {
  position: relative;
  padding-left: 1.6em;
  margin: .5em 0;
}

.entry-content ul li::before {
  content: "";
  position: absolute;
  left: .35em;
  top: .72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--main, #e91e8c);
}

.entry-content ol {
  list-style: decimal;
}

.entry-content ol li {
  margin: .5em 0;
  padding-left: .2em;
}

.entry-content ol li::marker {
  color: var(--main, #e91e8c);
  font-weight: 700;
}

/* --- Citation --- */
.entry-content blockquote {
  position: relative;
  border: 0;
  font-family: var(--font-newsreader, 'Newsreader', Georgia, serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  color: #374151;
  margin: 2.4em 0;
  padding: 22px 0 0;
}

.entry-content blockquote::before {
  content: "\201C";
  position: absolute;
  left: -14px;
  top: -14px;
  font-family: var(--font-newsreader, 'Newsreader', Georgia, serif);
  font-weight: 400;
  font-size: 120px;
  line-height: 1;
  color: #fdf2f8;
  pointer-events: none;
  z-index: 0;
}

/* Texte au-dessus de la grande guillemet decorative */
.entry-content blockquote > * {
  position: relative;
  z-index: 1;
}

.entry-content blockquote p {
  font-family: inherit;
  font-style: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0 0 .6em;
}

.entry-content blockquote cite,
.entry-content blockquote p:last-child:not(:first-child) {
  display: block;
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
  color: #374151;
  margin-top: 16px;
}

/* Tiret devant l'attribution (- Dr Hadi Antoun) */
.entry-content blockquote cite::before {
  content: "- ";
}

/* --- Images / figures dans le contenu --- */
.entry-content figure {
  margin: 2em 0;
}

.entry-content img {
  border-radius: 16px;
}

.entry-content figure > img {
  width: 100%;
}

.entry-content figcaption {
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--contrast, #6b7280);
  text-align: center;
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--background, #f9fafb);
  border-radius: var(--radius-xs, 8px);
}

/* ==========================================================================
   11. VARIANTES DE BLOCS (is-style-ifcia-*)
   Ces regles NE dependent PAS des wrappers front : elles fonctionnent
   aussi dans l'editeur de blocs (add_editor_style). On evite de scoper
   sous .entry-content pour l'apparence de base ; le compteur d'etapes,
   lui, est reinitialise par .entry-content ET .editor-styles-wrapper.
   ========================================================================== */

/* --- Encadre "Bon a savoir" (core/group) --- */
.is-style-ifcia-callout {
  position: relative;
  background: var(--background, #f9fafb);
  border-left: 4px solid var(--main, #e91e8c);
  border-radius: 0 16px 16px 0;
  padding: 32px 32px 28px 36px;
  margin: 2em 0;
}

.is-style-ifcia-callout :is(h1, h2, h3, h4, h5, h6) {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--main, #e91e8c);
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
  text-transform: none;
  padding-left: 0;
  margin: 0 0 12px;
}

.is-style-ifcia-callout :is(h1, h2, h3, h4, h5, h6)::before {
  content: "";
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  /* lucide "info" */
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e91e8c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
}

.is-style-ifcia-callout p,
.is-style-ifcia-callout li {
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: 16px;
  line-height: 1.7;
  color: #374151;
  text-transform: none;
  margin: 0 0 .6em;
}

.is-style-ifcia-callout > *:last-child {
  margin-bottom: 0;
}

/* --- Encadre "Astuce de pro" (core/group) --- */
.is-style-ifcia-tip {
  position: relative;
  background: linear-gradient(135deg, #fdf2f8 0%, #f5f3ff 100%);
  border-radius: 20px;
  padding: 32px;
  margin: 2em 0;
}

.is-style-ifcia-tip :is(h1, h2, h3, h4, h5, h6) {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--main, #e91e8c);
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
  line-height: 1.2;
  margin: 0 0 14px;
}

.is-style-ifcia-tip :is(h1, h2, h3, h4, h5, h6)::before {
  content: "";
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
  box-shadow: 0 4px 12px rgba(233, 30, 140, .18);
  /* lucide "lightbulb" */
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e91e8c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 14c.2-1 .7-1.7 1.5-2.5C17.7 10.2 18 9 18 8a6 6 0 0 0-12 0c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5'/%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3C/svg%3E");
}

.is-style-ifcia-tip p,
.is-style-ifcia-tip li {
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: 16px;
  line-height: 1.7;
  color: #374151;
  text-transform: none;
  margin: 0 0 .6em;
}

.is-style-ifcia-tip > *:last-child {
  margin-bottom: 0;
}

/* --- Etape numerotee (core/group) --- */
.is-style-ifcia-step {
  position: relative;
  counter-increment: ifcia-step;
  background: #fff;
  border: 2px solid var(--card-border, #f3f4f6);
  border-radius: 20px;
  padding: 74px 34px 34px;
  margin: 2em 0 2em;
}

.is-style-ifcia-step::before {
  content: counter(ifcia-step);
  position: absolute;
  top: -20px;
  left: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--main, #e91e8c) 0%, var(--violet, #8b5cf6) 100%);
  font-family: var(--font-sora, 'Sora', system-ui, sans-serif);
  font-weight: 800;
  font-size: 24px;
  color: #fff;
  filter: drop-shadow(0 8px 16px rgba(233, 30, 140, .3));
}

.is-style-ifcia-step h3 {
  font-family: var(--font-sora, 'Sora', system-ui, sans-serif);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  color: var(--base, #111827);
  margin: 0 0 12px;
  padding-left: 0;
}

.is-style-ifcia-step h3::before {
  display: none;
}

.is-style-ifcia-step p,
.is-style-ifcia-step li {
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: 16px;
  line-height: 1.7;
  color: #374151;
  margin: 0 0 .6em;
}

.is-style-ifcia-step > *:last-child {
  margin-bottom: 0;
}

/* --- Checklist (core/list) --- */
.is-style-ifcia-check {
  list-style: none;
  padding-left: 0;
  margin: 1.6em 0;
}

.is-style-ifcia-check li {
  position: relative;
  padding-left: 34px;
  margin: .7em 0;
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: 18px;
  line-height: 1.7;
  color: #374151;
}

.is-style-ifcia-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .18em;
  width: 22px;
  height: 22px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  /* pastille verte avec coche blanche */
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='11' fill='%2310b981'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Reintroduit la coche meme si la liste est dans .entry-content (ecrase la puce ronde) */
.entry-content ul.is-style-ifcia-check li::before {
  content: "";
  left: 0;
  top: .18em;
  width: 22px;
  height: 22px;
  background: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='11' fill='%2310b981'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border-radius: 0;
}

.is-style-ifcia-check li strong {
  color: var(--base, #111827);
  font-weight: 600;
}

/* --- Bandeau CTA (core/group) --- */
.is-style-ifcia-cta {
  background: linear-gradient(135deg, var(--main, #e91e8c) 0%, var(--violet, #8b5cf6) 100%);
  border-radius: 24px;
  padding: 64px 48px 56px;
  text-align: center;
  margin: 2.4em 0;
}

.is-style-ifcia-cta .wp-block-buttons {
  display: flex;
  justify-content: center;
}

.is-style-ifcia-cta h2,
.is-style-ifcia-cta h3 {
  font-family: var(--font-sora, 'Sora', system-ui, sans-serif);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  color: #fff;
  padding-left: 0;
  margin: 0 0 12px;
}

.is-style-ifcia-cta h2::before,
.is-style-ifcia-cta h3::before {
  display: none;
}

.is-style-ifcia-cta p {
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: 18px;
  line-height: 1.6;
  color: #fff;
  opacity: .9;
  margin: 0 0 24px;
}

.is-style-ifcia-cta > *:last-child {
  margin-bottom: 0;
}

/* Bouton interne (core/button) blanc sur le degrade */
.is-style-ifcia-cta .wp-block-button__link,
.is-style-ifcia-cta .wp-element-button {
  display: inline-block;
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-weight: 600;
  font-size: 15px;
  color: var(--main, #e91e8c);
  background: #fff;
  border-radius: 12px;
  padding: 15px 28px;
  text-decoration: none;
  transition: var(--transition, .18s ease);
}

.is-style-ifcia-cta .wp-block-button__link:hover,
.is-style-ifcia-cta .wp-element-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

/* Reinitialisation du compteur d'etapes cote editeur */
.editor-styles-wrapper {
  counter-reset: ifcia-step;
}

/* ==========================================================================
   12. ARTICLE - TAGS
   ========================================================================== */

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 720px;
  margin: 48px auto 0;
  padding: 41px 24px 0;
  border-top: 1px solid var(--background-alt, #f3f4f6);
}

.article-tag {
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--contrast, #6b7280);
  background: var(--background-alt, #f3f4f6);
  border-radius: 999px;
  padding: 7px 16px;
  transition: var(--transition, .18s ease);
}

a.article-tag:hover {
  background: #fdf2f8;
  color: var(--main, #e91e8c);
}

/* ==========================================================================
   13. ARTICLE - ENCART AUTEUR
   ========================================================================== */

.article-author-box {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  align-items: start;
  max-width: 720px;
  margin: 56px auto 0;
  /* padding-inline de 24 aligne le contenu, puis la carte a son padding propre */
  background: var(--background, #f9fafb);
  border-radius: 24px;
  padding: 40px;
}

/* Marge laterale via wrapper pour rester dans la colonne 720 */
.article-author-wrap {
  padding-inline: 24px;
}

.article-author-box__avatar {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: var(--shadow, 0 1px 2px rgba(17,24,39,.04), 0 12px 32px rgba(17,24,39,.06));
}

.article-author-box__body {
  display: flex;
  flex-direction: column;
}

.article-author-box__label {
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #374151;
  margin-bottom: 8px;
}

.article-author-box__name {
  font-family: var(--font-sora, 'Sora', system-ui, sans-serif);
  font-weight: 700;
  font-size: 24px;
  color: var(--base, #111827);
  margin: 0 0 4px;
}

.article-author-box__role {
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-weight: 600;
  font-size: 14px;
  color: var(--main, #e91e8c);
  margin: 0 0 10px;
}

.article-author-box__bio {
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: 18px;
  line-height: 1.7;
  color: #374151;
  margin: 0 0 16px;
}

.article-author-box__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--main, #e91e8c);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition, .18s ease);
}

.article-author-box__link:hover {
  color: var(--main-accent, #be185d);
  gap: 9px;
}

.article-author-box__link svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   14. ARTICLE - ARTICLES SIMILAIRES (section sombre)
   ========================================================================== */

.article-related {
  position: relative;
  overflow: hidden;
  background: var(--base, #111827);
  padding: 80px 0;
  margin-top: 72px;
}

.article-related::before,
.article-related::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .28;
  pointer-events: none;
}

.article-related::before {
  top: -180px;
  left: -100px;
  background: radial-gradient(circle, rgba(233, 30, 140, .5) 0%, transparent 70%);
}

.article-related::after {
  bottom: -200px;
  right: -100px;
  background: radial-gradient(circle, rgba(139, 92, 246, .5) 0%, transparent 70%);
}

.article-related .container {
  position: relative;
  z-index: 1;
}

.article-related__title {
  font-family: var(--font-sora, 'Sora', system-ui, sans-serif);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -.01em;
  color: #fff;
  text-align: center;
  margin: 0 0 48px;
}

/* ==========================================================================
   15. COULEURS DE CATEGORIE (accent + fond)
   Classes utilitaires posees par le PHP via ifcia_blog_cat_color().
   S'appliquent aux pilules de carte, mini, feature-badge, article-cat, filtre.
   Le PHP peut aussi injecter les couleurs en style inline ; ces classes
   garantissent la coherence si aucun style inline n'est pose.
   ========================================================================== */

/* Fond + texte pour les pilules sur fond clair */
.cat--techniques    { color: #8b5cf6; background: #f5f3ff; }
.cat--cas-cliniques { color: #10b981; background: #ecfdf5; }
.cat--conseils      { color: #f59e0b; background: #fffbeb; }
.cat--actualites    { color: #3b82f6; background: #eff6ff; }
.cat--interviews    { color: #e91e8c; background: #fdf2f8; }
.cat--default       { color: #e91e8c; background: #fdf2f8; }

/* Pilule pleine (feature-badge) : accent en fond, texte blanc */
.mag-feature__badge.cat--techniques    { background: #8b5cf6; color: #fff; }
.mag-feature__badge.cat--cas-cliniques { background: #10b981; color: #fff; }
.mag-feature__badge.cat--conseils      { background: #f59e0b; color: #fff; }
.mag-feature__badge.cat--actualites    { background: #3b82f6; color: #fff; }
.mag-feature__badge.cat--interviews    { background: #e91e8c; color: #fff; }
.mag-feature__badge.cat--default       { background: #e91e8c; color: #fff; }

/* Libelle de mini carte : seulement la couleur d'accent */
.mag-mini__cat.cat--techniques    { color: #8b5cf6; background: none; }
.mag-mini__cat.cat--cas-cliniques { color: #10b981; background: none; }
.mag-mini__cat.cat--conseils      { color: #f59e0b; background: none; }
.mag-mini__cat.cat--actualites    { color: #3b82f6; background: none; }
.mag-mini__cat.cat--interviews    { color: #e91e8c; background: none; }
.mag-mini__cat.cat--default       { color: #e91e8c; background: none; }

/* ==========================================================================
   16. RESPONSIVE (mobile-first : on descend depuis desktop)
   ========================================================================== */

/* --- Tablette large : grille 3 -> 2 colonnes, featured commence a empiler --- */
@media (max-width: 1024px) {
  .mag-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mag-featured {
    grid-template-columns: 1fr;
  }

  .mag-feature {
    min-height: 460px;
  }

  .mag-side {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .mag-mini {
    flex: 1 1 300px;
  }
}

/* --- Tablette : article header + grilles --- */
@media (max-width: 900px) {
  .article-title {
    font-size: clamp(30px, 7vw, 40px);
  }

  .article-byline {
    gap: 20px;
  }

  .article-byline__info {
    width: 100%;
    order: 3;
    margin-right: 0;
  }
}

/* --- Mobile : tout passe en une colonne --- */
@media (max-width: 767px) {
  .mag-hero {
    padding: 48px 0 28px;
  }

  .mag-filter {
    padding-bottom: 36px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-inline: 24px;
    /* pas de margin-inline negatif : le parent n'a pas de padding lateral -> deborderait la fenetre */
  }

  .mag-filter::-webkit-scrollbar {
    display: none;
  }

  .mag-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mag-featured {
    gap: 24px;
    padding-bottom: 48px;
  }

  .mag-feature {
    min-height: 420px;
  }

  .mag-feature__overlay {
    padding: 28px 24px;
  }

  .mag-feature__title {
    font-size: 24px;
  }

  .mag-side {
    flex-direction: column;
  }

  .mag-mini {
    grid-template-columns: 96px 1fr;
    gap: 14px;
    padding: 14px;
  }

  .mag-mini__img {
    width: 96px;
    height: 84px;
  }

  .mag-grid-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .mag-newsletter {
    padding: 56px 0;
  }

  .mag-newsletter__form {
    flex-direction: column;
  }

  .mag-newsletter__btn {
    width: 100%;
  }

  /* --- Article --- */
  .article-hero {
    padding: 32px 0 28px;
  }

  .article-lead {
    font-size: 19px;
  }

  .article-byline {
    gap: 20px;
    padding-bottom: 28px;
  }

  .article-byline__share {
    margin-left: auto;
  }

  .article-figure {
    padding-inline: 24px;
    margin-bottom: 36px;
  }

  .article-figure img {
    border-radius: 16px;
  }

  .entry-content p,
  .entry-content ul,
  .entry-content ol {
    font-size: 17px;
  }

  .entry-content h2 {
    font-size: 26px;
  }

  .entry-content h3 {
    font-size: 21px;
  }

  .is-style-ifcia-callout,
  .is-style-ifcia-tip {
    padding: 24px;
  }

  .is-style-ifcia-step {
    padding: 62px 22px 24px;
  }

  .is-style-ifcia-cta {
    padding: 40px 24px;
  }

  .is-style-ifcia-cta h2,
  .is-style-ifcia-cta h3 {
    font-size: 26px;
  }

  .article-author-box {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px;
    justify-items: start;
  }

  .article-author-box__avatar {
    width: 88px;
    height: 88px;
  }

  .article-related {
    padding: 56px 0;
    margin-top: 48px;
  }

  .article-related__title {
    font-size: 26px;
    margin-bottom: 32px;
  }
}

/* --- Tres petit mobile --- */
@media (max-width: 400px) {
  .mag-mini {
    grid-template-columns: 1fr;
  }

  .mag-mini__img {
    width: 100%;
    height: 140px;
  }

  .article-byline__info {
    gap: 12px;
  }
}
