/* =============================================
   MCEQSPLCA - Style Principal
   Inspiré de finances.gouv.cg
   Couleurs: Vert Congo #1a6b3a, Or #c8a84b
   ============================================= */

:root {
  --vert: #1a6b3a;
  --vert-light: #2d8a52;
  --vert-dark: #0f4524;
  --or: #c8a84b;
  --or-light: #e0c070;
  --rouge: #cc2828;
  --jaune: #f5c518;
  --gris: #f5f5f5;
  --texte: #333;
  --blanc: #ffffff;
}

* { box-sizing: border-box; }
body { font-family: 'Open Sans', sans-serif; color: var(--texte); margin: 0; padding: 0; }
a { color: var(--vert); text-decoration: none; }
a:hover { color: var(--or); }
h1,h2,h3,h4,h5,h6 { font-family: 'Raleway', sans-serif; }
img { max-width: 100%; }

/* TOP BAR */
#topbar {
  background: var(--vert-dark);
  color: #ccc;
  font-size: 13px;
  padding: 6px 0;
}
#topbar a { color: #ddd; }
#topbar a:hover { color: var(--or); }
#topbar .social-links a {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: inline-flex;
  align-items: center; justify-content: center;
  transition: .3s;
}
#topbar .social-links a:hover { background: var(--or); color: #fff; }

.webmail-btn {
  display: inline-flex;
  align-items: center;
  background: var(--rouge);
  color: #fff !important;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: .3s;
}
.webmail-btn:hover {
  background: #a93226;
  color: #fff !important;
  transform: translateY(-1px);
}

/* FLASH BAR */
#flash-bar {
  background: var(--or);
  color: #000;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 0;
  overflow: hidden;
}
.flash-label {
  background: var(--vert-dark);
  color: #fff;
  padding: 3px 12px;
  white-space: nowrap;
  margin-right: 15px;
  border-radius: 2px;
  font-size: 12px;
}
.flash-content { flex: 1; overflow: hidden; }
.marquee {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
}
@keyframes marquee { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }
.marquee a { color: #000; font-weight: 700; }

/* Éléments du Flash Info */
.flash-item {
  display: inline-flex;
  align-items: center;
  margin-right: 30px;
  font-weight: 600;
}

.flash-dot {
  color: var(--vert-dark);
  font-size: 7px;
  margin-right: 10px;
}

.flash-separator {
  color: var(--vert-dark);
  font-size: 10px;
  margin-left: 30px;
}

/* HEADER */
#header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  z-index: 1000;
  padding: 8px 0;
}
.logo-img { height: 65px; }
.logo-text { line-height: 1; }
.logo-text .ministry-name {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--vert);
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
}
.logo-text small { font-size: 11px; color: var(--vert); text-transform: uppercase; font-weight: 700; line-height: 1.3; display: inline-block; }

.republic-text { line-height: 1; }
.republic-text .republic-name {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--vert);
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
}
.republic-text small { font-size: 10px; color: #777; font-style: italic; text-transform: uppercase; line-height: 1.3; display: inline-block; }

.republic-logo img { opacity: 0.9; }

/* MAIN NAV */
.main-nav {
  background: var(--vert);
  position: relative;
}
.main-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.nav-list > li > a {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 14px 14px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: .3s;
  white-space: nowrap;
}
.nav-list > li > a:hover,
.nav-list > li > a.active {
  background: var(--or);
  color: #000;
}
.nav-list > li { position: relative; }

/* DROPDOWN */
.dropdown-menu-custom {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 280px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  list-style: none;
  padding: 8px 0;
  margin: 0;
  z-index: 9999;
  border-top: 3px solid var(--or);
}
.dropdown:hover .dropdown-menu-custom { display: block; }
.dropdown-menu-custom li a {
  display: block;
  padding: 8px 18px;
  color: #333;
  font-size: 13px;
  transition: .2s;
}
.dropdown-menu-custom li a:hover {
  background: var(--gris);
  color: var(--vert);
  padding-left: 24px;
}
.dropdown-menu-custom .separator {
  padding: 6px 18px 2px;
  color: var(--vert);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-top: 1px solid #eee;
  margin-top: 4px;
}

/* SEARCH */
.nav-search {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-search input {
  padding: 6px 12px;
  border: none;
  border-radius: 3px 0 0 3px;
  font-size: 13px;
  width: 180px;
}
.nav-search button {
  background: var(--or);
  border: none;
  padding: 6px 12px;
  border-radius: 0 3px 3px 0;
  color: #000;
  cursor: pointer;
  transition: .3s;
}
.nav-search button:hover { background: var(--or-light); }

/* MOBILE TOGGLE */
.navbar-toggler-custom {
  background: none;
  border: 2px solid var(--or);
  color: var(--or);
  font-size: 22px;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
}

/* ========================
   HERO SLIDER
   ======================== */
#hero {
  position: relative;
  height: 520px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,69,36,0.75) 0%, rgba(0,0,0,0.5) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}
