/* ============================================================
   Antafirma magazine, feuille de style principale
   Charte typographique magazine senior, lisibilité prioritaire
   Dernière revue : juin 2026
   ============================================================ */


/* ------------------------------------------------------------
   Polices auto-hébergées
   Merriweather pour les titres, Lora pour le corps de texte
   Plage latine uniquement, le site est en français
   ------------------------------------------------------------ */

@font-face {
  font-family: "Merriweather";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/merriweather-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/lora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}


/* ------------------------------------------------------------
   Réinitialisation modérée
   On garde la marge sur les paragraphes pour le confort de lecture
   ------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fbfaf6;
  color: #1a1a1a;
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.8;
  font-weight: 400;
}

img,
picture,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #2d5e3e;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: #1f4a30;
}

button,
input,
select,
textarea {
  font: inherit;
}


/* ------------------------------------------------------------
   Contenants et grilles génériques
   ------------------------------------------------------------ */

.container {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}

.container--narrow {
  max-width: 760px;
}

.section-spacing {
  padding-top: 56px;
  padding-bottom: 56px;
}


/* ------------------------------------------------------------
   En-tête principal du magazine
   Logo à gauche, navigation au centre, accès lecteur à droite
   ------------------------------------------------------------ */

.site-header {
  background: #fbfaf6;
  border-bottom: 1px solid #e2dfd6;
  padding-top: 18px;
  padding-bottom: 18px;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: #1a1a1a;
}

.site-header__wordmark {
  font-family: "Merriweather", Georgia, serif;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0;
  color: #2d5e3e;
}

.site-header__baseline {
  display: none;
  font-family: "Lora", serif;
  font-style: italic;
  font-size: 14px;
  color: #525252;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-family: "Lora", serif;
  font-size: 16px;
  color: #1a1a1a;
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: #c4974d;
  color: #1a1a1a;
}

.site-header__account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8a8275;
  font-size: 14px;
  cursor: not-allowed;
  user-select: none;
}

.site-header__account svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}

.site-header__menu-toggle {
  display: none;
  background: none;
  border: 1px solid #e2dfd6;
  padding: 6px 10px;
  color: #1a1a1a;
  font-size: 14px;
  cursor: pointer;
}

@media (max-width: 880px) {
  .site-header__baseline {
    display: none;
  }
  .site-nav {
    display: none;
  }
  .site-header__menu-toggle {
    display: inline-block;
  }
  .site-header__account span {
    display: none;
  }
}


/* ------------------------------------------------------------
   Titres généraux
   ------------------------------------------------------------ */

h1, h2, h3, h4 {
  font-family: "Merriweather", Georgia, "Times New Roman", serif;
  color: #1a1a1a;
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 0.6em;
  font-weight: 700;
}

h1 {
  font-size: 38px;
}

h2 {
  font-size: 28px;
  margin-top: 2em;
}

h3 {
  font-size: 22px;
  margin-top: 1.6em;
}

h4 {
  font-size: 19px;
  margin-top: 1.4em;
}

@media (max-width: 720px) {
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
}

p {
  margin-top: 0;
  margin-bottom: 1.2em;
}

blockquote {
  margin: 1.6em 0;
  padding: 12px 24px;
  border-left: 4px solid #c4974d;
  background: #f5f1e6;
  font-style: italic;
  color: #2a2a2a;
}

ul, ol {
  padding-left: 1.4em;
  margin-bottom: 1.4em;
}

li {
  margin-bottom: 0.4em;
}

hr {
  border: none;
  border-top: 1px solid #e2dfd6;
  margin: 36px 0;
}


/* ------------------------------------------------------------
   Page d'accueil : article mis en avant
   Pleine largeur, image et chapeau côte à côte sur desktop
   ------------------------------------------------------------ */

.featured {
  background: #fff;
  border: 1px solid #e2dfd6;
  margin-bottom: 56px;
}

.featured__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
}

