/* =========================================================
   ECOFIN Strategy Madagascar — feuille de style principale
   ========================================================= */

:root{
  --navy: #0F2A4A;
  --navy-deep: #081A30;
  --teal: #12876B;
  --teal-light: #E4F2ED;
  --teal-bright: #5DCAA5;
  --ivory: #F7F5EF;
  --slate: #3E4A5C;
  --slate-light: #74808F;
  --line: #DDD8CB;
  --white: #FFFFFF;
  --radius: 6px;
  --container: 1120px;
}

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

html{ scroll-behavior:smooth; }

body{
  font-family:'Manrope', system-ui, sans-serif;
  color:var(--slate);
  background:var(--ivory);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3{
  font-family:'Fraunces', Georgia, serif;
  color:var(--navy);
  font-weight:600;
  line-height:1.15;
}

a{ text-decoration:none; color:inherit; }
img{ max-width:100%; display:block; }
ul{ list-style:none; }
button{ font-family:inherit; cursor:pointer; }

.wrap{ max-width:var(--container); margin:0 auto; padding:0 32px; }

.eyebrow{
  font-size:13px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--teal);
  font-weight:700;
  margin-bottom:14px;
  display:block;
}

.skip-link{
  position:absolute; left:-999px; top:0;
  background:var(--navy); color:var(--white); padding:10px 16px; z-index:200;
}
.skip-link:focus{ left:12px; top:12px; }

/* ---- Growth-bar divider (signature element) ---- */
.growth-divider{
  display:flex; align-items:flex-end; justify-content:center; gap:6px;
  height:34px; margin:0 auto; width:fit-content;
}
.growth-divider span{
  display:block; width:8px; background:var(--teal);
  border-radius:2px 2px 0 0; opacity:.85;
}
.growth-divider span:nth-child(1){height:10px;}
.growth-divider span:nth-child(2){height:18px;}
.growth-divider span:nth-child(3){height:28px;}
.growth-divider span:nth-child(4){height:16px; background:var(--navy); opacity:.5;}
.divider-block{ padding:0; text-align:center; }

/* ================= HEADER ================= */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(247,245,239,.94);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}
.nav{ display:flex; align-items:center; justify-content:space-between; padding:14px 0; gap:20px; }

.logo-mark{ display:flex; align-items:center; gap:12px; flex-shrink:0; }
.logo-mark img{ height:44px; width:auto; }
.logo-mark .logo-text{ display:flex; flex-direction:column; line-height:1.15; }
.logo-mark .logo-text .name{ font-family:'Fraunces',serif; font-weight:600; font-size:18px; color:var(--navy); }
.logo-mark .logo-text .name span.fin{ color:var(--teal); }
.logo-mark .logo-text .baseline{
  font-size:9px; letter-spacing:.1em; text-transform:uppercase; color:var(--slate-light); font-weight:600;
}

nav#primary-nav ul{ display:flex; gap:22px; }
nav#primary-nav a{
  font-size:14px; font-weight:600; color:var(--navy); transition:color .15s; white-space:nowrap;
}
nav#primary-nav a:hover, nav#primary-nav a:focus-visible{ color:var(--teal); }
nav#primary-nav a.active{ color:var(--teal); }

.nav-cta{
  background:var(--teal); color:var(--white);
  padding:11px 20px; border-radius:24px; font-size:14px; font-weight:700;
  display:inline-flex; align-items:center; gap:8px; white-space:nowrap; flex-shrink:0;
  transition:background .15s;
}
.nav-cta:hover{ background:#0e6d57; }
.nav-cta svg{ width:15px; height:15px; }

.menu-btn{
  display:none; background:none; border:none; width:38px; height:38px;
  align-items:center; justify-content:center; flex-shrink:0;
}
.menu-btn .bars{ width:22px; position:relative; height:16px; }
.menu-btn .bars span{
  position:absolute; left:0; width:100%; height:2px; background:var(--navy); border-radius:2px;
  transition:transform .2s, opacity .2s;
}
.menu-btn .bars span:nth-child(1){ top:0; }
.menu-btn .bars span:nth-child(2){ top:7px; }
.menu-btn .bars span:nth-child(3){ top:14px; }
.menu-btn[aria-expanded="true"] .bars span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars span:nth-child(2){ opacity:0; }
.menu-btn[aria-expanded="true"] .bars span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ================= HERO ================= */
.hero{ padding:88px 0 76px; position:relative; overflow:hidden; }
.hero .wrap{ display:grid; grid-template-columns:1.1fr .9fr; gap:56px; align-items:center; }
.hero h1{ font-size:44px; margin-bottom:20px; letter-spacing:-.01em; }
.hero h1 em{ font-style:normal; color:var(--teal); }
.hero p.lead{ font-size:17px; color:var(--slate-light); max-width:480px; margin-bottom:32px; }
.hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; }