.hero-text { color: #fff; max-width: 650px; }
.hero-text h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.hero-text p {
  font-size: 1rem;
  opacity: 0.9;
  margin: 15px 0 25px;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--or);
  color: #000;
  padding: 10px 25px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 14px;
  transition: .3s;
}
.hero-btn:hover { background: var(--or-light); color: #000; transform: translateY(-2px); }
.hero-btn-outline {
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  padding: 8px 22px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 14px;
  margin-left: 10px;
  transition: .3s;
}
.hero-btn-outline:hover { background: #fff; color: var(--vert); }

/* Slider Controls */
.hero-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 2px solid #fff;
  cursor: pointer;
  transition: .3s;
}
.hero-dot.active { background: var(--or); border-color: var(--or); }
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  width: 45px; height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: .3s;
}
.hero-arrow:hover { background: var(--or); border-color: var(--or); color: #000; }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }

/* ========================
   SECTIONS
   ======================== */
section { padding: 60px 0; }
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--vert);
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: var(--or);
}
.section-title p { color: #777; margin-top: 12px; }

/* MISSIONS */
#missions { background: var(--gris); }
.mission-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  transition: .3s;
  height: 100%;
}
.mission-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.mission-card img { width: 100%; height: 220px; object-fit: cover; }
.mission-card-body { padding: 20px; }
.mission-card-body h4 {
  color: var(--vert);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.mission-card-body p { font-size: 13px; color: #666; }
.mission-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--vert);
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
}
.mission-link:hover { color: var(--or); }

