/*
Theme Name: NEPP Modern
Theme URI: https://nepp-niger.com/
Author: NEPP
Description: Thème institutionnel moderne pour Niger Electricity Power Production.
Version: 1.0.2
Text Domain: nepp-modern
*/

:root {
  --ink: #0b1f2a;
  --ink-soft: #35505d;
  --night: #071820;
  --sun: #f5c400;
  --orange: #ec6b22;
  --green: #178a5b;
  --cream: #f7f5ee;
  --white: #ffffff;
  --line: rgba(11, 31, 42, .12);
  --shadow: 0 24px 70px rgba(7, 24, 32, .14);
  --radius: 24px;
  --wrap: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.2rem; }
h1, h2, h3, h4 { margin: 0; font-family: "Manrope", Inter, sans-serif; line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(3rem, 7vw, 6.4rem); }
h2 { font-size: clamp(2.25rem, 4.5vw, 4.2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.wrap { width: var(--wrap); margin-inline: auto; }
.section { padding: clamp(76px, 9vw, 130px) 0; }
.section-soft { background: var(--cream); }
.section-dark { color: var(--white); background: var(--night); }
.eyebrow { display: inline-flex; gap: 10px; align-items: center; margin-bottom: 18px; color: var(--green); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { width: 34px; height: 3px; background: var(--sun); content: ""; }
.section-dark .eyebrow { color: #7de0b5; }
.lead { max-width: 760px; color: var(--ink-soft); font-size: clamp(1.08rem, 1.8vw, 1.3rem); }
.section-dark .lead { color: rgba(255,255,255,.72); }
.section-head { display: flex; gap: 32px; align-items: end; justify-content: space-between; margin-bottom: 48px; }
.section-head > div:first-child { max-width: 820px; }
.kicker { color: var(--orange); font-weight: 800; }
.btn { display: inline-flex; min-height: 52px; padding: 0 25px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; background: var(--sun); color: var(--night); font-size: .92rem; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover, .btn:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(245,196,0,.26); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.35); background: transparent; color: var(--white); }
.text-link { display: inline-flex; gap: 10px; align-items: center; color: var(--green); font-weight: 800; }
.text-link::after { content: "→"; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(5px); }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(7,24,32,.92); color: var(--white); backdrop-filter: blur(16px); }
.nav-wrap { display: flex; min-height: 82px; align-items: center; justify-content: space-between; }
.brand { display: flex; gap: 12px; align-items: center; font-family: Manrope, sans-serif; font-weight: 800; letter-spacing: .04em; }
.brand img { width: 50px; height: 50px; border-radius: 50%; object-fit: contain; background: #fff; }
.brand small { display: block; color: rgba(255,255,255,.58); font-size: .62rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a { position: relative; color: rgba(255,255,255,.82); font-size: .87rem; font-weight: 700; }
.main-nav a:not(.btn)::after { position: absolute; right: 0; bottom: -8px; left: 0; height: 2px; background: var(--sun); content: ""; transform: scaleX(0); transition: transform .2s ease; }
.main-nav a:hover::after, .main-nav .current-menu-item::after { transform: scaleX(1); }
.main-nav .btn { color: var(--night); }
.menu-toggle { display: none; border: 0; background: transparent; color: #fff; font-size: 1.6rem; }

.hero { position: relative; display: grid; min-height: calc(100svh - 82px); align-items: end; overflow: hidden; color: var(--white); background: var(--night); }
.hero::before { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,20,27,.93) 0%, rgba(5,20,27,.64) 48%, rgba(5,20,27,.18) 100%), url("assets/images/hero-solar.jpg") center/cover; content: ""; transform: scale(1.02); }
.hero::after { position: absolute; right: -12%; bottom: -50%; width: 70vw; height: 70vw; border: 1px solid rgba(245,196,0,.22); border-radius: 50%; content: ""; }
.hero-inner { position: relative; z-index: 1; padding: clamp(110px, 16vh, 190px) 0 72px; }
.hero h1 { max-width: 980px; }
.hero h1 span { color: var(--sun); }
.hero-copy { max-width: 690px; margin: 26px 0 34px; color: rgba(255,255,255,.8); font-size: clamp(1.08rem, 2vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 80px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; background: rgba(255,255,255,.14); }
.hero-stat { padding: 22px 24px; background: rgba(7,24,32,.64); backdrop-filter: blur(14px); }
.hero-stat strong { display: block; color: var(--sun); font-family: Manrope, sans-serif; font-size: clamp(1.5rem, 3vw, 2.5rem); letter-spacing: -.04em; }
.hero-stat span { color: rgba(255,255,255,.62); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { position: relative; min-height: 330px; padding: 32px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 12px 40px rgba(7,24,32,.06); }
.feature-card::before { position: absolute; top: 0; right: 0; width: 100px; height: 5px; background: var(--sun); content: ""; }
.feature-card .num { display: block; margin-bottom: 80px; color: var(--orange); font-weight: 800; }
.feature-card p { margin-top: 14px; color: var(--ink-soft); }
.feature-card.dark { color: #fff; background: var(--ink); }
.feature-card.dark p { color: rgba(255,255,255,.66); }

.split { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(42px, 7vw, 92px); align-items: center; }
.media-frame { position: relative; min-height: 560px; overflow: hidden; border-radius: 30px; box-shadow: var(--shadow); }
.media-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-badge { position: absolute; right: 24px; bottom: 24px; max-width: 250px; padding: 22px; border-radius: 18px; background: rgba(255,255,255,.93); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.media-badge strong { display: block; color: var(--green); font-family: Manrope, sans-serif; font-size: 2rem; }
.check-list { display: grid; gap: 17px; margin: 30px 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 34px; color: var(--ink-soft); }
.check-list li::before { position: absolute; top: .2em; left: 0; display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: rgba(23,138,91,.12); color: var(--green); content: "✓"; font-size: .78rem; font-weight: 900; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.metric { padding: 30px 24px; border-left: 3px solid var(--sun); background: rgba(255,255,255,.05); }
.metric strong { display: block; color: var(--sun); font-family: Manrope, sans-serif; font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -.05em; }
.metric span { color: rgba(255,255,255,.65); font-size: .87rem; }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 52px; }
.timeline-step { position: relative; padding: 36px 28px; border-top: 1px solid var(--line); }
.timeline-step::before { position: absolute; top: -7px; left: 28px; width: 13px; height: 13px; border: 3px solid white; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 1px var(--green); content: ""; }
.timeline-step b { display: block; margin-bottom: 10px; color: var(--orange); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.timeline-step p { color: var(--ink-soft); font-size: .95rem; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-thumb { display: block; height: 178px; overflow: hidden; background: linear-gradient(135deg, var(--ink), var(--green)); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-thumb img { transform: scale(1.04); }
.news-content { padding: 19px 20px 21px; }
.news-meta { margin-bottom: 9px; color: var(--orange); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.news-card h3 { margin-bottom: 10px; font-size: 1.15rem; line-height: 1.2; }
.news-card p { color: var(--ink-soft); font-size: .88rem; }
.news-summary { display: -webkit-box; min-height: 4.35em; margin-bottom: 14px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.news-card .text-link { font-size: .86rem; }

.page-hero { position: relative; padding: 145px 0 90px; overflow: hidden; color: white; background: var(--night); }
.page-hero::after { position: absolute; top: -180px; right: -120px; width: 480px; height: 480px; border: 90px solid rgba(245,196,0,.08); border-radius: 50%; content: ""; }
.page-hero h1 { position: relative; z-index: 1; max-width: 980px; font-size: clamp(3rem, 6vw, 5.3rem); }
.page-hero p { position: relative; z-index: 1; max-width: 760px; margin-top: 24px; color: rgba(255,255,255,.7); font-size: 1.18rem; }
.content-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.info-card { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.info-card .icon { display: grid; width: 46px; height: 46px; margin-bottom: 28px; place-items: center; border-radius: 14px; background: var(--sun); color: var(--night); font-weight: 900; }
.info-card p { color: var(--ink-soft); }
.data-table { width: 100%; overflow: hidden; border-collapse: collapse; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); }
.data-table th, .data-table td { padding: 18px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { width: 37%; color: var(--ink); background: var(--cream); font-size: .86rem; }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: 0; }
.notice { padding: 24px; border-left: 4px solid var(--sun); background: #fff8d8; color: #4e4309; }
.quote { padding: 38px; border-radius: var(--radius); background: var(--green); color: white; font-size: 1.3rem; }

.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 60px; align-items: start; }
.contact-list { display: grid; gap: 18px; margin-top: 32px; }
.contact-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-item small { display: block; color: var(--green); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contact-form { display: grid; gap: 18px; padding: 36px; border-radius: var(--radius); background: var(--cream); }
.field { display: grid; gap: 7px; }
.field label { font-size: .84rem; font-weight: 800; }
.field input, .field textarea { width: 100%; padding: 15px 17px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); font: inherit; }
.field input:focus, .field textarea:focus { border-color: var(--green); outline: 3px solid rgba(23,138,91,.12); }
.field textarea { min-height: 150px; resize: vertical; }
.form-status { padding: 14px 18px; border-radius: 10px; background: #def6e9; color: #0c6040; }
.hp { position: absolute !important; left: -9999px !important; }

.site-footer { padding: 72px 0 28px; color: rgba(255,255,255,.72); background: #041116; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; }
.footer-brand p { max-width: 470px; margin-top: 18px; }
.site-footer h3 { margin-bottom: 18px; color: white; font-size: 1rem; letter-spacing: .02em; }
.footer-links { display: grid; gap: 9px; }
.footer-links a:hover { color: var(--sun); }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 54px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; }

.article { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding: 90px 0 120px; }
.article h1 { margin-bottom: 24px; font-size: clamp(2.5rem, 5vw, 4.8rem); }
.article .news-meta { margin-bottom: 18px; }
.article-intro { margin: 0 0 40px; color: var(--ink-soft); font-size: clamp(1.16rem, 2.2vw, 1.45rem); line-height: 1.55; }
.article-divider { display: flex; gap: 18px; align-items: center; margin: 38px 0; color: var(--green); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.article-divider::after { height: 1px; flex: 1; background: var(--line); content: ""; }
.article-content > * + * { margin-top: 1.3rem; }
.article-content h2 { margin-top: 2.2em; font-size: 2rem; }
.article-content ul { padding-left: 1.25rem; }

@media (max-width: 960px) {
  body.admin-bar .site-header { top: 46px; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; right: 20px; left: 20px; display: none; padding: 25px; align-items: stretch; flex-direction: column; border-radius: 18px; background: var(--night); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .hero-stats, .metrics { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --wrap: min(100% - 28px, 1180px); --radius: 18px; }
  .section { padding: 68px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .hero { min-height: auto; }
  .hero-inner { padding-top: 105px; }
  .hero-stats { grid-template-columns: 1fr 1fr; margin-top: 52px; }
  .hero-stat { padding: 17px 14px; }
  .feature-grid, .news-grid, .content-grid, .metrics, .timeline, .footer-grid { grid-template-columns: 1fr; }
  .media-frame { min-height: 430px; }
  .timeline-step { border-top: 0; border-left: 1px solid var(--line); }
  .timeline-step::before { top: 42px; left: -7px; }
  .contact-form { padding: 24px; }
  .news-thumb { height: 160px; }
  .footer-bottom { gap: 8px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
