/* ================================================================
   INPTIC Concours — Home page styles
   Charte INPTIC Gabon : bleu #003087, jaune #FFD700, vert #009A44
   Typo: système (Trebuchet MS, Segoe UI)
   ================================================================ */



:root {
  --hn-blue:       #003087;
  --hn-blue-dk:    #002060;
  --hn-blue-lt:    #E8EFFF;
  --hn-yellow:     #FFD700;
  --hn-yellow-dk:  #F0C000;
  --hn-green:      #009A44;
  --hn-green-dk:   #007A35;
  --hn-green-lt:   #E6F7ED;
  --hn-white:      #FFFFFF;
  --hn-gray:       #5A6A7A;
  --hn-gray-lt:    #F4F6F9;
  --hn-border:     #DDE3EC;
  --hn-text:       #1A2B45;
  --hn-radius:     10px;
  --hn-radius-lg:  18px;
  --hn-shadow:     0 4px 24px rgba(0,48,135,.08);
  --hn-shadow-lg:  0 12px 48px rgba(0,48,135,.15);
}

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

.home-page {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--hn-text);
  background: #fff;
}

/* ── NAVBAR ──────────────────────────────────────────── */
.hn-topbar {
  background: var(--hn-blue-dk);
  padding: 6px 0;
  font-size: 12px;
  color: rgba(255,255,255,.75);
}
.hn-topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.hn-topbar a { color: rgba(255,255,255,.75); text-decoration: none; }
.hn-topbar a:hover { color: var(--hn-yellow); }
.hn-topbar-socials { display: flex; gap: 12px; }
.hn-topbar-socials a { display: flex; align-items: center; }
.hn-topbar-socials svg { width: 15px; height: 15px; }

.hn-navbar {
  position: sticky; top: 0; z-index: 200;
  background: #fff;
  border-bottom: 3px solid var(--hn-blue);
  box-shadow: 0 2px 16px rgba(0,48,135,.10);
}
.hn-navbar-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 28px; height: 72px;
  display: flex; align-items: center; gap: 24px;
}
.hn-brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.hn-logo { height: 52px; width: auto; }

.hn-nav-links {
  display: flex; gap: 4px; flex: 1;
  font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif;
}
.hn-nav-links a {
  font-size: 13px; font-weight: 600; color: var(--hn-text);
  text-decoration: none; padding: 6px 14px; border-radius: 6px;
  transition: all .18s; white-space: nowrap;
}
.hn-nav-links a:hover { color: var(--hn-blue); background: var(--hn-blue-lt); text-decoration: none; }