.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 26px; border-radius:3px; font-weight:700; font-size:14.5px;
  transition:transform .15s, background .15s, border-color .15s;
}
.btn-primary{ background:var(--navy); color:var(--white); border:1.5px solid var(--navy); }
.btn-primary:hover{ background:#0a2038; }
.btn-secondary{ border:1.5px solid var(--navy); color:var(--navy); background:transparent; }
.btn-secondary:hover{ background:var(--navy); color:var(--white); }

.hero-visual{
  background:var(--navy); border-radius:var(--radius); padding:38px;
  position:relative; min-height:340px; display:flex; flex-direction:column; justify-content:flex-end;
  overflow:hidden;
}
.hero-visual::before{
  content:''; position:absolute; inset:0;
  background:linear-gradient(180deg, transparent 60%, rgba(18,135,107,.28) 100%);
}
.hero-bars{ display:flex; align-items:flex-end; gap:14px; height:140px; position:relative; z-index:2; }
.hero-bars .bar{ flex:1; background:var(--teal); border-radius:3px 3px 0 0; opacity:.9; }
.hero-bars .bar:nth-child(1){ height:35%; }
.hero-bars .bar:nth-child(2){ height:58%; }
.hero-bars .bar:nth-child(3){ height:42%; }
.hero-bars .bar:nth-child(4){ height:85%; background:var(--teal-bright); }
.hero-stat{
  color:var(--white); position:relative; z-index:2; margin-top:24px;
  border-top:1px solid rgba(255,255,255,.15); padding-top:18px;
}
.hero-stat .num{ font-family:'Fraunces',serif; font-size:26px; font-weight:600; color:var(--teal-bright); }
.hero-stat .cap{ font-size:12.5px; color:rgba(255,255,255,.7); margin-top:4px; }

/* ================= MISSION / VISION ================= */
.mv-band{ background:var(--navy); color:var(--white); padding:52px 0; }
.mv-grid{ display:grid; grid-template-columns:1fr 1fr; gap:48px; }
.mv-grid h3{
  color:var(--teal-bright); font-size:13px; letter-spacing:.12em; text-transform:uppercase;
  font-family:'Manrope',sans-serif; font-weight:700; margin-bottom:12px;
}
.mv-grid p{ font-size:16.5px; color:rgba(255,255,255,.88); font-family:'Fraunces',serif; line-height:1.5; }

/* ================= SECTION BASE ================= */
section.pad{ padding:84px 0; }
.section-head{ max-width:600px; margin-bottom:48px; }
.section-head h2{ font-size:31px; }
.section-head p{ color:var(--slate-light); margin-top:14px; font-size:15.5px; }

/* ================= QUI SOMMES-NOUS ================= */
.about-grid{ display:grid; grid-template-columns:.9fr 1.1fr; gap:56px; align-items:start; }
.about-list li{
  display:flex; gap:14px; padding:17px 0; border-bottom:1px solid var(--line); font-size:15px; color:var(--slate);
}
.about-list li:last-child{ border-bottom:none; }
.about-list .num{ font-family:'Fraunces',serif; color:var(--teal); font-weight:600; font-size:15px; min-width:24px; }
.about-card{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:32px; }
.about-card p{ font-size:15.5px; color:var(--slate); margin-bottom:15px; }
.about-card p:last-child{ margin-bottom:0; }

/* ================= SERVICES ================= */
.services-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.service-card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:30px 26px; transition:border-color .15s, transform .15s;
}
.service-card:hover{ border-color:var(--teal); transform:translateY(-3px); }
.service-icon{
  width:44px; height:44px; border-radius:var(--radius); background:var(--teal-light);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px;
}
.bar-icon{ display:flex; align-items:flex-end; gap:3px; height:20px; }
.bar-icon span{ width:4px; background:var(--teal); border-radius:1px; }
.bar-icon span:nth-child(1){height:8px;} .bar-icon span:nth-child(2){height:16px;} .bar-icon span:nth-child(3){height:12px;}
.service-card h3{ font-size:18.5px; margin-bottom:13px; }
.service-card ul li{
  font-size:14px; color:var(--slate-light); padding:6px 0 6px 18px; position:relative;
}
.service-card ul li::before{ content:''; position:absolute; left:0; top:14px; width:6px; height:1.5px; background:var(--teal); }

