/* ==========================================================================
   Styles additionnels — Actualités, Galerie, Commentaires, Comptes publics
   Complète assets/css/style.css (mêmes variables couleurs Haïti)
   ========================================================================== */

/* Sélecteur de langue FR / HT (icône globe + menu déroulant) */
.lang-dropdown {
  position: relative;
}

.lang-globe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}

.lang-globe-btn:hover,
.lang-globe-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, .2);
  border-color: rgba(255, 255, 255, .32);
  color: #fff;
}

body.interior-page .lang-globe-btn {
  background: rgba(255, 255, 255, .08);
}

.lang-dropdown-menu {
  min-width: 8.5rem;
  padding: 6px;
  margin-top: 10px !important;
  border: none;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(4, 20, 55, .22);
}

.lang-dropdown-menu .lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 9px;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .02em;
  color: #18233a;
}

.lang-dropdown-menu .lang-option:hover {
  background: #f5f7fb;
}

.lang-dropdown-menu .lang-option.active {
  background: #f4cf78;
  color: #071b4b;
}

.lang-dropdown-menu .lang-option .bi-check2,
.lang-dropdown-menu .lang-option .fa-check {
  visibility: hidden;
  font-size: .8rem;
}

.lang-dropdown-menu .lang-option.active .bi-check2,
.lang-dropdown-menu .lang-option.active .fa-check {
  visibility: visible;
}

body.interior-page #mainNav {
  padding: 10px 0;
  background: rgba(3, 17, 51, .96);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, .14);
}

/* Pied de page collé en bas (pages Actualités / Galerie) même quand le
   contenu est très court, par exemple tant qu'aucune actualité ou photo
   n'a encore été publiée. */
body.interior-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.interior-page .public-page-main {
  flex: 1 0 auto;
}

body.interior-page .site-footer {
  flex-shrink: 0;
  margin-top: auto;
}