.hn-nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hn-btn-outline {
  padding: 8px 18px; border: 2px solid var(--hn-blue);
  color: var(--hn-blue); border-radius: 8px;
  font-size: 13px; font-weight: 700; text-decoration: none;
  font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif; transition: all .18s; white-space: nowrap;
}
.hn-btn-outline:hover { background: var(--hn-blue); color: #fff; text-decoration: none; }
.hn-btn-primary {
  padding: 9px 20px; background: var(--hn-yellow); color: var(--hn-blue);
  border-radius: 8px; font-size: 13px; font-weight: 800;
  text-decoration: none; font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif;
  transition: all .18s; white-space: nowrap; border: none;
}
.hn-btn-primary:hover { background: var(--hn-yellow-dk); text-decoration: none; color: var(--hn-blue); }
.hn-btn-logout {
  padding: 8px 16px; color: #DC2626; font-size: 13px;
  font-weight: 600; text-decoration: none; font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif;
}
.hn-btn-logout:hover { text-decoration: underline; }

.hn-menu-toggle {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: none; cursor: pointer; padding: 4px;
}
.hn-menu-toggle span { display: block; width: 24px; height: 2px; background: var(--hn-text); border-radius: 2px; }

/* ── FLASH ──────────────────────────────────────────── */
.hn-flash { max-width: 1200px; margin: 12px auto; padding: 12px 28px; border-radius: 8px; font-size: 14px; }
.hn-flash-success { background: #D1FAE5; color: #065F46; border-left: 4px solid #059669; }
.hn-flash-error   { background: #FEE2E2; color: #991B1B; border-left: 4px solid #DC2626; }

/* ── HERO ───────────────────────────────────────────── */
.hn-hero {
  position: relative; overflow: hidden;
  background: var(--hn-blue);
  min-height: 580px;
  display: flex; align-items: center;
}
.hn-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 80% 50%, rgba(0,154,68,.25) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(255,215,0,.12) 0%, transparent 60%);
}
/* Motif géométrique discret */
.hn-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hn-hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 80px 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hn-hero-text {}
.hn-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,215,0,.15); border: 1px solid rgba(255,215,0,.4);
  color: var(--hn-yellow); font-size: 12px; font-weight: 700;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 20px;
  font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif; text-transform: uppercase; letter-spacing: .05em;
}
.hn-hero-title {
  font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900; color: #fff; line-height: 1.15; margin-bottom: 18px;
}
.hn-hero-title-line2 { color: var(--hn-yellow); display: block; }
.hn-hero-sub {
  color: rgba(255,255,255,.80); font-size: 16px; line-height: 1.7;
  margin-bottom: 32px; max-width: 480px;
}
.hn-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hn-btn-hero-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--hn-yellow); color: var(--hn-blue);
  font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif; font-weight: 800; font-size: 15px;
  padding: 14px 28px; border-radius: 10px; text-decoration: none;
  transition: all .2s; box-shadow: 0 4px 20px rgba(255,215,0,.35);
}
.hn-btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,215,0,.45); text-decoration: none; color: var(--hn-blue); }
.hn-btn-hero-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid rgba(255,255,255,.5); color: #fff;
  font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif; font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 10px; text-decoration: none; transition: all .2s;
}
.hn-btn-hero-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); text-decoration: none; color: #fff; }
.hn-hero-stats {
  display: flex; gap: 0; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12); border-radius: 14px;
  overflow: hidden; backdrop-filter: blur(8px);
}
.hn-stat { flex: 1; padding: 18px 16px; text-align: center; }
.hn-stat-sep { width: 1px; background: rgba(255,255,255,.12); }
.hn-stat-val { display: block; font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif; font-size: 26px; font-weight: 800; color: var(--hn-yellow); }
.hn-stat-lbl { display: block; font-size: 12px; color: rgba(255,255,255,.65); margin-top: 2px; }

