/* ============================================================
   AGRIS — Styles des pages v4 « Terra »
   (hero photo, catalogue, détail cours, paiement Airtel, lecteur…)
   ============================================================ */

/* ================= ACCUEIL ================= */
/* Hero plein écran sur photographie réelle + voile vert (léger à droite pour laisser lire la photo) */
.hero {
  position: relative;
  min-height: min(86vh, 720px);
  display: flex; align-items: center;
  color: #F2F7EC;
  isolation: isolate;
}
.hero .hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: url('/img/photos/hero.jpg') center 42%/cover no-repeat;
  animation: hero-zoom 22s ease-in-out infinite alternate;
}
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.07); } }
.hero .hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(58% 80% at 12% 30%, rgba(6, 26, 13, .55), transparent 65%),
    linear-gradient(96deg, rgba(7, 30, 16, .88) 0%, rgba(7, 30, 16, .62) 46%, rgba(7, 30, 16, .18) 82%, rgba(7, 30, 16, .34) 100%);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 640px);
  gap: 44px;
  align-items: center; padding: 100px 0 118px; position: relative;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(9, 36, 19, .42); border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 7px 16px; font-size: .84rem; font-weight: 600; color: #fff;
  margin-bottom: 20px;
}
.hero-pill .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright);
  box-shadow: 0 0 0 4px rgba(180, 227, 138, .3);
  animation: pulse-dot 2.2s ease infinite;
}
@keyframes pulse-dot { 50% { box-shadow: 0 0 0 7px rgba(180, 227, 138, .1); } }
.hero h1 { margin-bottom: 18px; color: #fff; text-shadow: 0 2px 22px rgba(4, 20, 10, .45); }
.hero h1 em { font-style: normal; color: var(--accent-bright); position: relative; }
.hero h1 em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 13px;
  background: linear-gradient(90deg, rgba(180, 227, 138, .5), rgba(124, 194, 78, .18));
  border-radius: 7px; z-index: -1;
}
.hero-sub { font-size: 1.14rem; color: rgba(242, 248, 235, .95); max-width: 600px; margin-bottom: 30px; }
.hero-sub strong { color: #fff; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 38px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.hero-stats {
  display: flex; gap: 0; flex-wrap: wrap;
  background: rgba(9, 36, 19, .5); border: 1px solid rgba(255, 255, 255, .26);
  backdrop-filter: blur(10px);
  border-radius: 18px; overflow: hidden; width: fit-content;
}
.hero-stats div { display: flex; flex-direction: column; padding: 15px 28px; }
.hero-stats div + div { border-left: 1px solid rgba(255, 255, 255, .22); }
.hero-stats strong { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: #fff; line-height: 1.15; }
.hero-stats span { font-size: .82rem; color: rgba(242, 248, 235, .85); }

/* Colonne photo secondaire (optionnelle, pages SENASEM) */
.hero-art { position: relative; }
.hero-art > img {
  width: 100%; aspect-ratio: 4/3.4; object-fit: cover;
  border-radius: 24px; border: 5px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-hard);
}
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 16px; padding: 12px 18px;
  box-shadow: var(--shadow-hard); border: 1px solid var(--line-soft);
  font-size: 1.35rem; animation: float 4.5s ease-in-out infinite;
}
.float-card div { display: flex; flex-direction: column; line-height: 1.25; }
.float-card strong { font-size: .95rem; color: var(--primary-dark); }
.float-card span { font-size: .74rem; color: var(--muted); }
.fc1 { top: 8%; right: -4%; }
.fc2 { bottom: 12%; left: -6%; animation-delay: 2.2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }

/* Bandeau de confiance */
.trust-band {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px;
  background: #fff; border: 1px solid var(--line-soft); border-radius: 20px;
  padding: 18px 22px; box-shadow: var(--shadow-soft);
  margin-top: -46px; position: relative; z-index: 5;
}
.trust-band div { display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 550; color: var(--ink-soft); }
.trust-band .tb-ic {
  flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-dark); font-size: 1.1rem;
}

