/* Source: afla-style.css */

/* ══════════════════════════════════════
   HERO PATTERN
   ══════════════════════════════════════ */
.afla-hero { display: grid; grid-template-columns: 1fr 1.15fr; min-height: 380px; margin-bottom: 52px; }
.afla-hero-txt { padding: 48px 52px 48px 0; display: flex; flex-direction: column; justify-content: center; }
.afla-hero-txt h2 { font-family: var(--afla-fh); font-size: 3.2rem; font-weight: 800; line-height: 1.0; margin-bottom: 16px; }
.afla-hero-txt .chapeau { font-weight: 600; font-size: 1.05rem; line-height: 1.5; margin-bottom: 18px; }
.afla-hero-txt .corps   { font-size: 14px; color: var(--afla-ink2); line-height: 1.7; margin-bottom: 22px; }
.afla-hero-vis  { position: relative; }
.afla-hero-bg   { position: absolute; top: 0; bottom: 0; left: 20px; right: 0; }
.afla-hero-deco { position: absolute; top: 0; right: 0; width: 40px; height: 40px; z-index: 1; }
.afla-hero-img  { position: absolute; top: 24px; bottom: 24px; left: 0; right: 24px; overflow: hidden; }
.afla-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.afla-hero-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 5rem; opacity: .3; }

/* ══════════════════════════════════════
   NAVIGATION CATÉGORIES
   ══════════════════════════════════════ */