/* Hero right — carte visuelle */
.hn-hero-visual {
  display: flex; flex-direction: column; gap: 14px; align-items: flex-end;
}
.hn-hero-card {
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(12px); border-radius: 16px; padding: 22px 24px;
  width: 100%; max-width: 360px;
}
.hn-hero-card h4 { font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif; color: var(--hn-yellow); font-size: 13px; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .04em; }
.hn-hero-steps { display: flex; flex-direction: column; gap: 12px; }
.hn-hero-step { display: flex; align-items: center; gap: 12px; }
.hn-hero-step-num { width: 30px; height: 30px; border-radius: 50%; background: var(--hn-yellow); color: var(--hn-blue); font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hn-hero-step-text { color: rgba(255,255,255,.85); font-size: 13px; }

.hn-hero-scroll {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 2; animation: bounce 2s infinite;
}
.hn-hero-scroll svg { width: 28px; height: 28px; color: rgba(255,255,255,.4); }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* ── CONTAINER ──────────────────────────────────────── */
.hn-container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* ── SECTION HEADERS ────────────────────────────────── */
.hn-section-header { text-align: center; margin-bottom: 48px; }
.hn-section-tag {
  display: inline-block; background: var(--hn-blue-lt); color: var(--hn-blue);
  font-size: 11px; font-weight: 800; padding: 4px 14px;
  border-radius: 20px; margin-bottom: 12px;
  font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif; text-transform: uppercase; letter-spacing: .08em;
}
.hn-section-title {
  font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif;
  font-size: clamp(24px, 3vw, 36px); font-weight: 800; color: var(--hn-text);
  line-height: 1.2; margin-bottom: 14px;
}
.hn-section-sub { color: var(--hn-gray); font-size: 16px; max-width: 600px; margin: 0 auto; }

/* ── ABOUT ──────────────────────────────────────────── */
.hn-about { padding: 80px 0; background: var(--hn-gray-lt); }
.hn-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.hn-about-text .hn-section-tag { display: inline-block; }
.hn-about-text h2 { font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif; font-size: clamp(22px,2.5vw,30px); font-weight: 800; color: var(--hn-text); margin-bottom: 16px; line-height: 1.3; }
.hn-about-text p { color: var(--hn-gray); line-height: 1.75; font-size: 15px; }
.hn-about-features { display: flex; flex-direction: column; gap: 14px; }
.hn-feature-card {
  display: flex; align-items: flex-start; gap: 16px;
  background: #fff; border: 1px solid var(--hn-border);
  border-radius: var(--hn-radius); padding: 18px; box-shadow: var(--hn-shadow);
  transition: transform .2s, box-shadow .2s;
}
.hn-feature-card:hover { transform: translateX(4px); box-shadow: var(--hn-shadow-lg); }
.hn-feature-icon { font-size: 26px; flex-shrink: 0; width: 44px; text-align: center; }
.hn-feature-card strong { display: block; font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif; font-size: 14px; font-weight: 700; color: var(--hn-blue); margin-bottom: 4px; }
.hn-feature-card p { color: var(--hn-gray); font-size: 13px; line-height: 1.55; margin: 0; }

/* ── BTN BLUE ────────────────────────────────────────── */
.hn-btn-blue {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--hn-blue); color: #fff; font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif;
  font-size: 13px; font-weight: 700; padding: 10px 22px; border-radius: 8px;
  text-decoration: none; transition: all .18s;
}
.hn-btn-blue:hover { background: var(--hn-blue-dk); text-decoration: none; color: #fff; }

.hn-btn-green {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--hn-green); color: #fff; font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif;
  font-size: 13px; font-weight: 700; padding: 10px 22px; border-radius: 8px;
  text-decoration: none; transition: all .18s;
}
.hn-btn-green:hover { background: var(--hn-green-dk); text-decoration: none; color: #fff; }

/* ── CONCOURS ────────────────────────────────────────── */
.hn-concours { padding: 80px 0; background: #fff; }
.hn-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.hn-card {
  background: #fff; border: 1px solid var(--hn-border); border-radius: var(--hn-radius-lg);
  padding: 28px; box-shadow: var(--hn-shadow); transition: all .25s;
  display: flex; flex-direction: column;
}
.hn-card:hover { transform: translateY(-4px); box-shadow: var(--hn-shadow-lg); border-color: var(--hn-blue); }
.hn-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.hn-badge-open { background: #DCFCE7; color: #166534; font-size: 11px; font-weight: 800; padding: 3px 12px; border-radius: 20px; font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif; }
.hn-badge-places { background: var(--hn-blue-lt); color: var(--hn-blue); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif; }
.hn-card-title { font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif; font-size: 17px; font-weight: 800; color: var(--hn-text); margin-bottom: 10px; line-height: 1.35; }
.hn-card-desc { color: var(--hn-gray); font-size: 14px; line-height: 1.65; flex: 1; margin-bottom: 16px; }
.hn-card-meta { display: flex; gap: 16px; font-size: 13px; color: var(--hn-gray); margin-bottom: 20px; }
.hn-card-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--hn-border); }
.hn-btn-outline-sm {
  padding: 7px 16px; border: 1.5px solid var(--hn-blue); color: var(--hn-blue);
  border-radius: 7px; font-size: 13px; font-weight: 700; text-decoration: none;
  font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif; transition: all .18s;
}
.hn-btn-outline-sm:hover { background: var(--hn-blue); color: #fff; text-decoration: none; }
.hn-btn-green-sm {
  padding: 7px 16px; background: var(--hn-green); color: #fff;
  border-radius: 7px; font-size: 13px; font-weight: 700; text-decoration: none;
  font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif; transition: all .18s;
}
.hn-btn-green-sm:hover { background: var(--hn-green-dk); text-decoration: none; color: #fff; }

.hn-empty-state { text-align: center; padding: 60px 24px; }
.hn-empty-icon { font-size: 48px; margin-bottom: 16px; }
.hn-empty-state h3 { font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif; font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.hn-empty-state p { color: var(--hn-gray); font-size: 14px; }

/* ── PROCESSUS ───────────────────────────────────────── */
.hn-process { padding: 80px 0; background: var(--hn-blue); }
.hn-process .hn-section-tag { background: rgba(255,215,0,.2); color: var(--hn-yellow); }
.hn-process .hn-section-title { color: #fff; }
.hn-steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: start; gap: 0; }
.hn-step { text-align: center; padding: 0 12px; }
.hn-step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--hn-yellow); color: var(--hn-blue);
  font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif; font-size: 22px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; box-shadow: 0 4px 20px rgba(255,215,0,.4);
}
.hn-step h4 { font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif; font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.hn-step p { color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.6; }
.hn-step-arrow { font-size: 28px; color: rgba(255,215,0,.5); padding-top: 14px; user-select: none; }

/* ── PARTNERS ────────────────────────────────────────── */
.hn-partners { padding: 70px 0; background: var(--hn-gray-lt); }
.hn-partners-track-wrap { overflow: hidden; border-top: 1px solid var(--hn-border); padding-top: 28px; }
.hn-partners-track {
  display: flex; align-items: center; gap: 48px;
  animation: scroll-logos 28s linear infinite; width: max-content;
}
.hn-partners-track img { height: 50px; width: auto; max-width: 130px; object-fit: contain; filter: grayscale(40%); opacity: .8; transition: .2s; }
.hn-partners-track img:hover { filter: grayscale(0); opacity: 1; }
@keyframes scroll-logos { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ── CONTACT ─────────────────────────────────────────── */
.hn-contact { padding: 80px 0; background: var(--hn-blue-dk); }
.hn-contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.hn-contact-items { display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }
.hn-contact-item { display: flex; align-items: flex-start; gap: 14px; }
.hn-contact-icon { font-size: 22px; flex-shrink: 0; }
.hn-contact-item strong { display: block; color: var(--hn-yellow); font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif; font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.hn-contact-item span { color: rgba(255,255,255,.75); font-size: 14px; }
.hn-contact-form-wrap { background: #fff; border-radius: 16px; padding: 32px; }
.hn-contact-form-wrap h3 { font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif; font-size: 18px; font-weight: 700; color: var(--hn-blue); margin-bottom: 20px; }
.hn-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hn-contact-form .form-group { margin-bottom: 14px; }
.hn-contact-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--hn-text); font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif; }
.hn-contact-form input,
.hn-contact-form textarea {
  width: 100%; padding: 9px 12px; border: 1.5px solid var(--hn-border);
  border-radius: 8px; font-size: 14px; font-family: 'Segoe UI', Arial, sans-serif;
  transition: border-color .15s;
}
.hn-contact-form input:focus,
.hn-contact-form textarea:focus { outline: none; border-color: var(--hn-blue); }

/* ── FOOTER ──────────────────────────────────────────── */
.hn-footer { background: #0a0f1c; padding: 60px 0 0; }
.hn-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.hn-footer-brand p { color: rgba(255,255,255,.55); font-size: 13px; line-height: 1.7; margin-bottom: 20px; max-width: 300px; }
.hn-footer-socials { display: flex; gap: 12px; }
.hn-footer-socials a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  transition: all .18s; border: 1px solid rgba(255,255,255,.1);
}
.hn-footer-socials a:hover { background: var(--hn-blue); color: #fff; border-color: var(--hn-blue); }
.hn-footer-socials svg { width: 16px; height: 16px; }
.hn-footer-col h4 { font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif; font-size: 13px; font-weight: 700; color: var(--hn-yellow); margin-bottom: 16px; text-transform: uppercase; letter-spacing: .06em; }
.hn-footer-col a, .hn-footer-col span { display: block; color: rgba(255,255,255,.55); font-size: 13px; margin-bottom: 10px; text-decoration: none; transition: color .15s; }
.hn-footer-col a:hover { color: #fff; text-decoration: none; }
.hn-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 20px 0; display: flex;
  justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,.35); gap: 16px; flex-wrap: wrap;
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  .hn-topbar { display: none; }
  .hn-hero-content { grid-template-columns: 1fr; gap: 32px; }
  .hn-hero-visual { display: none; }
  .hn-about-grid { grid-template-columns: 1fr; gap: 32px; }
  .hn-contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .hn-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hn-steps { grid-template-columns: 1fr; }
  .hn-step-arrow { display: none; }
  .hn-form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hn-navbar-inner { padding: 0 16px; }
  .hn-nav-links { display: none; }
  .hn-nav-links.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 2px solid var(--hn-blue); padding: 12px; z-index: 300; }
  .hn-menu-toggle { display: flex; }
  .hn-hero-content { padding: 48px 16px; }
  .hn-container { padding: 0 16px; }
  .hn-cards-grid { grid-template-columns: 1fr; }
}
