/* FJFPH — Forum des Jeunes de la Fonction Publique Haïtienne — site vitrine sans framework */

:root {
  --navy-dark: #0A2E48;
  --navy: #0F3D5C;
  --gold: #C99A2E;
  --bg-light: #F4F6F8;
  --border: #E2E6EA;
  --border-strong: #D9DEE3;
  --ink: #1A2733;
  --muted: #4B5563;
  --muted-2: #8A8F96;
  --white: #FFFFFF;
  --heading: 'Manrope', sans-serif;
  --body: 'Karla', sans-serif;
}

* { box-sizing: border-box; }

body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }
input, textarea, select, button { font-family: var(--body); }
h1, h2, h3 { font-family: var(--heading); color: var(--navy); margin: 0; }
::selection { background: var(--gold); color: var(--navy-dark); }

@keyframes fjfphFadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.wrap { max-width: 1100px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.wrap.narrow { max-width: 900px; }
.section-pad { padding-top: 70px; padding-bottom: 70px; }
.eyebrow { color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; }
.body-text { line-height: 1.75; color: var(--muted); font-size: 16px; margin: 16px 0 0; }
.body-text.lede { max-width: 700px; margin-bottom: 8px; }
.small-text { color: var(--muted); line-height: 1.6; font-size: 14.5px; margin: 0; }
.center-title { text-align: center; font-size: 26px; margin-bottom: 32px; }
.sub-heading { font-size: 20px; margin: 40px 0 18px; }
.link-navy { color: var(--navy); font-weight: 700; display: inline-block; margin-top: 16px; }
.link-gold { color: var(--gold); font-weight: 700; }
.plain-list { color: var(--muted); line-height: 1.9; font-size: 14.5px; padding-left: 20px; margin: 18px 0 0; }
.cta-row { margin-top: 30px; }

/* -------------------- IMAGE PLACEHOLDERS -------------------- */
.img-slot {
  background: linear-gradient(135deg, #EDEFF2, #DCE1E6);
  color: var(--muted-2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  padding: 10px;
  position: relative;
}
.img-slot::before {
  content: "";
  width: 34px;
  height: 34px;
  margin: 0 auto 8px;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 14px));
  background-color: #B7BFC8;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 19V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2Zm-2 0H5l4.5-6 3 3.5L16 12l3 4v3ZM8 11a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 19V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2Zm-2 0H5l4.5-6 3 3.5L16 12l3 4v3ZM8 11a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"/></svg>') center / contain no-repeat;
}
.img-slot > span { margin-top: 26px; max-width: 80%; }
.img-slot--rect { border-radius: 0; }
.img-slot--rounded { border-radius: 14px; }
.img-slot--rounded.small-radius { border-radius: 8px; }
.img-slot--circle { border-radius: 50%; }

.hero { position: relative; height: 560px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,46,72,0.15), rgba(10,46,72,0.72)); display: flex; align-items: center; }
.hero-content { max-width: 640px; padding: 0 60px; color: var(--white); }
.hero-content h1 { color: var(--white); font-weight: 800; font-size: 44px; line-height: 1.12; margin: 0 0 18px; }
.hero-content p { font-size: 17px; line-height: 1.6; margin: 0 0 28px; opacity: 0.95; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.about-media { width: 100%; height: 320px; }
.wide-media { width: 100%; height: 300px; margin-top: 30px; }
.side-media { width: 100%; height: 220px; margin-top: 28px; }

/* -------------------- REAL PHOTOS -------------------- */
.photo { display: block; width: 100%; object-fit: cover; background: var(--bg-light); }
.photo--rounded { border-radius: 14px; }

/* -------------------- TOPBAR -------------------- */
.topbar { background: var(--navy-dark); color: var(--white); font-size: 13px; }
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: 8px 40px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar-left { display: flex; align-items: center; gap: 16px; }
.social-row { display: flex; gap: 8px; }
.social-dot { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 12px; }
.topbar-email { opacity: 0.9; }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar-link { color: var(--white); font-weight: 600; }
.topbar-link:hover { color: var(--gold); }
.btn-outline-gold { background: transparent; border: 1px solid var(--gold); color: var(--gold); padding: 6px 18px; border-radius: 20px; font-weight: 700; font-size: 13px; cursor: pointer; }
.btn-outline-gold:hover { background: var(--gold); color: var(--navy-dark); }

/* -------------------- HEADER / NAV -------------------- */
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 40px; flex-wrap: wrap; gap: 16px; border-bottom: 1px solid var(--border); position: relative; z-index: 20; }
.site-header-inner { display: contents; }
.brand { cursor: pointer; display: flex; flex-direction: column; line-height: 1.05; }
.brand-title { font-family: var(--heading); font-weight: 800; font-size: 24px; color: var(--navy); }
.brand-sub { font-family: var(--heading); font-weight: 600; font-size: 11px; letter-spacing: 0.04em; color: var(--gold); text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 26px; font-family: var(--heading); font-weight: 700; font-size: 14.5px; }
.nav-link { color: var(--ink); border-bottom: 2px solid transparent; padding-bottom: 6px; background: none; border-top: none; border-left: none; border-right: none; cursor: pointer; font: inherit; }
.nav-link.is-active { color: var(--navy); border-bottom-color: var(--navy); }
.nav-dropdown { position: relative; }
.nav-dropdown-btn { display: flex; align-items: center; gap: 4px; }
.caret { font-size: 11px; }
.dropdown-panel { position: absolute; top: 32px; left: 0; background: var(--white); box-shadow: 0 12px 28px rgba(15,61,92,0.18); border-radius: 10px; padding: 8px; min-width: 240px; animation: fjfphFadeIn 0.15s ease-out; display: none; z-index: 25; }
.dropdown-panel.is-open { display: block; }
.dropdown-item { display: block; padding: 10px 14px; border-radius: 6px; color: var(--ink); font-weight: 600; }
.dropdown-item:hover { background: var(--bg-light); color: var(--navy); }
.nav-dropdown.is-active .nav-dropdown-btn { color: var(--navy); }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.mobile-toggle span { width: 22px; height: 2px; background: var(--navy); display: block; }
.mobile-menu { display: none; background: var(--white); border-top: 1px solid var(--border); padding: 12px 24px 24px; flex-direction: column; gap: 2px; }
.mobile-menu.is-open { display: flex; }
.mobile-link { padding: 12px 4px; font-family: var(--heading); font-weight: 700; font-size: 15px; color: var(--ink); border-bottom: 1px solid var(--border); }
.mobile-sub { font-size: 14px; font-weight: 600; padding-left: 14px; color: var(--muted); }
.mobile-group-label { padding: 14px 4px 2px; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold); }
.mobile-cta { margin-top: 16px; align-self: flex-start; }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .mobile-toggle { display: flex; }
  .topbar-right .topbar-link { display: none; }
}