/* Catégories — cartes photographiques */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; }
.cat-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 16/11; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-soft); isolation: isolate;
  transition: transform .2s, box-shadow .2s;
}
.cat-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform .5s ease;
}
.cat-card::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(185deg, rgba(11, 46, 27, 0) 30%, rgba(11, 46, 27, .88) 100%);
  transition: background .2s;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cat-card:hover img { transform: scale(1.08); }
.cat-card .cat-label { padding: 16px; color: #fff; }
.cat-card .cat-label strong { font-family: var(--font-head); font-size: 1.02rem; line-height: 1.3; display: block; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.cat-card .n {
  font-size: .78rem; color: rgba(255, 255, 255, .82);
  display: inline-flex; align-items: center; gap: 5px; margin-top: 3px;
}
.cat-card .cat-arrow {
  position: absolute; top: 13px; right: 13px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--primary-dark);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(-5px);
  transition: opacity .2s, transform .2s;
}
.cat-card:hover .cat-arrow { opacity: 1; transform: none; }
/* Déclinaison compacte (lignes, pas de photo) */
.cat-card.compact {
  aspect-ratio: auto; background: #fff; border: 1px solid var(--line-soft);
  padding: 20px; justify-content: flex-start;
}
.cat-card.compact::after { display: none; }
.cat-card.compact .cat-ic {
  font-size: 1.6rem; width: 52px; height: 52px; border-radius: 15px;
  display: grid; place-items: center; margin-bottom: 8px;
  background: linear-gradient(145deg, var(--primary-soft), #F4F9EC);
}
.cat-card.compact strong { color: var(--ink); font-size: .98rem; }
.cat-card.compact .n { color: var(--muted); }

/* Comment ça marche */
.section-head.center { justify-content: center; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head.center .kicker::before { display: none; }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.how-col {
  background: #fff; border-radius: 24px; border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft); position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.how-col .how-photo {
  position: relative; aspect-ratio: 16/7.4; overflow: hidden;
}
.how-col .how-photo img { width: 100%; height: 100%; object-fit: cover; }
.how-col .how-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(185deg, rgba(11, 46, 27, .05) 40%, rgba(11, 46, 27, .55));
}
.how-col .how-photo .how-role {
  position: absolute; left: 18px; bottom: 14px; z-index: 2; color: #fff;
}
.how-col .how-photo .how-role h3 { color: #fff; font-size: 1.2rem; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.how-col .how-photo .how-role p { font-size: .85rem; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.how-col .how-body { padding: 26px 30px 30px; display: flex; flex-direction: column; flex: 1; }
.steps { list-style: none; margin: 0 0 26px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps li > span {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad-primary); color: #fff; font-weight: 700; font-size: .88rem;
  display: grid; place-items: center; margin-top: 2px; box-shadow: 0 5px 12px -4px rgba(30, 107, 51, .5);
}
.how-col.alt .steps li > span { background: var(--grad-gold); color: #3C2A05; }
.steps strong { display: block; color: var(--ink); margin-bottom: 1px; }
.how-col > .btn, .how-body > .btn { align-self: flex-start; }

/* Avantages */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.feat {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-soft); transition: transform .18s, box-shadow .18s;
  position: relative; overflow: hidden;
}
.feat::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--grad-gold); opacity: 0; transition: opacity .2s;
}
.feat:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feat:hover::before { opacity: 1; }
.feat-ic {
  font-size: 1.5rem; width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 13px;
  background: var(--gold-soft);
}
.feat h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feat p { font-size: .92rem; color: var(--muted); }

/* CTA agronome — photographie + voile */
.cta-agronome {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 30px; padding: 62px 54px; color: #EAF4E2;
  box-shadow: 0 30px 66px -24px rgba(16, 59, 31, .62);
}
.cta-agronome .cta-bg {
  position: absolute; inset: 0; z-index: -2;
  background: url('/img/photos/cta-agronome.jpg') center 30%/cover no-repeat;
}
.cta-agronome .cta-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 110% at 92% 0%, rgba(180, 227, 138, .28), transparent 55%),
    linear-gradient(95deg, rgba(9, 42, 22, .94) 0%, rgba(12, 58, 30, .82) 48%, rgba(14, 66, 33, .42) 100%);
}
.cta-agronome h2 { color: #fff; max-width: 680px; margin-bottom: 12px; position: relative; }
.cta-agronome p { max-width: 640px; margin-bottom: 26px; font-size: 1.05rem; position: relative; }
.cta-agronome .hero-cta { margin-bottom: 0; position: relative; }

/* ================= AUTH (écran partagé photo / formulaire) ================= */
.auth-wrap {
  min-height: calc(100vh - 63px); display: grid; grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.auth-photo {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
}
.auth-photo .ap-img {
  position: absolute; inset: 0; z-index: -2;
  background: url('/img/photos/auth.jpg') center 30%/cover no-repeat;
}
.auth-photo .ap-veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(185deg, rgba(11, 46, 27, .18) 20%, rgba(11, 46, 27, .85) 100%);
}
.auth-photo .ap-quote { position: relative; padding: 42px 46px; color: #fff; max-width: 560px; }
.auth-photo .ap-quote h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 12px; }
.auth-photo .ap-quote p { color: rgba(240, 247, 233, .9); font-size: 1.02rem; margin-bottom: 20px; }
.auth-photo .ap-points { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.auth-photo .ap-points li { display: flex; gap: 9px; align-items: center; font-size: .92rem; color: rgba(240, 247, 233, .95); }
.auth-photo .ap-points .ic { color: var(--accent-bright); flex: none; }
.auth-panel { display: grid; place-items: center; padding: 40px 24px; }
.auth-card {
  width: min(470px, 94vw); padding: 38px 36px; position: relative; overflow: hidden;
}
.auth-card::before {
  content: ''; position: absolute; top: -70px; right: -70px; width: 200px; height: 200px;
  border-radius: 50%; background: radial-gradient(circle, rgba(124, 194, 78, .18), transparent 70%);
}
.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 26px; font-size: .95rem; }
.role-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.role-opt {
  border: 2px solid var(--line); border-radius: 14px; padding: 14px;
  display: flex; flex-direction: column; gap: 4px; cursor: pointer;
  background: #fff; transition: border-color .14s, background .14s, transform .14s; text-align: center;
}
.role-opt:hover { transform: translateY(-2px); }
.role-opt .emoji { font-size: 1.6rem; }
.role-opt strong { font-size: .95rem; color: var(--ink); }
.role-opt span { font-size: .76rem; color: var(--muted); }
.role-opt.sel { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px rgba(47, 158, 68, .12); }
.auth-alt { text-align: center; margin-top: 18px; font-size: .9rem; color: var(--muted); }
.auth-alt a { color: var(--primary-dark); font-weight: 650; }
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-photo { min-height: 240px; }
  .auth-photo .ap-quote { padding: 26px 24px; }
  .auth-photo .ap-quote h2 { font-size: 1.35rem; }
  .auth-photo .ap-points { display: none; }
  .auth-photo .ap-quote p { margin-bottom: 0; }
}