.public-page-main {
  padding-top: 118px;
  min-height: 60vh;
  background: var(--soft, #f5f7fb);
}

.page-hero {
  background: linear-gradient(160deg, var(--navy-950, #031133), var(--navy-900, #071b4b) 65%);
  color: #fff;
  padding: 56px 0 70px;
  margin-top: -118px;
  padding-top: calc(118px + 40px);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--red, #d21034), transparent 40%, var(--blue-700, #0a3ca9) 60%, transparent 100%);
  opacity: .12;
}
.page-hero .eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: 2px; color: var(--gold-light, #f0d58f); font-weight: 700; }
.page-hero h1 { font-family: "Playfair Display", serif; font-size: clamp(2rem, 4vw, 2.8rem); margin: 10px 0 12px; }
.page-hero p { color: #cfd8f5; max-width: 640px; }

.section-wrap { padding: 56px 0 80px; }

/* ---------- Cartes actualités ---------- */
.news-card, .gallery-card {
  background: #fff; border-radius: 18px; overflow: hidden; height: 100%;
  box-shadow: 0 18px 45px rgba(4, 20, 55, .08); border: 1px solid rgba(15,35,73,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.news-card:hover, .gallery-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(4,20,55,.14); }
.news-card img, .gallery-card img { width: 100%; height: 190px; object-fit: cover; }
.news-card .body, .gallery-card .body { padding: 20px 22px 24px; }
.news-card .cat { font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: var(--blue-700, #0a3ca9); }
.news-card h3 { font-family: "Playfair Display", serif; font-size: 1.15rem; margin: 8px 0 10px; color: var(--navy-900, #071b4b); }
.news-card p { color: var(--muted, #68748a); font-size: .92rem; }
.news-card .meta { font-size: .78rem; color: var(--muted, #68748a); display: flex; gap: 14px; margin-top: 14px; }
.featured-ribbon {
  position: absolute; top: 14px; left: 14px; background: var(--red, #d21034); color: #fff;
  font-size: .68rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; padding: 5px 12px; border-radius: 20px;
}
.news-card { position: relative; }

/* ---------- Filtres / pagination ---------- */
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pill {
  border: 1.5px solid rgba(10,60,169,.25); color: var(--blue-700, #0a3ca9); background: #fff;
  padding: 7px 16px; border-radius: 20px; font-size: .84rem; font-weight: 600; text-decoration: none; transition: all .15s;
}
.filter-pill:hover, .filter-pill.active { background: var(--blue-700, #0a3ca9); color: #fff; border-color: var(--blue-700, #0a3ca9); }
.pagination-flag .page-link { color: var(--blue-700, #0a3ca9); border-color: rgba(15,35,73,.1); }
.pagination-flag .page-item.active .page-link { background: var(--blue-700, #0a3ca9); border-color: var(--blue-700, #0a3ca9); }

/* ---------- Squelettes de chargement (placeholders) ---------- */
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.skeleton {
  background: linear-gradient(90deg, #eef1f8 25%, #f7f9fd 37%, #eef1f8 63%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 10px;
}
.skeleton-card { border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 18px 45px rgba(4,20,55,.06); }
.skeleton-card .skeleton-img { height: 190px; }
.skeleton-card .skeleton-line { height: 14px; margin: 14px 22px; }
.skeleton-card .skeleton-line.w60 { width: 60%; }
.skeleton-card .skeleton-line.w40 { width: 40%; }

/* ---------- Article détail ---------- */
.article-content { font-size: 1.05rem; line-height: 1.85; color: var(--ink, #18233a); }
.article-content img { max-width: 100%; border-radius: 14px; margin: 20px 0; }
.article-content h2, .article-content h3 { font-family: "Playfair Display", serif; color: var(--navy-900, #071b4b); margin-top: 1.8em; }
.article-content blockquote { border-left: 4px solid var(--blue-700, #0a3ca9); padding: 8px 20px; color: var(--muted, #68748a); background: #f7f9ff; border-radius: 0 10px 10px 0; }

/* ---------- Commentaires ---------- */
.comment-box { background: #fff; border-radius: 16px; box-shadow: 0 18px 45px rgba(4,20,55,.08); padding: 24px; }
.comment-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(15,35,73,.08); }
.comment-item .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--blue-700, #0a3ca9); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.comment-item .name { font-weight: 700; color: var(--navy-900, #071b4b); font-size: .92rem; }
.comment-item .date { color: var(--muted, #68748a); font-size: .76rem; }
.comment-item .content { font-size: .92rem; margin-top: 4px; }

/* ---------- Galerie / lightbox ---------- */
.gallery-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery-photo-grid figure { margin: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; position: relative; height: 190px; }
.gallery-photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-photo-grid figure:hover img { transform: scale(1.06); }
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(3,17,51,.92); z-index: 2000;
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 82vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; top: 22px; right: 30px; color: #fff; font-size: 2rem; cursor: pointer; background: none; border: none; }
.lightbox-caption { position: absolute; bottom: 26px; color: #e8ecff; text-align: center; width: 100%; font-size: .9rem; }

/* ---------- Modales compte public (auth) ---------- */
.auth-modal .modal-content { border-radius: 20px; border: none; overflow: hidden; }
.auth-modal .modal-header { background: var(--navy-900, #071b4b); color: #fff; border: none; }
.auth-modal .btn-flag { background: linear-gradient(90deg, var(--blue-700, #0a3ca9), #1450c9); color: #fff; border: none; font-weight: 600; }
.auth-modal .btn-flag:hover { color: #fff; filter: brightness(1.05); }
.auth-tabs .nav-link { color: var(--muted, #68748a); font-weight: 600; }
.auth-tabs .nav-link.active { color: var(--blue-700, #0a3ca9); border-bottom: 2px solid var(--red, #d21034); background: none; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted, #68748a); }
.empty-state i { font-size: 2.4rem; color: var(--gold, #d5ad5c); margin-bottom: 14px; display: block; }

/* ---------- Modale inscription formations (Fondation Claudy DONET) ---------- */
.formation-modal .modal-content { border-radius: 20px; border: none; overflow: hidden; }
.formation-modal .modal-header { background: var(--navy-900, #071b4b); color: #fff; border: none; }
.formation-modal .btn-flag { background: linear-gradient(90deg, var(--blue-700, #0a3ca9), #1450c9); color: #fff; border: none; font-weight: 600; }
.formation-modal .btn-flag:hover { color: #fff; filter: brightness(1.05); }
.formation-options { display: flex; flex-direction: column; gap: 10px; }
.formation-option {
  border: 1px solid rgba(15, 35, 73, .12);
  border-radius: 12px;
  padding: 12px 14px 12px 42px;
  transition: border-color .15s ease, background .15s ease;
}
.formation-option .form-check-input:checked ~ .form-check-label { color: var(--blue-700, #0a3ca9); }
.formation-option:has(.form-check-input:checked) { border-color: var(--blue-700, #0a3ca9); background: rgba(10, 60, 169, .05); }
.formation-option .form-check-input:disabled ~ .form-check-label { opacity: .5; }

.formation-modal-kicker { color: #f0d58f; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 2px; }
.formation-whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  padding: .5rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  margin-bottom: 1.25rem;
}
.formation-whatsapp-link:hover { background: #1ebe5b; color: #fff; }