/* ================= STATS BAND ================= */
.stats-band{ background:var(--navy); padding:46px 0; }
.stats-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.stat-item{ display:flex; align-items:center; gap:14px; color:var(--white); }
.stat-icon{
  width:46px; height:46px; border-radius:50%; background:rgba(93,202,165,.15);
  display:flex; align-items:center; justify-content:center; flex-shrink:0; color:var(--teal-bright);
}
.stat-item .num{ font-family:'Fraunces',serif; font-size:24px; font-weight:600; }
.stat-item .cap{ font-size:12.5px; color:rgba(255,255,255,.65); }

/* ================= CLIENTS ================= */
.clients-band{ background:var(--teal-light); padding:68px 0; }
.clients-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin-top:36px; }
.client-pill{
  background:var(--white); border-radius:var(--radius); padding:24px 18px; text-align:center;
  border:1px solid rgba(18,135,107,.15);
}
.client-pill .label{ font-family:'Fraunces',serif; font-size:15.5px; color:var(--navy); font-weight:600; }

/* ================= VALEUR AJOUTÉE ================= */
.value-wrap{ display:grid; grid-template-columns:.8fr 1.2fr; gap:56px; align-items:center; }
.value-quote{
  font-family:'Fraunces',serif; font-size:23px; color:var(--navy); line-height:1.4;
  border-left:3px solid var(--teal); padding-left:22px;
}
.value-points{ display:grid; gap:20px; }
.value-point{ display:flex; gap:16px; align-items:flex-start; }
.value-point .mark{
  width:28px; height:28px; border-radius:50%; background:var(--navy); color:var(--white);
  display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; flex-shrink:0;
  font-family:'Fraunces',serif;
}
.value-point p{ font-size:15px; color:var(--slate); }
.value-point strong{ color:var(--navy); display:block; margin-bottom:2px; font-size:15.5px; }

/* ================= ACTUALITÉS ================= */
.news-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.news-card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden;
}
.news-card .news-tag{
  display:inline-block; background:var(--teal-light); color:var(--teal); font-size:11.5px; font-weight:700;
  letter-spacing:.04em; text-transform:uppercase; padding:4px 10px; border-radius:20px; margin-bottom:12px;
}
.news-card .news-body{ padding:22px 22px 24px; }
.news-card h3{ font-size:17px; margin-bottom:8px; }
.news-card p{ font-size:14px; color:var(--slate-light); }
.news-placeholder{
  border:1.5px dashed var(--line); border-radius:var(--radius); padding:40px; text-align:center;
  color:var(--slate-light); font-size:14.5px;
}

/* ================= CONTACT / CTA ================= */
.cta-band{ background:var(--navy-deep); color:var(--white); padding:76px 0; }
.cta-grid{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start; }
.cta-band h2{ color:var(--white); font-size:31px; margin-bottom:16px; }
.cta-band > .wrap > div:first-child > p{ color:rgba(255,255,255,.7); font-size:15.5px; max-width:440px; margin-bottom:28px; }