/* -------------------- BUTTONS -------------------- */
.btn-gold { background: var(--gold); color: var(--navy-dark); border: none; padding: 13px 26px; border-radius: 8px; font-weight: 700; font-family: var(--heading); cursor: pointer; font-size: 15px; }
.btn-gold:hover { color: var(--navy-dark); opacity: 0.92; }
.btn-outline-white { background: transparent; color: var(--white); border: 1.5px solid var(--white); padding: 13px 26px; border-radius: 8px; font-weight: 700; font-family: var(--heading); cursor: pointer; font-size: 15px; }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); border: none; padding: 12px 22px; border-radius: 8px; font-weight: 700; font-family: var(--heading); cursor: pointer; }
.btn-navy:hover { color: var(--white); opacity: 0.92; }

/* -------------------- MODAL -------------------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(10,46,72,0.55); display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal-backdrop[hidden] { display: none; }
.modal-card { background: var(--white); border-radius: 14px; padding: 36px; width: 380px; max-width: 90vw; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-head h3 { font-size: 20px; }
.modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--muted); }
.modal-msg { font-size: 13px; color: var(--muted); margin-top: 14px; line-height: 1.5; }
.modal-foot { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* -------------------- FORMS -------------------- */
.form-stack { display: flex; flex-direction: column; gap: 14px; }
.form-stack[hidden] { display: none; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-stack input, .form-stack textarea, .form-stack select {
  padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: 8px; font-size: 14px; background: var(--white);
}
.form-stack textarea { resize: vertical; }
.form-stack button { margin-top: 6px; }
.form-card { background: var(--bg-light); border-radius: 14px; padding: 32px; }
.form-card--wide { max-width: 720px; margin: 0 auto; padding: 40px; }
.form-error { color: #B3261E; font-size: 13.5px; margin: -4px 0 0; }
.form-stack button[type="submit"]:disabled { opacity: 0.7; cursor: default; }

.form-section-title {
  font-family: var(--heading); font-size: 15px; color: var(--navy); margin: 10px 0 -2px;
  padding-top: 20px; border-top: 1px solid var(--border);
}
.form-stack h3.form-section-title:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

.type-selector { display: flex; gap: 10px; flex-wrap: wrap; }
.type-option {
  flex: 1; min-width: 120px; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 14px; border: 1.5px solid var(--border-strong); border-radius: 8px; cursor: pointer;
  font-weight: 600; font-size: 14px; color: var(--ink); transition: border-color 0.15s ease, background 0.15s ease;
}
.type-option input { accent-color: var(--navy); }
.type-option:has(input:checked) { border-color: var(--navy); background: var(--bg-light); }

.date-field { display: flex; flex-direction: column; gap: 6px; }
.date-field span { font-size: 12px; color: var(--muted); font-weight: 600; }
.date-field input { padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: 8px; font-size: 14px; }

.field-label { font-size: 13px; font-weight: 700; color: var(--ink); margin: 8px 0 -4px; }

.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.checkbox-option { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.checkbox-option input { margin-top: 3px; accent-color: var(--navy); flex-shrink: 0; }
.checkbox-option--consent { font-size: 13.5px; }

.volunteer-section {
  display: flex; flex-direction: column; gap: 14px; padding: 18px; background: var(--bg-light); border-radius: 10px;
}
.volunteer-section[hidden] { display: none; }
.success-panel { text-align: center; padding: 30px 10px; }
.success-panel h3 { font-size: 20px; margin-bottom: 12px; }
.success-panel p { color: var(--muted); line-height: 1.6; margin: 0 0 20px; }

/* -------------------- LAYOUT GRIDS -------------------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.mvv-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 30px 0 40px; }
.mvv-grid h3 { font-size: 18px; margin-bottom: 10px; }
.category-grid { margin: 22px 0 0; }
.section-head-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.section-head-row h2 { font-size: 28px; }
.doc-link-line { margin: 22px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.join-form-block { margin-top: 56px; }

@media (max-width: 900px) {
  .about-grid, .split-grid, .grid-2, .grid-3, .grid-5 { grid-template-columns: 1fr; }
  .wrap { padding-left: 24px; padding-right: 24px; }
  .hero-content { padding: 0 24px; }
  .hero-content h1 { font-size: 32px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}

.band-light { background: var(--bg-light); }

/* -------------------- CARDS -------------------- */
.event-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(15,61,92,0.08); }
.event-card-photo { width: 100%; height: 150px; }
.event-card-body { padding: 20px; }
.event-card-body .event-type { font-size: 12px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.03em; }
.event-card-body h3 { font-size: 17px; margin: 8px 0; }
.event-card-body p { margin: 0; font-size: 13px; color: var(--muted); }

.partner-name-tile { width: 100%; min-height: 80px; border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; font-weight: 700; color: var(--navy); font-size: 13px; line-height: 1.4; }
.partner-card { border: 1px solid var(--border); border-radius: 12px; padding: 24px; text-align: center; }
.partner-card p { margin: 0; font-weight: 700; color: var(--navy); font-size: 14px; }

.team-card { text-align: center; }
.team-card .img-slot { width: 140px; height: 140px; margin: 0 auto 16px; }
.team-card h3 { font-size: 16px; margin: 0 0 4px; }
.team-card p { margin: 0; color: var(--gold); font-weight: 700; font-size: 13px; }

.doc-list { display: flex; flex-direction: column; gap: 14px; }
.doc-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border: 1px solid var(--border); border-radius: 10px; gap: 16px; flex-wrap: wrap; }
.doc-row-left { display: flex; align-items: center; gap: 16px; }
.doc-badge { width: 38px; height: 38px; border-radius: 8px; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11px; flex-shrink: 0; }
.doc-row-left p { margin: 0; font-weight: 700; color: var(--ink); font-size: 15px; }
.doc-row-left span { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.doc-download { color: var(--navy); font-weight: 700; font-size: 14px; white-space: nowrap; }

.filter-row { display: flex; gap: 10px; margin-bottom: 34px; flex-wrap: wrap; }
.filter-tab { padding: 9px 18px; border-radius: 20px; border: 1.5px solid var(--border-strong); background: var(--white); color: var(--navy); font-weight: 700; font-size: 13.5px; cursor: pointer; font-family: var(--body); }
.filter-tab.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.event-list { display: flex; flex-direction: column; gap: 16px; }
.event-row { border: 1px solid var(--border); border-radius: 12px; padding: 22px 26px; }
.event-row.is-expired { opacity: 0.65; }
.event-row-head { display: flex; justify-content: space-between; align-items: flex-start; cursor: pointer; gap: 16px; }
.event-row-head .event-type-row { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.event-row-head h3 { font-size: 17px; margin: 0 0 6px; }
.event-row-head p { margin: 0; font-size: 13.5px; color: var(--muted); }
.event-chevron { font-size: 20px; color: var(--navy); flex-shrink: 0; }
.badge-expired { font-size: 11px; font-weight: 700; color: var(--white); background: var(--muted-2); padding: 2px 9px; border-radius: 10px; }
.event-detail { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); display: none; }
.event-row.is-open .event-detail { display: block; }
.event-detail p { color: var(--muted); line-height: 1.7; font-size: 14.5px; margin: 0 0 16px; }
.event-btn { border: none; padding: 10px 20px; border-radius: 8px; font-weight: 700; font-family: var(--heading); }
.event-btn.is-active { background: var(--gold); color: var(--navy-dark); cursor: pointer; }
.event-btn.is-expired { background: var(--border); color: var(--muted-2); cursor: not-allowed; }

.award-card, .category-card { border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.award-card h3, .category-card h3 { font-size: 16px; margin: 0 0 8px; color: var(--navy); font-family: var(--heading); }
.award-card p, .category-card p { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin: 0; }
.awards-grid { margin-bottom: 40px; }

.edition-box { background: var(--bg-light); border-radius: 12px; padding: 26px; margin: 20px 0 30px; max-width: 500px; }
.edition-title { margin: 0 0 8px; font-weight: 700; color: var(--navy); }
.edition-date { margin: 0; color: var(--muted); font-size: 14.5px; }

.stack-list { display: flex; flex-direction: column; gap: 16px; }
.stack-item { border: 1px solid var(--border); border-radius: 12px; padding: 22px 26px; }
.stack-item h3 { font-size: 17px; margin: 0 0 8px; }
.stack-item p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

.bulletin-photo { width: 100%; height: 150px; }
.bulletin-card p { margin: 12px 0 0; font-weight: 700; color: var(--navy); font-size: 13.5px; }

.contact-meta { display: flex; flex-direction: column; gap: 16px; color: var(--muted); font-size: 14.5px; line-height: 1.6; margin-top: 24px; }
.contact-meta strong { color: var(--ink); }

/* -------------------- ANNOUNCE BAR -------------------- */
.announce-bar { background: var(--navy); color: var(--white); padding: 18px 40px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.announce-bar p { margin: 0; font-weight: 600; font-size: 15px; }
.announce-bar .link-gold { white-space: nowrap; }

/* -------------------- FOOTER -------------------- */
.site-footer { background: var(--navy-dark); color: var(--white); padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { font-family: var(--heading); font-weight: 800; font-size: 22px; }
.footer-tagline { color: rgba(255,255,255,0.75); font-size: 13.5px; line-height: 1.7; margin: 12px 0 0; max-width: 280px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-heading { font-weight: 700; font-size: 13px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.footer-col a, .footer-static { color: rgba(255,255,255,0.85); font-size: 14px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.55); font-size: 12.5px; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-header { padding: 14px 24px; }
  .topbar-inner { padding: 8px 24px; }
  .announce-bar { padding: 16px 24px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .form-row-2, .checkbox-grid { grid-template-columns: 1fr; }
  .hero { height: 480px; }
  .form-card--wide { padding: 26px 20px; }
}