.featured__visual {
  position: relative;
  background: #f5f1e6;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.featured__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured__content {
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured__category {
  display: inline-block;
  background: #c4974d;
  color: #fff;
  font-family: "Lora", serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  text-decoration: none;
  margin-bottom: 18px;
  align-self: flex-start;
}

.featured__title {
  font-size: 34px;
  margin-bottom: 16px;
}

.featured__title a {
  color: #1a1a1a;
  text-decoration: none;
}

.featured__title a:hover {
  color: #2d5e3e;
}

.featured__excerpt {
  color: #3a3a3a;
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.featured__meta {
  font-size: 14px;
  color: #525252;
  font-family: "Lora", serif;
}

.featured__meta a {
  color: #525252;
  text-decoration: none;
}

@media (max-width: 880px) {
  .featured__inner {
    grid-template-columns: 1fr;
  }
  .featured__content {
    padding: 32px 28px;
  }
  .featured__title {
    font-size: 26px;
  }
}


/* ------------------------------------------------------------
   Grille des articles (2 colonnes desktop, 1 colonne mobile)
   ------------------------------------------------------------ */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px;
  margin-bottom: 56px;
}

@media (max-width: 760px) {
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}


/* ------------------------------------------------------------
   Cartes article (utilisées en home et en relais d'article)
   Image 16:9 en haut, tag, titre, chapeau, méta
   ------------------------------------------------------------ */

.card {
  background: #fff;
  border: 1px solid #e2dfd6;
  display: flex;
  flex-direction: column;
  transition: opacity 0.18s ease;
}

.card:hover {
  opacity: 0.94;
}

.card__visual {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f5f1e6;
}

.card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__category {
  display: inline-block;
  background: #c4974d;
  color: #fff;
  font-family: "Lora", serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  text-decoration: none;
  margin-bottom: 14px;
  align-self: flex-start;
}

.card__title {
  font-size: 22px;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 12px;
}

.card__title a {
  color: #1a1a1a;
  text-decoration: none;
}

.card__title a:hover {
  color: #2d5e3e;
}

.card__excerpt {
  color: #3a3a3a;
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}

.card__meta {
  font-size: 13px;
  color: #525252;
  font-family: "Lora", serif;
  border-top: 1px solid #e2dfd6;
  padding-top: 12px;
}

.card__meta a {
  color: #525252;
  text-decoration: none;
}


/* ------------------------------------------------------------
   Section : titre de rubrique sur la page d'accueil
   ------------------------------------------------------------ */

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid #2d5e3e;
  padding-bottom: 10px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0;
  font-size: 24px;
  color: #2d5e3e;
}

.section-heading a {
  font-family: "Lora", serif;
  font-size: 14px;
  color: #525252;
  text-decoration: none;
}

.section-heading a:hover {
  color: #2d5e3e;
}


/* ------------------------------------------------------------
   Page article : mise en page contenu centré confortable
   ------------------------------------------------------------ */

.article-head {
  text-align: left;
  padding-top: 36px;
  padding-bottom: 28px;
}

.article-head__category {
  display: inline-block;
  background: #c4974d;
  color: #fff;
  font-family: "Lora", serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  text-decoration: none;
  margin-bottom: 22px;
}

.article-head__title {
  font-size: 40px;
  line-height: 1.18;
  margin-bottom: 18px;
  color: #1a1a1a;
}

.article-head__lede {
  font-size: 20px;
  font-style: italic;
  color: #3a3a3a;
  line-height: 1.6;
  margin-bottom: 24px;
}

.article-head__meta {
  font-family: "Lora", serif;
  font-size: 14px;
  color: #525252;
  border-top: 1px solid #e2dfd6;
  border-bottom: 1px solid #e2dfd6;
  padding: 14px 0;
}

.article-head__meta a {
  color: #2d5e3e;
  text-decoration: none;
}

@media (max-width: 720px) {
  .article-head__title { font-size: 30px; }
  .article-head__lede { font-size: 18px; }
}

.article-figure {
  margin: 0 0 36px;
}

.article-figure img {
  width: 100%;
}

.article-figure figcaption {
  font-size: 13px;
  color: #525252;
  font-style: italic;
  padding-top: 8px;
}

.article-body {
  font-size: 19px;
  line-height: 1.85;
  color: #1a1a1a;
}

.article-body > p:first-of-type::first-letter {
  font-family: "Merriweather", serif;
  font-size: 40px;
  font-weight: 700;
  color: #2d5e3e;
  float: left;
  line-height: 1;
  padding-right: 8px;
  padding-top: 4px;
}

.article-body h2 {
  color: #2d5e3e;
  margin-top: 2.2em;
  border-bottom: 1px solid #e2dfd6;
  padding-bottom: 8px;
}

.article-body h3 {
  color: #1a1a1a;
}

.article-body a {
  color: #2d5e3e;
  text-decoration: underline;
}

.article-body img {
  margin: 24px 0;
  border: 1px solid #e2dfd6;
}


/* ------------------------------------------------------------
   Encart auteur en pied d'article
   ------------------------------------------------------------ */