/* ACTUALITES */
#actualites { background: #fff; }
.actu-card {
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  transition: .3s;
  height: 100%;
}
.actu-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.12); transform: translateY(-3px); }
.actu-card img { width: 100%; height: 200px; object-fit: cover; }
.actu-body { padding: 15px; }
.actu-cat {
  display: inline-block;
  background: var(--vert);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
}
.actu-date { font-size: 12px; color: #999; margin-bottom: 8px; }
.actu-body h4 { font-size: 14px; font-weight: 700; color: var(--texte); line-height: 1.4; margin-bottom: 8px; }
.actu-body p { font-size: 13px; color: #777; margin-bottom: 12px; }
.actu-link {
  color: var(--vert);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.actu-link:hover { color: var(--or); }

/* MINISTRE BIO */
#ministre-bio { background: var(--vert-dark); color: #fff; }
#ministre-bio h2 { color: var(--or); }
#ministre-bio h2::after { background: var(--or); }
.ministre-photo {
  border: 4px solid var(--or);
  border-radius: 8px;
  max-height: 380px;
  object-fit: cover;
  width: 100%;
}
.ministre-text { padding: 20px 0; }
.ministre-text h3 { color: var(--or); font-size: 1.4rem; }
.ministre-text p { opacity: 0.9; line-height: 1.8; text-align: justify; }
.btn-or {
  background: var(--or);
  color: #000;
  padding: 10px 25px;
  border-radius: 3px;
  font-weight: 700;
  display: inline-block;
  transition: .3s;
}
.btn-or:hover { background: var(--or-light); color: #000; }
.btn-vert {
  background: var(--vert);
  color: #fff;
  padding: 10px 25px;
  border-radius: 3px;
  font-weight: 700;
  display: inline-block;
  transition: .3s;
}
.btn-vert:hover { background: var(--vert-light); color: #fff; }

/* DOCUMENTS RECENTS */
#documents-recent { background: var(--gris); }
.doc-item {
  background: #fff;
  border-left: 4px solid var(--or);
  padding: 12px 15px;
  margin-bottom: 12px;
  border-radius: 0 6px 6px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: .3s;
}
.doc-item:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.1); transform: translateX(4px); }
.doc-icon { font-size: 28px; color: var(--rouge); flex-shrink: 0; }
.doc-info { flex: 1; }
.doc-info h5 { font-size: 13px; font-weight: 700; margin: 0 0 4px; color: var(--texte); }
.doc-info small { font-size: 11px; color: #999; }
.doc-download {
  color: var(--vert);
  font-size: 20px;
  transition: .3s;
}
.doc-download:hover { color: var(--or); }

/* PARTENAIRES */
#partenaires { background: #fff; }
.partner-card {
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  transition: .3s;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-card:hover { border-color: var(--vert); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.partner-card span {
  font-weight: 700;
  color: var(--vert);
  font-size: 14px;
}

/* STATS COMPTEURS */
#stats { background: var(--vert); color: #fff; padding: 40px 0; }
.stat-item { text-align: center; }
.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--or);
  font-family: 'Raleway', sans-serif;
}
.stat-label { font-size: 13px; opacity: 0.85; text-transform: uppercase; letter-spacing: 1px; }

/* PAGE CONTENU */
.page-hero {
  background: var(--vert-dark);
  color: #fff;
  padding: 40px 0;
}
.page-hero h1 { font-size: 1.8rem; margin: 0; }
.breadcrumb-bar { background: #f0f0f0; padding: 10px 0; font-size: 13px; }
.breadcrumb-bar a { color: var(--vert); }
.content-section { padding: 50px 0; }

/* =============================================
   PAGES INSTITUTIONNELLES
   Directions, Cabinet, Mot du Ministre
   ============================================= */

/* ===== TITRES DES RUBRIQUES ===== */

.content-section h6 {
  color: var(--vert);
  font-size: 16px;
  font-weight: 700;
  margin-top: 18px;
  margin-bottom: 7px;
  padding-bottom: 5px;
  border-bottom: 1px solid #eeeeee;
}

/* ===== PARAGRAPHES ===== */

.content-section p {
  margin-top: 0;
  margin-bottom: 9px;
  line-height: 1.6;
  text-align: justify;
}

/* ===== LISTES : ATTRIBUTIONS / MISSIONS ===== */

.attributions {
  margin-top: 5px;
  margin-bottom: 15px;
  padding-left: 25px;
}

.attributions li {
  margin-bottom: 6px;
  line-height: 1.6;
  text-align: justify;
}

/* Sous-listes */

.attributions ul {
  margin-top: 6px;
  margin-bottom: 6px;
  padding-left: 25px;
}

.attributions ul li {
  margin-bottom: 4px;
}

/* ===== ORGANISATION ===== */

.organisation {
  margin-top: 5px;
  margin-bottom: 15px;
  padding-left: 25px;
}

.organisation li {
  margin-bottom: 5px;
  line-height: 1.6;
  padding: 5px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* Effet au passage de la souris */
.organisation li:hover {
  color: var(--vert);
  background-color: #f4f9f6;
  padding-left: 15px;
  font-weight: 600;
}

/* ===== SOURCE DES TEXTES ===== */

.source {
  margin-top: 18px !important;
  margin-bottom: 0 !important;
  padding-top: 10px;
  border-top: 1px solid #dddddd;
  font-size: 13px;
  color: #666;
}

.source strong {
  color: var(--vert);
}

/* =============================================
   MOT DU MINISTRE
   ============================================= */

.mot-ministre {
  line-height: 1.7;
  text-align: justify;
}

.mot-ministre .titre-mot {
  color: var(--vert);
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--or);
  line-height: 1.4;
}

.mot-ministre p {
  margin-top: 0;
  margin-bottom: 13px;
}

.mot-ministre .intro-mot {
  font-size: 16px;
  font-weight: 500;
}

.mot-ministre .conclusion-mot {
  margin-top: 20px;
  padding: 14px 18px;
  border-left: 4px solid var(--vert);
  background: var(--gris);
  font-weight: 600;
  font-style: italic;
}


/* FORMULAIRE CONTACT */
.contact-form input,
.contact-form textarea,
.contact-form select {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px 14px;
  width: 100%;
  font-size: 14px;
  transition: .3s;
  margin-bottom: 15px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--vert);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26,107,58,0.1);
}
.contact-form textarea { height: 140px; resize: vertical; }
.btn-submit {
  background: var(--vert);
  color: #fff;
  border: none;
  padding: 12px 35px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: .3s;
}
.btn-submit:hover { background: var(--vert-light); }

/* PAGINATION */
.pagination-custom { display: flex; gap: 5px; justify-content: center; margin-top: 30px; }
.pagination-custom a, .pagination-custom span {
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: .3s;
  color: var(--texte);
}
.pagination-custom a:hover, .pagination-custom .current {
  background: var(--vert);
  color: #fff;
  border-color: var(--vert);
}

/* BACK TO TOP */
#back-to-top {
  position: fixed;
  bottom: 25px; right: 25px;
  width: 42px; height: 42px;
  background: var(--vert);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  transition: .4s;
  z-index: 9999;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}
#back-to-top.show { opacity: 1; pointer-events: all; }
#back-to-top:hover { background: var(--or); color: #000; }

/* FOOTER */
#footer { background: var(--vert-dark); color: #ccc; }
.footer-top { padding: 50px 0 30px; }
#footer h4 {
  color: var(--or);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(200,168,75,0.3);
}
#footer p { font-size: 13px; line-height: 1.7; }
#footer ul { list-style: none; padding: 0; margin: 0; }
#footer ul li { margin-bottom: 6px; }
#footer ul li a { color: #bbb; font-size: 13px; transition: .3s; }
#footer ul li a:hover { color: var(--or); padding-left: 5px; }
#footer .social-links a {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  transition: .3s;
}
#footer .social-links a:hover { background: var(--or); color: #000; }
.footer-bottom {
  background: rgba(0,0,0,0.3);
  padding: 15px 0;
  font-size: 13px;
}
.footer-bottom a { color: var(--or); }
.partner-link {
  background: rgba(255,255,255,0.1);
  color: #ccc;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
}
.partner-link:hover { background: var(--or); color: #000; }

/* ADMIN STYLES */
.admin-bar {
  background: #222;
  color: #fff;
  padding: 8px 20px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-bar a { color: var(--or); }

/* ALERTS */
.alert-success { background: #d4edda; border-left: 4px solid #28a745; color: #155724; padding: 12px 16px; border-radius: 4px; margin-bottom: 15px; }
.alert-error { background: #f8d7da; border-left: 4px solid #dc3545; color: #721c24; padding: 12px 16px; border-radius: 4px; margin-bottom: 15px; }

/* RESPONSIVE */
@media (max-width: 991px) {
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; }
  .nav-list > li > a { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .dropdown-menu-custom { position: static; box-shadow: none; border: none; background: rgba(0,0,0,0.2); }
  .dropdown:hover .dropdown-menu-custom { display: none; }
  .dropdown.open .dropdown-menu-custom { display: block; }
  .dropdown-menu-custom li a { color: #ddd; }
  .hero-text h2 { font-size: 1.5rem; }
  #hero { height: 380px; }
}
@media (max-width: 767px) {
  #hero { height: 300px; }
  .hero-text h2 { font-size: 1.2rem; }
  .nav-search { display: none; }
  section { padding: 40px 0; }
}

/* TYPE BADGE */
.type-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
}
.type-decret { background: #e8f5e9; color: #2e7d32; }
.type-arrete { background: #fff3e0; color: #e65100; }
.type-loi { background: #e3f2fd; color: #1565c0; }
.type-circulaire { background: #f3e5f5; color: #6a1b9a; }
.type-note_service { background: #fce4ec; color: #880e4f; }
.type-rapport { background: #e0f7fa; color: #006064; }
.type-autre { background: #f5f5f5; color: #616161; }

/* ===== Pages de contenu avec photo (Ministre, Cabinet, etc.) ===== */
.page-content-with-photo {
  overflow: hidden; /* clearfix pour contenir le float */
}
.page-content-photo {
  float: left;
  width: 220px;
  margin: 0 25px 15px 0;
}
.page-content-photo.page-photo-banner {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}
.page-content-photo.page-photo-banner img {
  border-radius: 0;
  border: none;
  aspect-ratio: 3 / 4;
}
.page-photo-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--vert);
  padding: 12px 14px 14px;
  text-align: center;
}
.page-photo-nom {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  line-height: 1.25;
}
.page-photo-separator {
  width: 36px;
  height: 1px;
  background: rgba(255,255,255,.75);
  margin: 6px auto;
}
.page-photo-fonction {
  font-style: italic;
  font-size: 12px;
  color: #fff;
  opacity: .95;
  line-height: 1.35;
}
.page-content-photo img {
  width: 100%;
  border-radius: 8px;
  border: 4px solid var(--or);
  object-fit: cover;
  aspect-ratio: 3 / 4;
  display: block;
}
.page-content-text {
  line-height: 1.9;
  font-size: 15px;
  text-align: justify;
}

@media (max-width: 575px) {
  .page-content-photo { float: none; width: 180px; margin: 0 auto 15px; display: block; }
}

/* ===== Fiches "Attachés du Ministre" ===== */
.attache-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 316 / 444;
  background: #e2e2e2;
  box-shadow: 0 3px 12px rgba(0,0,0,.1);
}
.attache-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.attache-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d6d6d6;
}
.attache-card-placeholder i { font-size: 90px; color: #9a9a9a; }
.attache-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--vert);
  padding: 12px 14px 14px;
  text-align: center;
}
.attache-nom {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  line-height: 1.25;
}
.attache-separator {
  width: 36px;
  height: 1px;
  background: rgba(255,255,255,.75);
  margin: 6px auto;
}
.attache-fonction {
  font-style: italic;
  font-size: 12px;
  color: #fff;
  opacity: .95;
  line-height: 1.35;
}

/* ===== KO FUNDA — Signalement d'irrégularités ===== */
.btn-vert-outline {
  background: transparent;
  border: 2px solid var(--vert);
  color: var(--vert);
  padding: 9px 23px;
  border-radius: 3px;
  font-weight: 700;
  display: inline-block;
  transition: .3s;
}
.btn-vert-outline:hover { background: var(--vert); color: #fff; }

.kofunda-nav-link { color: #fff !important; }
.kofunda-nav-link:hover { color: #000 !important; }

.kofunda-hero { background: linear-gradient(rgba(26,107,58,.92), rgba(26,107,58,.92)), url('/assets/img/bg-12.jpg') center/cover; }
.kofunda-hero p { color: #fff; opacity: .9; margin-top: 6px; font-size: 16px; }

.kofunda-list { list-style: none; padding: 0; margin: 0 0 20px; }
.kofunda-list li { padding: 6px 0; font-size: 14px; color: #444; }
.kofunda-list li i { color: var(--vert); margin-right: 8px; }

.kofunda-guarantees {
  background: #f4f9f6;
  border-left: 4px solid var(--vert);
  border-radius: 0 6px 6px 0;
  padding: 18px 20px;
}
.kofunda-guarantees h5 { color: var(--vert); font-size: 15px; }
.kofunda-guarantees ul { margin: 10px 0 0; padding-left: 18px; font-size: 13px; color: #555; line-height: 1.7; }

.kofunda-form-box {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

.kofunda-success {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 20px;
}
.kofunda-success > i { font-size: 64px; color: var(--vert); }
.kofunda-success h2 { font-size: 22px; margin: 20px 0; color: #222; }
.kofunda-dossier-box {
  background: #f4f9f6;
  border: 1px dashed var(--vert);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  justify-content: space-around;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.kofunda-dossier-box div { display: flex; flex-direction: column; }
.kofunda-dossier-box span { font-size: 12px; color: #777; text-transform: uppercase; letter-spacing: .5px; }
.kofunda-dossier-box strong { font-size: 20px; color: var(--vert); letter-spacing: 1px; }

.kofunda-statut-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 20px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.kofunda-timeline { display: flex; flex-direction: column; gap: 4px; }
.kofunda-timeline-step {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 14px;
  color: #aaa;
}
.kofunda-timeline-step .dot {
  position: absolute;
  left: 4px;
  top: 13px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
}
.kofunda-timeline-step.done { color: #222; }
.kofunda-timeline-step.done .dot { background: var(--vert); }
.kofunda-timeline-step.current { font-weight: 700; color: var(--vert); }
.kofunda-timeline-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 25px;
  bottom: -8px;
  width: 2px;
  background: #eee;
}
.kofunda-timeline-step.done:not(:last-child)::before { background: var(--vert); opacity: .3; }

/* ===== "Lire plus" automatique (tout texte long, site entier) ===== */
.readmore-content {
  overflow: hidden;
}
.readmore-content.readmore-truncated {
  position: relative;
  -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}
.readmore-btn {
  clear: both;
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--vert);
  font-weight: 700;
  padding: 10px 0 0;
  cursor: pointer;
}
.readmore-btn:hover { text-decoration: underline; }

/* ===== Icônes de lecture sur les miniatures vidéo ===== */
.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: .9;
  transition: .2s;
}
.video-play-overlay i { font-size: 48px; }
.actu-card-img:hover .video-play-overlay { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }

/* Variante YouTube : pastille rouge façon icône YouTube, au lieu du simple triangle */
.video-play-overlay.youtube {
  background: #ff0000;
  width: 64px;
  height: 45px;
  border-radius: 10px;
  opacity: .95;
}
.video-play-overlay.youtube i { font-size: 26px; }