/* CartoBesoin — feuille de style partagée par toutes les pages */
:root{
  --navy:#1F3864; --navy-dark:#152648; --teal:#2E5266; --bg:#f6f7f9; --card:#ffffff;
  --green:#2e7d32; --orange:#e08a00; --red:#c0392b; --border:#e1e4e8; --ink:#222; --muted:#666;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{font-family:Arial, Helvetica, sans-serif; margin:0; background:var(--bg); color:var(--ink); line-height:1.55;}
a{color:var(--teal);}
img{max-width:100%;}

/* ---- Navigation ---- */
.site-header{background:#fff; border-bottom:1px solid var(--border); position:sticky; top:0; z-index:50;}
.nav-wrap{max-width:1200px; margin:0 auto; padding:0 24px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px;}
.brand{display:flex; align-items:baseline; gap:8px; padding:14px 0; text-decoration:none;}
.brand-mark{font-weight:bold; font-size:20px; color:var(--navy);}
.brand-tag{font-size:11.5px; color:var(--muted);}
.nav-links{display:flex; flex-wrap:wrap; gap:2px; margin:0; padding:0; list-style:none;}
.nav-links a{display:block; padding:10px 12px; font-size:13.5px; font-weight:600; color:var(--teal); text-decoration:none; border-radius:6px;}
.nav-links a:hover{background:#eef1f4;}
.nav-links a.active{background:var(--navy); color:#fff;}
.nav-links a.cta{background:var(--navy); color:#fff;}
.nav-links a.cta:hover{background:var(--navy-dark);}

/* ---- Hero ---- */
.hero{background:linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%); color:#fff; padding:56px 24px;}
.hero-inner{max-width:900px; margin:0 auto; text-align:center;}
.hero h1{font-size:34px; margin:0 0 14px;}
.hero p.lead{font-size:16.5px; opacity:.92; margin:0 auto 26px; max-width:680px;}
.hero-ctas{display:flex; gap:12px; justify-content:center; flex-wrap:wrap;}
.btn{display:inline-block; padding:12px 22px; border-radius:6px; font-size:14.5px; font-weight:bold; text-decoration:none; border:2px solid transparent; cursor:pointer;}
.btn-primary{background:#fff; color:var(--navy);}
.btn-primary:hover{background:#eef1f4;}
.btn-outline{background:transparent; color:#fff; border-color:#fff;}
.btn-outline:hover{background:rgba(255,255,255,.12);}
.btn-navy{background:var(--navy); color:#fff;}
.btn-navy:hover{background:var(--navy-dark);}

/* ---- Layout helpers ---- */
.wrap{max-width:1100px; margin:0 auto; padding:48px 24px;}
.wrap.narrow{max-width:820px;}
.wrap-tight{padding-top:32px; padding-bottom:32px;}
h2.section-title{font-size:24px; color:var(--navy); margin:0 0 8px;}
p.section-sub{color:var(--muted); font-size:14.5px; margin:0 0 28px;}

.grid-3{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
.grid-4{display:grid; grid-template-columns:repeat(4,1fr); gap:16px;}
@media (max-width:900px){ .grid-3{grid-template-columns:1fr;} .grid-4{grid-template-columns:1fr 1fr;} }
@media (max-width:600px){ .grid-4{grid-template-columns:1fr;} }

.card-box{background:var(--card); border:1px solid var(--border); border-radius:10px; padding:22px;}
.card-box h3{margin:0 0 8px; font-size:16px; color:var(--navy);}
.card-box p{font-size:13.5px; color:#444; margin:0;}
.icon-badge{width:40px; height:40px; border-radius:8px; background:#eef1f4; display:flex; align-items:center; justify-content:center; font-size:20px; margin-bottom:12px;}

.stat-row{display:flex; gap:32px; flex-wrap:wrap; justify-content:center; margin:8px 0 0;}
.stat{text-align:center;}
.stat .num{font-size:28px; font-weight:bold; color:var(--navy);}
.stat .label{font-size:12px; color:var(--muted);}

/* ---- Tabs (used on "ce que nous proposons") ---- */
.tabbar{display:flex; gap:8px; flex-wrap:wrap; border-bottom:2px solid var(--border); margin-bottom:28px;}
.tabbar button{background:none; border:none; padding:12px 16px; font-size:14px; font-weight:bold; color:var(--muted); cursor:pointer; border-bottom:3px solid transparent; margin-bottom:-2px; font-family:inherit;}
.tabbar button.active{color:var(--navy); border-bottom-color:var(--navy);}
.tabpanel{display:none;}
.tabpanel.active{display:block;}

/* ---- Generic content blocks ---- */
.callout{background:#FFF4E5; border:1px solid #f0d9a8; border-radius:8px; padding:16px 18px; font-size:13.5px; color:#5c4400; margin:20px 0;}
.callout.green{background:#EAF6EC; border-color:#bfe3c6; color:#1c4a22;}
.callout b{color:inherit;}
ul.plain{padding-left:18px; font-size:14px; margin:12px 0;}
ul.plain li{margin:6px 0;}
table.simple{width:100%; border-collapse:collapse; font-size:13.5px; margin:16px 0;}
table.simple th, table.simple td{border:1px solid var(--border); padding:10px 12px; text-align:left; vertical-align:top;}
table.simple th{background:var(--teal); color:#fff;}

/* ---- Newsletter banner ---- */
.newsletter-banner{background:#eef1f4; border-top:1px solid var(--border); border-bottom:1px solid var(--border); padding:22px 24px;}
.newsletter-inner{max-width:1100px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;}
.newsletter-inner h3{margin:0 0 4px; font-size:15px; color:var(--navy);}
.newsletter-inner p{margin:0; font-size:12.5px; color:var(--muted);}
.newsletter-badge{background:var(--navy); color:#fff; font-size:10.5px; font-weight:bold; padding:4px 10px; border-radius:20px; letter-spacing:.03em; text-transform:uppercase; white-space:nowrap;}

/* ---- Footer ---- */
.site-footer{background:var(--navy); color:#dbe2ea; padding:40px 24px 24px; margin-top:0;}
.footer-inner{max-width:1100px; margin:0 auto; display:grid; grid-template-columns:2fr 1fr 1fr; gap:32px;}
@media (max-width:700px){ .footer-inner{grid-template-columns:1fr;} }
.footer-inner h4{color:#fff; font-size:13px; text-transform:uppercase; letter-spacing:.04em; margin:0 0 12px;}
.footer-inner p{font-size:12.5px; line-height:1.6; margin:0 0 10px; color:#c3ccd6;}
.footer-inner ul{list-style:none; padding:0; margin:0;}
.footer-inner li{margin:6px 0;}
.footer-inner a{color:#dbe2ea; text-decoration:none; font-size:12.5px;}
.footer-inner a:hover{text-decoration:underline;}
.footer-bottom{max-width:1100px; margin:24px auto 0; padding-top:16px; border-top:1px solid rgba(255,255,255,.15); font-size:11.5px; color:#9aa8b8;}

/* ---- Page header (non-hero, used on inner pages) ---- */
.page-head{background:#fff; border-bottom:1px solid var(--border); padding:32px 24px;}
.page-head-inner{max-width:1100px; margin:0 auto;}
.page-head h1{font-size:26px; color:var(--navy); margin:0 0 6px;}
.page-head p{font-size:14px; color:var(--muted); margin:0; max-width:680px;}