.afla-cats { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--afla-regle); margin-bottom: 52px; }
.afla-cat  { padding: 26px 20px 22px; border-right: 1px solid var(--afla-regle); display: flex; flex-direction: column; gap: 14px; position: relative; transition: background .2s; }
.afla-cat:last-child { border-right: none; }
.afla-cat:hover { background: var(--afla-blanc); }
.afla-cat::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; }
.afla-cat.cr::after { background: var(--afla-rouge-2); } .afla-cat.cb::after { background: var(--afla-bleu-3); }
.afla-cat.cy::after { background: var(--afla-or-3);    } .afla-cat.cv::after { background: var(--afla-vert-3); }
.afla-cat-ico { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.afla-cat.cr .afla-cat-ico { background: var(--afla-rouge-2); color: #fff; }
.afla-cat.cb .afla-cat-ico { background: var(--afla-bleu-3);  color: #fff; }
.afla-cat.cy .afla-cat-ico { background: var(--afla-or-3);    color: #fff; }
.afla-cat.cv .afla-cat-ico { background: var(--afla-vert-3);  color: #fff; }
.afla-cat-titre { font-family: var(--afla-fh); font-size: 1.25rem; font-weight: 800; line-height: 1.1; }
.afla-cat.cr .afla-cat-titre { color: var(--afla-rouge-2); } .afla-cat.cb .afla-cat-titre { color: var(--afla-bleu-3); }
.afla-cat.cy .afla-cat-titre { color: var(--afla-or-3);    } .afla-cat.cv .afla-cat-titre { color: var(--afla-vert-3); }
.afla-sclist { display: flex; flex-direction: column; flex: 1; }
.afla-sclist a { display: flex; align-items: center; gap: 9px; font-family: var(--afla-fu); font-size: 12.5px; font-weight: 500; color: var(--afla-ink2); padding: 6px 0; border-bottom: 1px solid var(--afla-regle); transition: color .15s; }
.afla-sclist a:last-child { border-bottom: none; }
.afla-sclist a svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.afla-cat.cr .afla-sclist a:hover { color: var(--afla-rouge-2); } .afla-cat.cb .afla-sclist a:hover { color: var(--afla-bleu-3); }
.afla-cat.cy .afla-sclist a:hover { color: var(--afla-or-3);    } .afla-cat.cv .afla-sclist a:hover { color: var(--afla-vert-3); }
.afla-vt { font-family: var(--afla-fu); font-size: 10.5px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; padding-bottom: 2px; border-bottom: 1.5px solid currentColor; width: fit-content; opacity: .75; transition: opacity .15s; }
.afla-vt:hover { opacity: 1; }
.afla-cat.cr .afla-vt { color: var(--afla-rouge-2); } .afla-cat.cb .afla-vt { color: var(--afla-bleu-3); }
.afla-cat.cy .afla-vt { color: var(--afla-or-3);    } .afla-cat.cv .afla-vt { color: var(--afla-vert-3); }

/* ══════════════════════════════════════
   BANDEAU SECTION
   ══════════════════════════════════════ */
.afla-band { position: relative; padding: 22px 22px 22px; margin-bottom: 44px; }
.afla-band::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 120px; }
.afla-band.r::before { background: #FDEEF3;             } .afla-band.b::before { background: #E8F4FA;            }
.afla-band.y::before { background: var(--afla-or-1);   } .afla-band.v::before { background: #EDF7E9;            }
.afla-band-head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.afla-band-head h2 { font-family: var(--afla-fh); font-size: 2.3rem; font-weight: 800; }
.afla-band-deco { position: absolute; top: 0; right: 0; width: 28px; height: 28px; z-index: 1; }
.afla-vp { font-family: var(--afla-fu); font-size: 10.5px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; padding-bottom: 2px; border-bottom: 1.5px solid currentColor; opacity: .7; transition: opacity .15s; }
.afla-vp:hover { opacity: 1; }

/* ══════════════════════════════════════
   GRILLES
   ══════════════════════════════════════ */
.afla-g2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.afla-g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }

/* ══════════════════════════════════════
   CARTES POST
   ══════════════════════════════════════ */
.afla-carte { background: var(--afla-blanc); display: flex; flex-direction: column; overflow: hidden; transition: transform .18s; }
.afla-carte:hover { transform: translateY(-3px); }
.afla-carte-photo  { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.afla-carte-noimg  { width: 100%; aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.afla-carte.featured .afla-carte-noimg { aspect-ratio: 16/9; font-size: 3rem; }
.afla-carte-corps  { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.afla-sc-badge     { display: inline-flex; align-items: center; gap: 6px; font-family: var(--afla-fu); font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.afla-sc-badge svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.afla-carte h3 { font-family: var(--afla-fh); font-size: 1.2rem; font-weight: 700; line-height: 1.15; margin-bottom: 6px; flex: 1; }
.afla-carte.featured h3 { font-size: 1.5rem; }
.afla-meta { font-family: var(--afla-fu); font-size: 11px; color: var(--afla-ink3); margin-top: 8px; }
/* Cartes horizontales */
.afla-liste-h  { display: flex; flex-direction: column; gap: 1px; margin-top: 14px; background: var(--afla-regle); }
.afla-carte-h  { background: var(--afla-blanc); display: grid; grid-template-columns: 92px 1fr; overflow: hidden; transition: transform .18s; }
.afla-carte-h:hover { transform: translateY(-2px); }
.afla-carte-h .afla-carte-noimg { aspect-ratio: unset; height: 100%; min-height: 72px; font-size: 1.8rem; }
.afla-carte-h .afla-carte-corps { padding: 10px 13px; }
.afla-carte-h h3 { font-size: .95rem; }

/* ══════════════════════════════════════
   ONGLETS
   ══════════════════════════════════════ */
.afla-onglets { display: flex; border-bottom: 2px solid var(--afla-regle); margin-bottom: 24px; overflow-x: auto; }
.afla-onglet  { font-family: var(--afla-fu); font-size: 11.5px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; padding: 10px 16px; border-bottom: 2.5px solid transparent; margin-bottom: -2px; white-space: nowrap; color: var(--afla-ink3); text-decoration: none; transition: color .15s; }
.afla-onglet.ab.actif { color: var(--afla-bleu-3);  border-bottom-color: var(--afla-bleu-3);  }
.afla-onglet.ay.actif { color: var(--afla-or-3);    border-bottom-color: var(--afla-or-3);    }
.afla-onglet.ar.actif { color: var(--afla-rouge-2); border-bottom-color: var(--afla-rouge-2); }
.afla-onglet.av.actif { color: var(--afla-vert-3);  border-bottom-color: var(--afla-vert-3);  }

/* ══════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════ */
.afla-sidebar { display: flex; flex-direction: column; }
.afla-widget  { padding: 20px 0; border-bottom: 1px solid var(--afla-regle); }
.afla-widget:last-child { border-bottom: none; }
.afla-wtitle  { font-family: var(--afla-fh); font-size: 1.4rem; font-weight: 800; margin-bottom: 16px; }
.afla-anniv   { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--afla-regle); }
.afla-anniv:last-child { border-bottom: none; }
.afla-anniv-av  { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--afla-fh); font-size: 1.1rem; font-weight: 800; color: #fff; flex-shrink: 0; }
.afla-anniv-nom { font-family: var(--afla-fu); font-size: 12.5px; font-weight: 600; display: block; }
.afla-anniv-dt  { font-family: var(--afla-fu); font-size: 11px; color: var(--afla-ink3); }
.afla-anniv-age { margin-left: auto; font-family: var(--afla-fh); font-size: 1.15rem; font-weight: 700; white-space: nowrap; }
.afla-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--afla-regle); border: 1px solid var(--afla-regle); }
.afla-stat  { background: var(--afla-creme); padding: 14px 12px; }
.afla-stat-n { font-family: var(--afla-fh); font-size: 2rem; font-weight: 800; line-height: 1; display: block; }
.afla-stat-l { font-family: var(--afla-fu); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--afla-ink3); display: block; margin-top: 2px; }
.afla-liens  { display: flex; flex-direction: column; }
.afla-lien   { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-family: var(--afla-fu); font-size: 13px; font-weight: 500; border-bottom: 1px solid var(--afla-regle); transition: color .15s; }
.afla-lien:last-child { border-bottom: none; }
.afla-lien svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.afla-lien:hover { color: var(--afla-bleu-3); }
/* Séparateur */
.afla-hr { border: none; border-top: 1px solid var(--afla-regle); margin: 36px 0; }

/* ══════════════════════════════════════
   TEMPLATES CATÉGORIE — en-tête
   ══════════════════════════════════════ */
.afla-cat-header { padding: 52px 0 36px; margin-bottom: 0; position: relative; }
.afla-cat-header::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; }
.afla-cat-header.cr::after { background: var(--afla-rouge-2); } .afla-cat-header.cb::after { background: var(--afla-bleu-3); }
.afla-cat-header.cy::after { background: var(--afla-or-3);    } .afla-cat-header.cv::after { background: var(--afla-vert-3); }
.afla-cat-header-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 24px; }
.afla-cat-header-ico { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }
.afla-cat-header h1 { font-family: var(--afla-fh); font-size: 3rem; font-weight: 800; line-height: 1; margin: 0; }
.afla-cat-header .desc { font-family: var(--afla-fb); font-size: 14px; color: var(--afla-ink2); margin-top: 6px; font-style: italic; }
/* Sous-cats nav dans header */
.afla-sous-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding: 16px 0 0; border-top: 1px solid rgba(0,0,0,.1); }
.afla-sous-nav a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--afla-fu); font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 5px 12px; border: 1.5px solid currentColor; transition: all .15s; }
.afla-sous-nav a:hover, .afla-sous-nav a.actif { color: #fff !important; }

/* ══════════════════════════════════════
   GRILLE CATÉGORIE — 3 colonnes pleine largeur
   ══════════════════════════════════════ */
.afla-archive-wrap { max-width: 1180px; margin: 0 auto; padding: 36px 24px 80px; }
.afla-archive-g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.afla-archive-g3 .afla-carte { box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.afla-pagination { display: flex; justify-content: center; gap: 8px; font-family: var(--afla-fu); font-size: 13px; }
.afla-pagination a, .afla-pagination span { padding: 8px 14px; border: 1.5px solid var(--afla-regle); color: var(--afla-ink2); transition: all .15s; }
.afla-pagination .current, .afla-pagination a:hover { color: #fff; border-color: currentColor; }

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 960px) {
  .afla-hero { grid-template-columns: 1fr; min-height: auto; }
  .afla-hero-txt { padding: 0 0 32px; }
  .afla-hero-vis { height: 250px; }
  .afla-hero-bg  { left: 0; }
  .afla-hero-img { right: 0; top: 0; bottom: 0; }
  .afla-cats { grid-template-columns: 1fr 1fr; }
  .afla-cat:nth-child(2) { border-right: none; }
  .afla-g2, .afla-g3, .afla-archive-g3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .afla-hero-vis { height: 200px; }
  .afla-hero-txt h2 { font-size: 2.3rem; }
  .afla-cats { grid-template-columns: 1fr 1fr; }
  .afla-g2, .afla-g3, .afla-archive-g3 { grid-template-columns: 1fr; }
  .afla-cat-header h1 { font-size: 2rem; }
}