/* ================= CATALOGUE ================= */
.catalog-head { padding: 46px 0 10px; }
.filters {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  background: #fff; border: 1px solid var(--line-soft); border-radius: 18px;
  padding: 14px 16px; box-shadow: var(--shadow-soft); margin: 22px 0 34px;
}
.filters .search { flex: 1; min-width: 220px; position: relative; }
.filters .search .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.filters .search input { padding-left: 40px; }
.filters select { width: auto; min-width: 168px; }
.results-count { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }

/* ================= DÉTAIL COURS ================= */
/* Hero de formation : la couverture photographique devient le fond */
.course-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--primary-deep);
  color: #E8F3E0; padding: 46px 0 130px;
}
.course-hero .ch-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center 35%;
  filter: saturate(1.05);
  transform: scale(1.04);
}
.course-hero .ch-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 90% 0%, rgba(180, 227, 138, .18), transparent 55%),
    var(--photo-veil);
}
.crumb { font-size: .84rem; color: #B7D4AF; margin-bottom: 18px; display: inline-flex; gap: 8px; align-items: center; position: relative; transition: color .15s; }
.crumb:hover { color: #fff; }
.course-hero h1 { color: #fff; max-width: 780px; margin-bottom: 14px; position: relative; }
.course-hero .ch-meta { display: flex; flex-wrap: wrap; gap: 18px; color: #CFE5C4; font-size: .92rem; margin-bottom: 8px; position: relative; }
.course-hero .ch-meta span { display: inline-flex; gap: 7px; align-items: center; }
.course-hero .ch-meta .stars { color: #FFD54F; }
.course-hero .ch-meta .stars .n { color: #CFE5C4; }
.course-hero .cc-author { color: #DFEDD9; }
.chips { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; position: relative; }
.chips .badge { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(3px); }

.course-layout { display: grid; grid-template-columns: 1fr 370px; gap: 30px; margin-top: -70px; align-items: start; position: relative; z-index: 2; }
.course-main { display: flex; flex-direction: column; gap: 24px; }
.panel { padding: 28px; }
.panel h2 { font-size: 1.3rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.panel h2 .ic { color: var(--primary); }

.lesson-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line-soft);
  margin-bottom: 10px; background: #fff; transition: background .14s, border-color .14s, transform .14s, box-shadow .14s;
}
.lesson-row:hover { border-color: var(--accent-bright); background: #FBFDF7; transform: translateX(4px); box-shadow: -3px 6px 16px -10px rgba(11, 46, 27, .25); }
.lesson-row .lr-ic {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-dark);
}
.lesson-row .lr-ic.doc, .lesson-row .lr-ic.slides { background: var(--gold-soft); color: #8F6208; }
.lesson-row .lr-body { flex: 1; min-width: 0; }
.lesson-row .lr-body strong { display: block; font-size: .95rem; }
.lesson-row .lr-body span { font-size: .8rem; color: var(--muted); }
.lesson-row .lr-dur { font-size: .82rem; color: var(--muted); white-space: nowrap; display: inline-flex; gap: 5px; align-items: center; }
.lesson-row.locked { opacity: .82; }
.lesson-row.locked .lr-ic { background: var(--bg-soft); color: var(--muted); }
.lesson-row .lr-lock { color: var(--muted); }

.buy-card { position: sticky; top: 86px; overflow: hidden; }
.buy-card .bc-cover { aspect-ratio: 16/9.6; position: relative; }
.buy-card .bc-cover img { width: 100%; height: 100%; object-fit: cover; }
.buy-card .bc-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11, 46, 27, .35));
}
.buy-card .bc-body { padding: 24px; }
.buy-card .price { font-size: 2rem; }
.buy-card .price small { font-size: .85rem; color: var(--muted); font-weight: 500; }
.buy-card .bc-list { list-style: none; margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.buy-card .bc-list li { display: flex; gap: 10px; align-items: center; font-size: .92rem; color: var(--ink-soft); }
.buy-card .bc-list .ic { color: var(--accent); flex: none; }
.pay-note { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 12px; }

.author-box { display: flex; gap: 16px; align-items: flex-start; }
.author-box .avatar { width: 60px; height: 60px; font-size: 1.3rem; }
.author-box h3 { font-size: 1.05rem; }
.author-box .spec { color: var(--primary); font-size: .84rem; font-weight: 650; margin: 2px 0 8px; }
.author-box p { font-size: .92rem; color: var(--muted); }

/* Avis */
.review { border-top: 1px solid var(--line-soft); padding: 18px 0; }
.review:first-of-type { border-top: none; }
.review .rv-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review .rv-head .avatar { width: 38px; height: 38px; }
.review .rv-head strong { font-size: .95rem; }
.review .rv-head time { font-size: .78rem; color: var(--muted); }
.review p { font-size: .94rem; color: var(--ink-soft); }
.review-form { background: var(--bg-soft); border-radius: 14px; padding: 18px; margin-bottom: 8px; }
.rate-pick { display: flex; gap: 4px; margin-bottom: 12px; }
.rate-pick button { background: none; border: none; color: #D9DFCF; padding: 2px; transition: transform .1s, color .1s; }
.rate-pick button.on { color: var(--gold); }
.rate-pick button:hover { transform: scale(1.18); }

/* ================= PAIEMENT AIRTEL MONEY ================= */
.pay-summary { background: var(--bg-soft); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; }
.pay-summary .row { display: flex; justify-content: space-between; gap: 14px; font-size: .92rem; margin-bottom: 6px; }
.pay-summary .row.total { font-weight: 800; font-size: 1.05rem; color: var(--primary-dark); border-top: 1px dashed var(--line); padding-top: 8px; }

.curr-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.curr-opt {
  border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px;
  background: #fff; text-align: center; transition: border-color .13s, background .13s, box-shadow .13s, transform .13s;
  cursor: pointer;
}
.curr-opt:hover { transform: translateY(-2px); }
.curr-opt strong { display: block; font-family: var(--font-head); font-size: 1.12rem; color: var(--ink); }
.curr-opt span { font-size: .76rem; color: var(--muted); }
.curr-opt.sel { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px rgba(47, 158, 68, .12); }
.curr-opt.sel strong { color: var(--primary-dark); }

.airtel-card {
  border: 1.6px solid #F3C9C9; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, #FFF7F7 0%, #FFFFFF 100%);
}
.ac-brand {
  display: flex; align-items: baseline; gap: 7px; padding: 12px 18px;
  background: var(--airtel); color: #fff;
}
.ac-logo { font-family: var(--font-head); font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
.ac-money { font-weight: 500; font-size: .92rem; opacity: .92; }
.ac-rows { padding: 8px 18px 4px; }
.ac-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line-soft); font-size: .88rem; }
.ac-row span { color: var(--muted); }
.ac-row strong { font-size: .95rem; }
.ac-row.big strong { font-family: var(--font-head); font-size: 1.28rem; letter-spacing: .02em; color: var(--airtel-dark); }
.ac-steps { padding: 12px 18px 16px 38px; font-size: .86rem; color: var(--ink-soft); }
.ac-steps li { margin-bottom: 5px; }
.ac-steps strong { color: var(--airtel-dark); }

/* ================= MES FORMATIONS ================= */
.page-head { padding: 46px 0 8px; }
.page-head h1 { font-size: 1.9rem; margin-bottom: 6px; }
.page-head p { color: var(--muted); }
.my-course { display: flex; gap: 18px; padding: 18px; align-items: center; transition: box-shadow .2s, transform .2s; }
.my-course:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.my-course .mc-cover { flex: none; width: 190px; aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; }
.my-course .mc-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.my-course:hover .mc-cover img { transform: scale(1.05); }
.my-course .mc-body { flex: 1; min-width: 0; }
.my-course h3 { font-size: 1.08rem; margin-bottom: 4px; }
.my-course .mc-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: .82rem; margin-bottom: 12px; }
.prog { display: flex; align-items: center; gap: 12px; }
.prog .bar { flex: 1; height: 10px; border-radius: 6px; background: var(--bg-soft); overflow: hidden; box-shadow: inset 0 1px 2px rgba(16, 59, 31, .08); }
.prog .bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--primary)); transition: width .5s cubic-bezier(.2, .7, .3, 1); }
.prog span { font-size: .82rem; font-weight: 700; color: var(--primary-dark); white-space: nowrap; }
.my-course .mc-actions { display: flex; flex-direction: column; gap: 8px; align-self: stretch; justify-content: center; }

/* ================= ESPACE AGRONOME / ADMIN ================= */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 26px 0 34px; }
.stat-card { padding: 20px 22px; display: flex; align-items: center; gap: 16px; transition: transform .18s, box-shadow .18s; }
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-card .sc-ic {
  flex: none; width: 48px; height: 48px; border-radius: 14px;
  background: var(--primary-soft); color: var(--primary-dark); display: grid; place-items: center;
}
.stat-card strong { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; display: block; line-height: 1.15; }
.stat-card span { font-size: .82rem; color: var(--muted); }

