/* ============================================================
   Actus Hygie CrossFit : feuille de style commune
   Mise en page calquée sur crossfit-hygie.fr :
   fond clair texturé, titres Bebas noirs centrés + mots-clés
   rouges, bandeau rouge à découpe diagonale, footer noir.
   ============================================================ */

:root {
  --rouge: #c82127;
  --rouge-fonce: #a51b20;
  --noir: #171717;
  --fond: #f4f3f1;
  --blanc: #ffffff;
  --texte: #1a1a1a;
  --texte-2: #555555;
  --texte-3: #8a8a8a;
  --bord: #e2e0dc;
  --titre: "Bebas Neue", Impact, sans-serif;
  --corps: "Poppins", Arial, sans-serif;
  --radius: 10px;
  /* grain papier discret, façon texture du site */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--fond);
  background-image: var(--grain);
  color: var(--texte);
  font-family: var(--corps);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ---------- En-tête noir (comme le site) ---------- */

.site-header {
  background: #111;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }

.brand img { height: 40px; width: auto; display: block; }

.lien-site {
  font-family: var(--titre);
  font-size: 18px;
  letter-spacing: .08em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.lien-site:hover { color: var(--rouge); }

/* ---------- Héro clair : grosse accroche centrée ---------- */

.hero {
  text-align: center;
  padding: 46px 20px 10px;
}

.badge {
  display: inline-block;
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 18px;
  margin-bottom: 26px;
}

.hero h1 {
  font-family: var(--titre);
  font-weight: 400;
  font-size: clamp(46px, 9vw, 92px);
  letter-spacing: .02em;
  line-height: .95;
  text-transform: uppercase;
  color: var(--noir);
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 em { font-style: normal; color: var(--rouge); }

.hero p {
  max-width: 640px;
  margin: 22px auto 0;
  color: var(--texte-2);
  font-size: 16px;
}

/* ---------- Bandeau rouge diagonal (signature du site) ---------- */

.bandeau {
  background-color: var(--rouge);
  background-image: var(--grain);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - clamp(28px, 5vw, 70px)), 0 100%);
  padding: clamp(40px, 6vw, 64px) 20px clamp(70px, 10vw, 130px);
  margin-top: 34px;
}

.bandeau-int {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
  color: #fff;
  text-decoration: none;
}

.bandeau-int .picto { font-size: 40px; }

.bandeau-int strong {
  font-family: var(--titre);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: .04em;
  line-height: 1;
  display: block;
  text-transform: uppercase;
}

.bandeau-int small { font-size: 15px; opacity: .92; display: block; margin-top: 6px; }

.bandeau-int .fleche {
  margin-left: auto;
  font-size: 38px;
  line-height: 1;
  transition: transform .15s;
}

.bandeau-int:hover .fleche { transform: translateX(6px); }

/* ---------- Section titre centré ---------- */

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px 70px; }

.section-titre {
  font-family: var(--titre);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 64px);
  letter-spacing: .03em;
  text-align: center;
  text-transform: uppercase;
  color: var(--noir);
  margin: 8px 0 6px;
}

.section-titre em { font-style: normal; color: var(--rouge); }

/* ---------- Filtres ---------- */

.filtres {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  list-style: none;
  margin: 22px 0 34px;
}

.filtres button {
  font-family: var(--titre);
  font-size: 19px;
  letter-spacing: .07em;
  color: var(--noir);
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
  padding: 9px 20px 6px;
  cursor: pointer;
  transition: all .15s;
}

.filtres button:hover { border-color: var(--noir); }

.filtres button.actif {
  background: var(--rouge);
  border-color: var(--rouge);
  color: #fff;
}

/* ---------- Liste d'articles ---------- */

.liste { display: grid; gap: 18px; }

.carte {
  display: block;
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .05);
  padding: 26px 30px;
  text-decoration: none;
  color: var(--texte);
  transition: transform .15s, box-shadow .15s;
}

.carte:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .10);
}