.contact-card{ background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.14); border-radius:var(--radius); padding:28px; margin-bottom:20px; }
.contact-row{ display:flex; align-items:center; gap:14px; padding:13px 0; border-bottom:1px solid rgba(255,255,255,.1); }
.contact-row:last-child{ border-bottom:none; }
.contact-row .ico{
  width:36px; height:36px; border-radius:50%; background:rgba(18,135,107,.25);
  color:var(--teal-bright); display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.contact-row .txt-label{ font-size:11.5px; text-transform:uppercase; letter-spacing:.08em; color:rgba(255,255,255,.5); }
.contact-row .txt-value{ font-size:15px; font-weight:600; color:var(--white); }

.contact-form{ background:var(--white); border-radius:var(--radius); padding:30px; }
.contact-form h3{ font-size:19px; margin-bottom:6px; }
.contact-form p.form-note{ font-size:13.5px; color:var(--slate-light); margin-bottom:20px; }
.form-row{ margin-bottom:16px; }
.form-row label{ display:block; font-size:13px; font-weight:700; color:var(--navy); margin-bottom:6px; }
.form-row input, .form-row textarea{
  width:100%; border:1px solid var(--line); border-radius:4px; padding:11px 13px;
  font-family:inherit; font-size:14.5px; color:var(--slate); background:var(--ivory);
}
.form-row input:focus, .form-row textarea:focus{ outline:2px solid var(--teal); outline-offset:1px; }
.form-row textarea{ resize:vertical; min-height:100px; }
.form-submit{ width:100%; justify-content:center; border:none; }
.form-status{ margin-top:12px; font-size:13.5px; }
.form-status.success{ color:var(--teal); }
.form-status.error{ color:#B3392C; }

/* ================= FOOTER ================= */
footer{ background:var(--navy-deep); border-top:1px solid rgba(255,255,255,.08); padding:56px 0 26px; color:rgba(255,255,255,.6); }
.footer-grid{ display:grid; grid-template-columns:1.3fr .8fr .9fr .9fr; gap:40px; margin-bottom:40px; }
.footer-brand .logo-mark img{ height:38px; }
.footer-brand .logo-mark .name{ color:var(--white); }
.footer-brand .logo-mark .baseline{ color:rgba(255,255,255,.45); }
.footer-brand p{ font-size:14px; margin-top:16px; max-width:280px; }
.footer-social{ display:flex; gap:10px; margin-top:18px; }
.footer-social a{
  width:34px; height:34px; border-radius:50%; border:1px solid rgba(255,255,255,.2);
  display:flex; align-items:center; justify-content:center; transition:background .15s, border-color .15s;
}
.footer-social a:hover{ background:var(--teal); border-color:var(--teal); }
.footer-col h4{ color:var(--white); font-size:14px; font-family:'Manrope',sans-serif; font-weight:700; margin-bottom:16px; }
.footer-col ul li{ margin-bottom:10px; }
.footer-col ul a{ font-size:14px; transition:color .15s; }
.footer-col ul a:hover{ color:var(--teal-bright); }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08); padding-top:22px; text-align:center; font-size:13px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 980px){
  nav#primary-nav ul{ gap:16px; }
  nav#primary-nav a{ font-size:13.5px; }
  .hero h1{ font-size:38px; }
}

@media (max-width: 880px){
  .wrap{ padding:0 22px; }
  nav#primary-nav{
    position:fixed; inset:64px 0 0 0; background:var(--ivory);
    transform:translateX(100%); transition:transform .25s ease; overflow-y:auto; padding:28px 0;
    border-top:1px solid var(--line);
  }
  nav#primary-nav.open{ transform:translateX(0); }
  nav#primary-nav ul{ flex-direction:column; gap:0; padding:0 22px; }
  nav#primary-nav ul li{ border-bottom:1px solid var(--line); }
  nav#primary-nav a{ display:block; padding:16px 4px; font-size:16px; }
  .nav-cta{ display:none; }
  .menu-btn{ display:flex; }

  .hero .wrap{ grid-template-columns:1fr; }
  .hero{ padding:52px 0 56px; }
  .mv-grid{ grid-template-columns:1fr; gap:30px; }
  .about-grid{ grid-template-columns:1fr; gap:30px; }
  .services-grid{ grid-template-columns:1fr; }
  .stats-grid{ grid-template-columns:1fr 1fr; gap:28px; }
  .clients-grid{ grid-template-columns:1fr 1fr; }
  .value-wrap{ grid-template-columns:1fr; gap:30px; }
  .news-grid{ grid-template-columns:1fr; }
  .cta-grid{ grid-template-columns:1fr; gap:32px; }
  .footer-grid{ grid-template-columns:1fr 1fr; gap:32px; }
  section.pad{ padding:56px 0; }
  .section-head h2{ font-size:25px; }
}

@media (max-width: 560px){
  .hero h1{ font-size:29px; }
  .hero-ctas{ flex-direction:column; }
  .btn{ justify-content:center; }
  .stats-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; gap:28px; }
  .logo-mark .logo-text{ display:none; }
}