.author-card {
  display: flex;
  gap: 20px;
  padding: 22px;
  background: #f5f1e6;
  border-left: 3px solid #c4974d;
  margin-top: 48px;
  margin-bottom: 48px;
}

.author-card__photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-card__body h4 {
  margin: 0 0 6px;
  font-size: 18px;
  color: #2d5e3e;
}

.author-card__body p {
  margin: 0;
  font-size: 15px;
  color: #3a3a3a;
  line-height: 1.6;
}


/* ------------------------------------------------------------
   Articles connexes en pied d'article
   ------------------------------------------------------------ */

.related-articles {
  margin-top: 48px;
  border-top: 2px solid #2d5e3e;
  padding-top: 28px;
}

.related-articles h3 {
  font-size: 22px;
  color: #2d5e3e;
  margin-bottom: 24px;
}

.related-articles__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 720px) {
  .related-articles__list {
    grid-template-columns: 1fr;
  }
}


/* ------------------------------------------------------------
   Pages statiques (À propos, contact, mentions, RGPD)
   ------------------------------------------------------------ */

.static-page {
  padding-top: 36px;
  padding-bottom: 56px;
}

.static-page h1 {
  font-size: 36px;
  color: #2d5e3e;
  margin-bottom: 24px;
}

.static-page h2 {
  color: #2d5e3e;
  font-size: 22px;
}

.static-page address {
  font-style: normal;
  padding: 16px 0;
  font-size: 17px;
}


/* ------------------------------------------------------------
   Bouton générique (peu utilisé, on a peu de CTA)
   ------------------------------------------------------------ */

.button {
  display: inline-block;
  background: #2d5e3e;
  color: #fff;
  padding: 14px 28px;
  font-family: "Lora", serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid #2d5e3e;
}

.button:hover {
  background: #1f4a30;
  color: #fff;
}

.button--outline {
  background: transparent;
  color: #2d5e3e;
}

.button--outline:hover {
  background: #2d5e3e;
  color: #fff;
}


/* ------------------------------------------------------------
   Pied de page principal : 4 colonnes
   ------------------------------------------------------------ */

.site-footer {
  background: #1f3328;
  color: #d8d2c6;
  padding-top: 56px;
  padding-bottom: 32px;
  margin-top: 80px;
  font-size: 15px;
  line-height: 1.7;
}

.site-footer a {
  color: #d8d2c6;
  text-decoration: none;
}

.site-footer a:hover {
  color: #c4974d;
}

.site-footer__columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}

.site-footer__col h4 {
  font-family: "Merriweather", serif;
  color: #c4974d;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0;
  margin-bottom: 16px;
}

.site-footer__col ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.site-footer__col li {
  margin-bottom: 8px;
}

.site-footer__col p {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 14px;
}

.site-footer__bottom {
  border-top: 1px solid #2d4f3d;
  margin-top: 36px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: #a39d8f;
}

.site-footer__bottom a {
  color: #a39d8f;
}

@media (max-width: 880px) {
  .site-footer__columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .site-footer__columns {
    grid-template-columns: 1fr;
  }
  .site-footer__bottom {
    flex-direction: column;
  }
}


/* ------------------------------------------------------------
   Page 404 sobre
   ------------------------------------------------------------ */

.error-page {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.error-page h1 {
  font-size: 72px;
  color: #2d5e3e;
  margin-bottom: 20px;
}

.error-page p {
  font-size: 18px;
  color: #525252;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}


/* ------------------------------------------------------------
   Modules historiques conservés pour compatibilité descendante
   À auditer lors de la prochaine refonte
   ------------------------------------------------------------ */

.newsletter-classic {
  background: #f5f1e6;
  border: 1px solid #e2dfd6;
  padding: 24px;
  text-align: center;
  margin-bottom: 32px;
}

.newsletter-classic h3 {
  color: #2d5e3e;
  font-size: 20px;
}

.newsletter-classic input[type="email"] {
  width: 100%;
  max-width: 320px;
  padding: 10px 14px;
  border: 1px solid #c4974d;
  background: #fff;
  font-size: 15px;
}

.archive-2019-banner {
  background: #2d5e3e;
  color: #fff;
  padding: 12px 20px;
  font-size: 14px;
  text-align: center;
}

.archive-2019-banner a {
  color: #c4974d;
  text-decoration: underline;
}

.partner-zone {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 28px;
  background: #f5f1e6;
  border: 1px solid #e2dfd6;
  margin-bottom: 32px;
}

.partner-zone img {
  filter: grayscale(0.2);
  opacity: 0.85;
}
