/*
Theme Name: AFLA
Author: AFLA
Description: Theme AFLA
Version: 1.0
*/

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@400;600&family=Source+Sans+3:wght@400;500;600&display=swap');

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

body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  color: #0f172a;
  line-height: 1.6;
  background: #fff;
}

a { color: #0d9488; }

/* Navbar */
.afla-nav {
  background: #fff;
  border-bottom: 1.5px solid #e2e8f0;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.afla-nav img { height: 42px; width: auto; }
.afla-nav-links { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.afla-nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: #4a5568;
  text-decoration: none;
  padding: 7px 11px;
  border-radius: 7px;
}
.afla-nav-links a:hover { background: #f0fdfa; color: #0d9488; }
.afla-nav-cta { margin-left: auto; display: flex; gap: 8px; }
.afla-nav-cta a {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
}
.afla-nav-cta .ghost { border: 1.5px solid #e2e8f0; color: #4a5568; }
.afla-nav-cta .solid { background: #0f172a; color: #fff; }

/* Content */
.afla-main {
  max-width: 820px;
  margin: 48px auto;
  padding: 0 40px;
}
.afla-main h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1.5px solid #e2e8f0;
}
.afla-main h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 26px;
  margin: 32px 0 12px;
}
.afla-main h3 { font-size: 19px; margin: 24px 0 8px; }
.afla-main p { margin-bottom: 16px; color: #4a5568; }
.afla-main ul, .afla-main ol { margin: 0 0 16px 24px; color: #4a5568; }
.afla-main li { margin-bottom: 6px; }
.afla-main img { max-width: 100%; height: auto; border-radius: 10px; }
.afla-main table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.afla-main th, .afla-main td { padding: 10px 14px; border-bottom: 1px solid #e2e8f0; text-align: left; font-size: 14px; }

/* Footer */
.afla-footer {
  background: #0f172a;
  color: rgba(255,255,255,0.5);
  padding: 48px 40px 28px;
  margin-top: 80px;
}
.afla-footer-cols {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.afla-footer h4 {
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.afla-footer a {
  display: block;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 7px;
}
.afla-footer a:hover { color: #5eead4; }
.afla-footer-desc { font-size: 13px; max-width: 240px; }
.afla-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Cards (posts) */
.afla-cards { max-width: 1200px; margin: 48px auto; padding: 0 40px; display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.afla-card { border: 1.5px solid #e2e8f0; border-radius: 14px; overflow: hidden; transition: all .2s; }
.afla-card:hover { border-color: #0d9488; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.08); }
.afla-card a { text-decoration: none; color: inherit; display: block; }
.afla-card-img { height: 160px; background: linear-gradient(135deg,#0b4d47,#0d9488); }
.afla-card-body { padding: 18px; }
.afla-card-title { font-weight: 600; font-size: 15px; color: #0f172a; margin-bottom: 6px; }
.afla-card-date { font-size: 12px; color: #a0aec0; }

@media (max-width: 900px) {
  .afla-nav { flex-wrap: wrap; height: auto; padding: 12px 20px; }
  .afla-nav-links { display: none; }
  .afla-footer-cols { grid-template-columns: 1fr 1fr; }
  .afla-cards { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════
   NAVBAR FIXE (sticky)
════════════════════════════════════════ */
.afla-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.afla-hero {
  background: #111827;
  padding: 80px 40px;
  overflow: hidden;
}
.afla-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: center;
}
.afla-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5eead4;
  margin-bottom: 18px;
}
.afla-hero-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 20px;
}
.afla-hero-title em { color: #5eead4; font-style: italic; }
.afla-hero-desc {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  margin-bottom: 32px;
}
.afla-hero-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 48px; }
.afla-btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.afla-btn-teal { background: #0d9488; color: #fff; }
.afla-btn-teal:hover { background: #0b7a72; }
.afla-btn-light { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.15); }
.afla-btn-light:hover { background: rgba(255,255,255,0.14); }
.afla-hero-stats {
  display: flex;
  gap: 36px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.afla-hero-stat .num { font-family: 'Source Serif 4', serif; font-size: 28px; color: #fff; line-height: 1; }
.afla-hero-stat .lbl { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 4px; }
.afla-hero-right { display: flex; flex-direction: column; gap: 12px; }
.afla-hero-widget {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 18px 20px;
}
.afla-hero-widget .wtitle {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 10px;
}
.afla-hero-widget .wtext { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.7; }
.afla-hero-widget .wtext a { color: #5eead4; }
.afla-hero-socials { display: flex; gap: 7px; flex-wrap: wrap; }
.afla-hero-socials a {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.65);
  text-decoration: none;
}
.afla-hero-socials a:hover { border-color: #5eead4; color: #5eead4; }

/* ════════════════════════════════════════
   4 RUBRIQUES
════════════════════════════════════════ */
.afla-feat {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border-bottom: 1.5px solid #e2e8f0;
}
.afla-feat-col {
  padding: 36px 28px;
  border-right: 1.5px solid #e2e8f0;
  text-decoration: none;
  display: block;
  transition: background 0.15s;
}
.afla-feat-col:last-child { border-right: none; }
.afla-feat-col:hover { background: #f0fdfa; }
.afla-feat-col .fnum { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #0d9488; margin-bottom: 12px; }
.afla-feat-col .fname { font-family: 'Source Serif 4', serif; font-size: 18px; color: #0f172a; margin-bottom: 6px; }
.afla-feat-col .fdesc { font-size: 13px; color: #718096; line-height: 1.6; }

/* ════════════════════════════════════════
   DERNIERS PROJETS
════════════════════════════════════════ */
.afla-projects { max-width: 1200px; margin: 72px auto; padding: 0 40px; }
.afla-projects-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid #e2e8f0;
}
.afla-projects-head h2 { font-family: 'Source Serif 4', serif; font-size: 32px; }
.afla-projects-head a { font-size: 13px; font-weight: 600; color: #0d9488; text-decoration: none; }
.afla-projects .afla-cards { max-width: none; margin: 0; padding: 0; }

@media (max-width: 900px) {
  .afla-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .afla-hero-right { display: none; }
  .afla-hero-title { font-size: 34px; }
  .afla-feat { grid-template-columns: 1fr 1fr; }
  .afla-feat-col:nth-child(2) { border-right: none; }
  .afla-feat-col:nth-child(3), .afla-feat-col:nth-child(4) { border-top: 1.5px solid #e2e8f0; }
}
@media (max-width: 600px) {
  .afla-feat { grid-template-columns: 1fr; }
  .afla-feat-col { border-right: none; border-top: 1.5px solid #e2e8f0; }
  .afla-hero-stats { gap: 20px; flex-wrap: wrap; }
}

/* ════════════════════════════════════════
   DROPDOWN MENU (hover, pur CSS)
════════════════════════════════════════ */
.afla-dd { position: relative; display: inline-block; }
.afla-dd-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
}
.afla-dd-btn span { font-size: 9px; opacity: 0.5; }
.afla-dd-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px;
  min-width: 220px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 1001;
}
/* Au survol du conteneur, le menu apparaît */
.afla-dd:hover .afla-dd-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.afla-dd-menu a {
  display: block !important;
  padding: 8px 12px !important;
  border-radius: 8px;
  font-size: 13px;
  color: #4a5568;
  white-space: nowrap;
}
.afla-dd-menu a:hover { background: #f0fdfa; color: #0d9488; }
/* Petite zone tampon pour éviter que le menu disparaisse */
.afla-dd::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
}

@media (max-width: 900px) {
  .afla-dd-menu { display: none; }
}

/* ════════════════════════════════════════
   PAGE HERO + SIDEBAR
════════════════════════════════════════ */
.afla-page-hero {
  background: #fff;
  border-bottom: 1.5px solid #e2e8f0;
  padding: 52px 40px 40px;
}
.afla-page-hero-inner { max-width: 1200px; margin: 0 auto; }
.afla-page-hero .afla-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.afla-page-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #0f172a;
}

.afla-page-layout {
  max-width: 1200px;
  margin: 48px auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}
.afla-page-content { font-size: 15.5px; line-height: 1.78; color: #4a5568; }
.afla-page-content h2 { font-family: 'Source Serif 4', serif; font-size: 26px; color: #0f172a; margin: 32px 0 12px; }
.afla-page-content h3 { font-size: 19px; color: #0f172a; margin: 24px 0 8px; }
.afla-page-content p { margin-bottom: 16px; }
.afla-page-content ul, .afla-page-content ol { margin: 0 0 16px 24px; }
.afla-page-content li { margin-bottom: 6px; }
.afla-page-content a { color: #0d9488; font-weight: 500; }
.afla-page-content strong { color: #0f172a; }
.afla-page-content img { max-width: 100%; height: auto; border-radius: 10px; }
.afla-page-content table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.afla-page-content th, .afla-page-content td { padding: 10px 14px; border-bottom: 1px solid #e2e8f0; text-align: left; font-size: 14px; }

.afla-page-sidebar { display: flex; flex-direction: column; gap: 16px; }
.afla-side-box {
  background: #fafaf8;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
}
.afla-side-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #718096;
  margin-bottom: 12px;
}
.afla-side-box a {
  display: block;
  font-size: 13px;
  color: #4a5568;
  text-decoration: none;
  padding: 7px 0;
  border-top: 1px solid #e2e8f0;
}
.afla-side-box a:first-of-type { border-top: none; }
.afla-side-box a:hover { color: #0d9488; }
.afla-side-box-teal { background: #0d9488; border-color: #0d9488; }
.afla-side-btn {
  display: inline-block !important;
  background: rgba(255,255,255,0.2);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 16px !important;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  border-top: 1px solid rgba(255,255,255,0.3) !important;
}
.afla-side-btn:hover { background: rgba(255,255,255,0.3); }

@media (max-width: 900px) {
  .afla-page-layout { grid-template-columns: 1fr; gap: 32px; }
  .afla-page-title { font-size: 34px; }
}

/* ════════════════════════════════════════
   PAGE PLEINE LARGEUR (Wiki)
════════════════════════════════════════ */
.afla-page-full {
  max-width: 1200px;
  margin: 48px auto;
  padding: 0 40px;
}
@media (max-width: 768px) {
  .afla-page-full { padding: 0 20px; }
}


}

/* ════════════════════════════════════════
   PRIX D'AFLA — vkladki + verstka
════════════════════════════════════════ */
.afla-prix-wrap { max-width: 1200px; margin: 48px auto; padding: 0 40px; }

/* Onglets */
.afla-prix-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
  border-bottom: 1.5px solid #e2e8f0;
  flex-wrap: wrap;
}
.afla-prix-tab {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border: none;
  background: none;
  color: #718096;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
  transition: color 0.15s, border-color 0.15s;
}
.afla-prix-tab:hover { color: #0d9488; }
.afla-prix-tab.active { color: #0d9488; border-bottom-color: #0d9488; }

.afla-prix-panel { display: none; }
.afla-prix-panel.active { display: block; }

/* Grille principale + sidebar */
.afla-prix-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.afla-prix-h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-bottom: 16px;
}
.afla-prix-intro {
  font-size: 16px;
  line-height: 1.75;
  color: #4a5568;
  margin-bottom: 28px;
}

/* Cartes prix */
.afla-prix-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
.afla-prix-card {
  background: #f0fdfa;
  border: 1.5px solid rgba(13,148,136,0.2);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
}
.afla-prix-montant {
  font-family: 'Source Serif 4', serif;
  font-size: 40px;
  color: #0d9488;
  line-height: 1;
  margin-bottom: 14px;
}
.afla-prix-label { font-size: 15px; font-weight: 600; color: #0f172a; margin-bottom: 4px; }
.afla-prix-laureats { font-size: 13px; color: #718096; }

/* Conditions */
.afla-prix-conditions {
  background: #f0fdfa;
  border-left: 3px solid #0d9488;
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #4a5568;
  font-style: italic;
  margin-bottom: 24px;
}
.afla-prix-conditions strong { color: #0f172a; font-style: normal; }

/* Calendrier */
.afla-prix-cal {
  background: #fafaf8;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 28px;
}
.afla-prix-cal-title { font-size: 15px; font-weight: 700; color: #0f172a; margin-bottom: 14px; }
.afla-prix-cal-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
}
.afla-prix-cal-key {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #718096;
  min-width: 110px;
}
.afla-prix-cal-val { font-size: 15px; color: #0f172a; font-weight: 500; }

/* Bouton candidater */
.afla-prix-btn {
  display: inline-block;
  background: #0d9488;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.afla-prix-btn:hover { background: #0b7a72; transform: translateY(-1px); }

/* Sidebar */
.afla-prix-side { display: flex; flex-direction: column; gap: 16px; }
.afla-prix-jury {
  background: #0d9488;
  border-radius: 16px;
  padding: 24px;
  color: #fff;
}
.afla-prix-jury-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}
.afla-prix-jury-sub {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.afla-prix-jury-member {
  font-size: 13.5px;
  color: rgba(255,255,255,0.9);
  padding: 5px 0;
  line-height: 1.4;
}

.afla-prix-archives {
  background: #fafaf8;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 24px;
}
.afla-prix-arch-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #718096;
  margin-bottom: 12px;
}
.afla-prix-archives a {
  display: block;
  font-size: 14px;
  color: #0d9488;
  text-decoration: none;
  padding: 9px 0;
  border-top: 1px solid #e2e8f0;
  font-weight: 500;
}
.afla-prix-archives a:first-of-type { border-top: none; }
.afla-prix-archives a:hover { color: #0b7a72; }

@media (max-width: 900px) {
  .afla-prix-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .afla-prix-wrap { padding: 0 20px; }
  .afla-prix-cards { grid-template-columns: 1fr; }
  .afla-prix-tab { padding: 10px 16px; font-size: 13px; }
}