.carte-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--texte-3);
  margin-bottom: 10px;
}

.chip {
  font-family: var(--titre);
  font-size: 15px;
  letter-spacing: .08em;
  color: #fff;
  background: var(--rouge);
  border-radius: 4px;
  padding: 3px 10px 1px;
  line-height: 1.5;
}

.carte h2 {
  font-family: var(--titre);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: .02em;
  line-height: 1;
  color: var(--noir);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.carte p { color: var(--texte-2); font-size: 15px; }

.vide { text-align: center; color: var(--texte-3); padding: 40px 0; }

/* ---------- Page article ---------- */

.article-page { max-width: 760px; margin: 0 auto; padding: 46px 20px 80px; }

.retour {
  font-family: var(--titre);
  font-size: 17px;
  letter-spacing: .07em;
  color: var(--texte-3);
  text-decoration: none;
}

.retour:hover { color: var(--noir); }

.article-page > header { text-align: center; margin: 30px 0 38px; }

.article-page h1 {
  font-family: var(--titre);
  font-weight: 400;
  font-size: clamp(40px, 8vw, 72px);
  letter-spacing: .02em;
  line-height: .95;
  text-transform: uppercase;
  color: var(--noir);
  margin: 16px 0 12px;
}

.article-page h1 em { font-style: normal; color: var(--rouge); }

.article-date { color: var(--texte-3); font-size: 14px; }

/* corps de l'article : carte blanche comme les blocs du site */
.contenu {
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .05);
  padding: clamp(26px, 5vw, 46px);
  font-size: 16px;
}

.contenu h2 {
  font-family: var(--titre);
  font-weight: 400;
  font-size: 32px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--noir);
  margin: 34px 0 12px;
}

.contenu h2:first-child { margin-top: 0; }

.contenu h2 em { font-style: normal; color: var(--rouge); }

.contenu h3 { font-size: 17px; font-weight: 600; margin: 26px 0 8px; }

.contenu p { margin: 0 0 16px; color: var(--texte-2); }

.contenu strong { color: var(--texte); }

.contenu ul, .contenu ol { margin: 0 0 16px 22px; color: var(--texte-2); }

.contenu li { margin-bottom: 6px; }

.contenu a { color: var(--rouge); }

.contenu img { max-width: 100%; border-radius: var(--radius); margin: 8px 0 16px; }

.contenu .encadre {
  background: var(--fond);
  border-left: 4px solid var(--rouge);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 0 0 16px;
}

.contenu .encadre p:last-child { margin-bottom: 0; }

/* Bouton d'action, même style que les CTA du site */
.bouton {
  display: inline-block;
  font-family: var(--titre);
  font-size: 20px;
  letter-spacing: .07em;
  background: var(--rouge);
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  padding: 13px 30px 9px;
  margin: 4px 0 16px;
  transition: background .15s;
}

.bouton:hover { background: var(--rouge-fonce); }

/* le lien-bouton reste blanc même dans .contenu (sinon écrasé par .contenu a) */
.contenu a.bouton { color: #fff; }

/* ---------- Pied de page noir (comme le site) ---------- */

.site-footer {
  background: #111;
  background-image: var(--grain);
  text-align: center;
  padding: 54px 20px 30px;
  margin-top: 40px;
}

.site-footer img { height: 46px; margin-bottom: 22px; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 30px;
  list-style: none;
  margin-bottom: 30px;
}

.footer-nav a {
  font-family: var(--titre);
  font-size: 18px;
  letter-spacing: .08em;
  color: #fff;
  text-decoration: none;
}

.footer-nav a:hover { color: var(--rouge); }

.footer-legal {
  border-top: 1px solid #333;
  padding-top: 22px;
  color: #9a9a9a;
  font-size: 13px;
}

.footer-legal a { color: #cfcfcf; }

@media (max-width: 560px) {
  .bandeau-int { gap: 16px; }
  .bandeau-int .picto { display: none; }
  .carte { padding: 20px 22px; }
}