.mng-course { margin-bottom: 22px; }
.mng-course .mg-head { display: flex; gap: 16px; align-items: center; padding: 18px; flex-wrap: wrap; }
.mng-course .mg-cover { width: 150px; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; flex: none; }
.mng-course .mg-cover img { width: 100%; height: 100%; object-fit: cover; }
.mng-course .mg-body { flex: 1; min-width: 240px; }
.mng-course h3 { font-size: 1.05rem; }
.mng-course .mg-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin: 6px 0 10px; align-items: center; }
.mng-course .mg-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.lessons-box { border-top: 1px dashed var(--line); padding: 18px; background: #FBFCF6; border-radius: 0 0 var(--radius) var(--radius); }
.lessons-box h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-family: var(--font-head); color: var(--ink); }
.lesson-admin { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line-soft); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.lesson-admin .la-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-dark); }
.lesson-admin .la-ic.doc, .lesson-admin .la-ic.slides { background: var(--gold-soft); color: #8F6208; }
.lesson-admin .la-body { flex: 1; min-width: 0; }
.lesson-admin .la-body strong { font-size: .9rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lesson-admin .la-body span { font-size: .74rem; color: var(--muted); }
.icon-btn { flex: none; width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--muted); display: grid; place-items: center; transition: border-color .14s, color .14s, background .14s, transform .14s; }
.icon-btn:hover { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-soft); transform: translateY(-1px); }
.icon-btn.danger:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }

.tabs { display: flex; gap: 8px; margin: 26px 0; flex-wrap: wrap; }
.tab {
  padding: 10px 20px; border-radius: 999px; border: 1.6px solid var(--line);
  background: #fff; font-weight: 600; font-size: .92rem; color: var(--ink-soft);
  transition: background .15s, color .15s, box-shadow .15s;
}
.tab:hover { border-color: var(--accent); color: var(--primary-dark); }
.tab.on { background: var(--grad-primary); border-color: transparent; color: #fff; box-shadow: 0 7px 16px -6px rgba(30, 107, 51, .5); }

.sales-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.sales-table th { text-align: left; padding: 12px 14px; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 2px solid var(--line); }
.sales-table td { padding: 13px 14px; border-bottom: 1px solid var(--line-soft); }
.sales-table tr:hover td { background: #FBFDF7; }

.type-pick { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 18px; }

/* Rapports automatiques (espace admin — paiements Airtel Money) */
.report-card {
  border: 1px solid var(--line-soft); border-radius: 14px;
  padding: 14px 16px; margin-bottom: 10px; background: #fff;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.report-card.unread {
  border-left: 4px solid var(--airtel);
  background: #FFFBFB;
}
.report-card.unread:hover { border-color: #F3C9C9; box-shadow: var(--shadow-soft); }
.report-card .rp-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
}
.report-card .rp-head time { font-size: .76rem; color: var(--muted); }
.report-card .rp-dot {
  margin-left: auto; width: 9px; height: 9px; border-radius: 50%;
  background: var(--airtel); box-shadow: 0 0 0 3px rgba(228, 0, 0, .15);
  animation: rp-pulse 2s ease infinite;
}
@keyframes rp-pulse { 50% { box-shadow: 0 0 0 6px rgba(228, 0, 0, .07); } }
.report-card p { font-size: .88rem; color: var(--ink-soft); }
.type-opt { border: 2px solid var(--line); border-radius: 14px; padding: 14px; display: flex; align-items: center; gap: 12px; cursor: pointer; background: #fff; transition: border-color .14s, background .14s, transform .14s; }
.type-opt:hover { transform: translateY(-2px); }
.type-opt.sel { border-color: var(--primary); background: var(--primary-soft); }
.type-opt .ic { color: var(--primary); }
.type-opt strong { display: block; font-size: .92rem; }
.type-opt span { font-size: .76rem; color: var(--muted); }
@media (max-width: 620px) { .type-pick { grid-template-columns: 1fr; } }

/* ================= LECTEUR ================= */
.reader { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; padding: 34px 0 60px; }
.reader-side { position: sticky; top: 86px; max-height: calc(100vh - 110px); display: flex; flex-direction: column; }
.reader-side .rs-head { padding: 20px; border-bottom: 1px solid var(--line-soft); background: linear-gradient(160deg, var(--primary-soft), #fff 70%); border-radius: var(--radius) var(--radius) 0 0; }
.reader-side .rs-head h3 { font-size: 1rem; line-height: 1.4; }
.rs-list { overflow: auto; padding: 12px; flex: 1; }
.rs-progress { padding: 14px 20px; border-top: 1px solid var(--line-soft); background: var(--bg-soft); border-radius: 0 0 var(--radius) var(--radius); }
.rs-lesson {
  display: flex; gap: 12px; align-items: center; width: 100%; text-align: left;
  padding: 11px 12px; border-radius: 12px; border: none; background: none; margin-bottom: 4px;
  transition: background .13s, transform .13s;
}
.rs-lesson:hover { background: var(--bg-soft); transform: translateX(3px); }
.rs-lesson.on { background: var(--primary-soft); box-shadow: inset 0 0 0 1.6px var(--primary); }
.rs-lesson .rl-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; background: #fff; border: 1px solid var(--line-soft); display: grid; place-items: center; color: var(--primary-dark); }
.rs-lesson .rl-ic.doc, .rs-lesson .rl-ic.slides { color: #8F6208; }
.rs-lesson .rl-t { flex: 1; min-width: 0; }
.rs-lesson .rl-t strong { display: block; font-size: .86rem; line-height: 1.35; color: var(--ink); }
.rs-lesson .rl-t span { font-size: .74rem; color: var(--muted); }
.rs-lesson .rl-done { color: var(--accent); flex: none; }

.reader-main .rm-title { display: flex; align-items: flex-start; gap: 14px; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; }
.reader-main h1 { font-size: 1.5rem; }
.video-shell {
  background: #0C1810; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow);
}
.video-shell video { width: 100%; aspect-ratio: 16/9; display: block; border: none; background: #0C1810; }
.video-caption {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; font-size: .8rem; color: #B9D4B4;
  background: rgba(14, 59, 31, .5); border-top: 1px solid rgba(180, 227, 138, .14);
}
.video-caption .ic { color: var(--accent-bright); }
.doc-shell { background: #fff; border: 1px solid var(--line-soft); border-radius: 20px; padding: clamp(22px, 4vw, 52px); box-shadow: var(--shadow-soft); }
.reader-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.complete-btn.on { background: var(--primary-soft); color: var(--primary-dark); box-shadow: none; }

/* ================= PROVINCES (RDC) ================= */
.prov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.prov-card {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #fff; border: 1.6px solid var(--line-soft); border-radius: 14px;
  padding: 13px 16px; box-shadow: var(--shadow-soft);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.prov-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.prov-card strong { font-size: .9rem; color: var(--ink); display: inline-flex; align-items: center; gap: 7px; }
.prov-card .n { font-size: .74rem; color: var(--muted); white-space: nowrap; }
.prov-card.soon { opacity: .6; background: var(--bg-soft); box-shadow: none; }
.badge-prov {
  position: absolute; bottom: 12px; right: 12px; top: auto; left: auto;
  background: rgba(11, 38, 20, .82); color: #EAF4E2;
  backdrop-filter: blur(3px);
}

/* ================= ESPACE SENASEM ================= */
/* Hero SENASEM sur photographie de semences */
.sen-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 64px 0 70px; color: #fff;
}
.sen-hero .sen-bg {
  position: absolute; inset: 0; z-index: -2;
  background: url('/img/photos/senasem-hero.jpg') center 32%/cover no-repeat;
}
.sen-hero .sen-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 88% 6%, rgba(255, 213, 79, .24), transparent 55%),
    var(--photo-veil);
}
.sen-hero h1 { color: #fff; margin-bottom: 14px; }
.sen-hero .hero-pill { margin-bottom: 18px; }
.sen-hero .hero-stats div + div { border-left-color: rgba(255, 255, 255, .18); }

.notice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.notice-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-soft); border-top: 4px solid var(--accent);
  transition: transform .16s, box-shadow .16s;
}
.notice-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.notice-card h3 { font-size: 1.02rem; margin: 12px 0 8px; line-height: 1.4; }
.notice-card p { font-size: .9rem; color: var(--ink-soft); }
.nc-head { display: flex; justify-content: space-between; align-items: center; }
.nc-head time { font-size: .78rem; color: var(--muted); }
.nc-badge { padding: 4px 12px; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.notice-campagne { border-top-color: var(--accent); }
.notice-campagne .nc-badge { background: var(--primary-soft); color: var(--primary-dark); }
.notice-alerte { border-top-color: var(--danger); }
.notice-alerte .nc-badge { background: var(--danger-soft); color: var(--danger); }
.notice-info { border-top-color: #42A5F5; }
.notice-info .nc-badge { background: #E3F2FD; color: #1565C0; }

.cert-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-bottom: 26px; }
.cert-step {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-soft); position: relative;
  transition: transform .16s, box-shadow .16s;
}
.cert-step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cs-num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad-primary); color: #fff;
  font-weight: 800; font-family: var(--font-head); margin-bottom: 12px;
  box-shadow: 0 5px 12px -4px rgba(30, 107, 51, .45);
}
.cert-step h4 { margin-bottom: 6px; font-size: .98rem; }
.cert-step p { font-size: .85rem; color: var(--muted); }

.seed-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.seed-cat {
  background: var(--bg-soft); border-radius: var(--radius); padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.sc-chip { align-self: flex-start; padding: 5px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.seed-cat p { font-size: .84rem; color: var(--ink-soft); }

.variety-table td { vertical-align: top; }
.variety-table small { color: var(--muted); }

.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.prod-card { padding: 22px; }
.pc-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.pc-head h3 { font-size: 1rem; line-height: 1.35; }
.pc-prov { font-size: .8rem; color: var(--primary); font-weight: 600; }
.pc-meta { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.pc-meta li { font-size: .88rem; color: var(--ink-soft); }
.pc-meta code {
  background: var(--bg-soft); padding: 2px 7px; border-radius: 6px;
  font-size: .78rem; color: var(--primary-dark);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; padding: 64px 0 76px; }
  .hero-art { max-width: 480px; margin: 0 auto; }
  .how-grid { grid-template-columns: 1fr; }
  .course-layout { grid-template-columns: 1fr; }
  .buy-card { position: static; }
  .reader { grid-template-columns: 1fr; }
  .reader-side { position: static; max-height: none; }
  .rs-list { max-height: 340px; }
}
@media (max-width: 620px) {
  .my-course { flex-direction: column; align-items: stretch; }
  .my-course .mc-cover { width: 100%; }
  .mng-course .mg-head { flex-direction: column; align-items: stretch; }
  .mng-course .mg-cover { width: 100%; }
  .float-card { display: none; }
  .curr-pick, .type-pick, .role-toggle, .confirm-fields { grid-template-columns: 1fr; }
  .hero-stats div { padding: 12px 18px; }
  .cta-agronome { padding: 38px 26px; }
  .hero { min-height: auto; }
  .hero-grid { padding-top: 52px; }
}

/* ============ Calendrier agricole SENASEM ============ */
.cal-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 22px;
}
.cal-card { padding: 22px 24px; }
.cal-zone {
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem;
  color: var(--primary-dark); padding-bottom: 12px; margin-bottom: 14px;
  border-bottom: 3px solid var(--accent-bright);
}
.cal-periods { display: flex; flex-direction: column; gap: 14px; }
.cal-period { background: var(--bg-soft); border-radius: 12px; padding: 12px 14px; transition: background .15s, transform .15s; }
.cal-period:hover { background: #EFEDE0; transform: translateX(3px); }
.cal-period .cp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.cal-period .cp-badge {
  flex: none; background: var(--primary); color: #fff;
  font-size: .74rem; font-weight: 700; letter-spacing: .02em;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.cal-period strong { font-size: .92rem; color: var(--ink); }
.cal-period ul { margin: 0; padding-left: 4px; list-style: none; }
.cal-period li { position: relative; padding-left: 20px; margin-bottom: 6px; font-size: .88rem; color: var(--ink-soft); }
.cal-period li::before {
  content: ''; position: absolute; left: 4px; top: .5em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
@media (max-width: 560px) { .cal-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .sen-photos { grid-template-columns: 1fr !important; } }
