/*
Theme Name: ALKARAMA Microfinance
Theme URI: https://alkarama-mc.org.ma/
Author: ALKARAMA — Custom
Description: Thème institutionnel sur mesure pour Fondation ALKARAMA Microfinance.
Version: 1.1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: alkarama-mf
License: GPL-2.0-or-later
*/
:root{--blue:#123b75;--navy:#0e315f;--green:#64a51f;--pale:#f0f6fb;--soft:#f6f9fc;--ink:#172f4b;--muted:#63768b;--border:#e0e9f0;--shadow:0 14px 45px #123b7514}
*,*:before,*:after{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:white;color:var(--ink);font:15px/1.65 Arial,'Helvetica Neue',sans-serif}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button{cursor:pointer}.wrap{width:min(1200px,calc(100% - 48px));margin:auto}.topbar{background:var(--navy);color:#f1f5fb;font-size:11px}.top-inner{min-height:28px;display:flex;justify-content:space-between;gap:20px;align-items:center}.topbar a:hover{text-decoration:underline}.site-header{background:white;position:sticky;top:0;z-index:80;box-shadow:0 3px 12px #0c3c6b0b}.header-inner{min-height:91px;display:flex;align-items:center;gap:25px}.brand{display:flex;align-items:center;flex:none}.brand img{display:block;width:157px;height:78px;object-fit:contain}.navigation{margin-left:auto}.nav-list{display:flex;gap:25px;align-items:center;padding:0;margin:0;list-style:none}.nav-list a{font-weight:700;font-size:12px;color:var(--navy);white-space:nowrap}.nav-list a:hover{color:var(--green)}.header-contact{padding:10px 18px;border:1px solid var(--green);color:var(--navy);font-size:12px;font-weight:700;border-radius:24px;white-space:nowrap}.header-contact:hover{background:#edf6e6}.mobile-menu{display:none;background:none;border:0;color:var(--navy);font-size:27px}
h1,h2,h3{font-family:Georgia,'Times New Roman',serif;color:var(--navy);line-height:1.13}h1{font-size:clamp(42px,5vw,70px)}h2{font-size:clamp(30px,3.3vw,45px)}h3{font-size:22px}.overline{font-size:10px;letter-spacing:2.8px;font-weight:800;color:var(--blue)}.btn{display:inline-flex;align-items:center;gap:24px;justify-content:center;padding:13px 23px;border-radius:18px;font-weight:700;font-size:12px;border:1px solid transparent;transition:transform .2s,background .2s}.btn:hover{transform:translateY(-2px)}.btn-primary{background:var(--green);color:#fff}.btn-primary:hover{background:#508d16}.btn-outline{background:white;color:var(--blue);border-color:#315c97}.btn-outline:hover{background:var(--soft)}.hero{min-height:445px;position:relative;overflow:hidden;background:#f5f9fc}.hero-photo{position:absolute;inset:0 0 0 36%;background-image:url('assets/images/vfdvsdfv.jpg');background-position:center 45%;background-size:cover}.hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,#f9fcff 0%,#f9fcfff7 31%,#f9fcffde 40%,#f9fcff00 58%)}.hero-content{position:relative;padding:47px 0 58px}.hero h1{letter-spacing:-1.8px;margin:15px 0 13px;line-height:1.02}.hero h1 em{font-style:normal;color:var(--green)}.hero p{max-width:410px;font-size:15px;color:#355475;line-height:1.54}.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:19px}.hero .btn{box-shadow:0 7px 23px #1c4e7c16}.numbers{background:#eef6fc;padding:16px 0 11px}.number-grid{display:grid;grid-template-columns:repeat(4,1fr)}.number-grid>div{display:grid;grid-template-columns:38px 1fr;column-gap:12px;padding:6px 23px;border-right:1px solid #cddce9}.number-grid>div:last-child{border:0}.number-icon{grid-row:1/span 2;color:var(--green);font-size:30px}.number-grid strong{font:700 34px/1.1 Georgia;color:var(--navy)}.number-grid small{font-size:12px;color:var(--blue)}.data-note{text-align:right;font-size:10px;color:#8a99a7;padding:5px max(24px,calc((100% - 1200px)/2)) 0}.section{padding-top:65px;padding-bottom:65px}.section-heading{text-align:center;margin:0 auto 36px;max-width:760px}.section-heading h2{margin:8px 0 10px}.section-heading p{color:var(--muted);margin:0}.product-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}.product-card{padding:27px 17px 20px;min-height:226px;border:1px solid var(--border);border-radius:9px;background:#fff;display:flex;flex-direction:column;box-shadow:0 6px 22px #113e7009;transition:transform .2s,box-shadow .2s}.product-card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}.product-icon{font-size:34px;line-height:1;color:#73ab36}.product-card:nth-child(3n) .product-icon{color:#e3533b}.product-card:nth-child(2n) .product-icon{color:#2269b6}.product-card h3,.product-card h2{font-size:19px;margin:17px 0 8px}.product-card p{font-size:12px;color:#536b83;line-height:1.5;margin:0 0 16px}.product-card small{margin-top:auto;color:#8a9bab}.round-arrow{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#eef8e7;color:var(--green);font-weight:800;margin:auto 0 0 auto}
.tools-section{background:#fbfcfe;padding:5px 0 45px}.tools-grid{display:grid;grid-template-columns:42% 58%;gap:15px}.sim-card{padding:27px 29px;border-radius:8px;background:#eff6fb}.sim-card h2{font-size:29px;margin:6px 0 9px}.sim-hint{font-size:12px;color:var(--muted);margin:0 0 19px}.sim-card label{display:block;font-size:12px;font-weight:700;color:#26486a;margin:13px 0 4px}.sim-card input,.sim-card select,.contact-form input,.contact-form select,.contact-form textarea,.agency-controls input{width:100%;min-height:41px;border:1px solid #c8d7e4;background:white;border-radius:5px;color:#244361;padding:9px 11px}.sim-card button{margin-top:16px;width:100%}.sim-result{margin-top:14px;font-size:12px;color:#687e92;border:1px solid #dce6ed;border-radius:6px;padding:12px;background:#fff}.sim-result.success{border-color:#a6d589;color:#315c18;background:#f5fbed}.human-panel{border-radius:8px;overflow:hidden;position:relative;min-height:390px;background:#f1f8ed;display:grid;grid-template-columns:49% 51%}.human-panel>img{width:100%;height:100%;object-fit:cover}.human-copy{padding:44px 27px 20px 14px;align-self:center}.human-copy h2{font-size:31px;margin:12px 0}.human-copy p{font-size:14px;color:#566e80;margin-bottom:25px}.human-copy .btn{font-size:11px}.services{padding-top:45px}.service-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.service-card{display:grid;grid-template-columns:46% 54%;border:1px solid var(--border);border-radius:9px;overflow:hidden;min-height:163px;background:white;box-shadow:0 6px 16px #143b7010}.service-card img{width:100%;height:100%;object-fit:cover}.service-card>div:last-child{padding:18px 16px}.service-card h3{font-size:21px;margin:0 0 8px}.service-card p{font-size:12px;line-height:1.48;color:var(--muted);margin:0 0 9px}.service-card span{font-size:11px;font-weight:700;color:var(--green)}.service-initial{display:grid;place-items:center;background:#e8f2e0;color:#5c9726;font:700 46px Georgia}.closing{padding:65px 0;background:var(--navy);text-align:center;color:white}.closing h2{color:white;margin:0 auto 12px;max-width:700px}.closing p{color:#b9cce2;margin-bottom:25px}.footer{background:#0b2d59;color:#d9e8f7}.footer-grid{display:grid;grid-template-columns:1.3fr .8fr .8fr 1.1fr;gap:40px;padding-top:46px;padding-bottom:32px}.footer-logo{background:white;border-radius:5px;padding:5px;width:160px;height:90px;object-fit:contain}.footer p{font-size:12px;line-height:1.7}.footer h3{color:white;font:700 15px Arial;margin:12px 0 16px}.footer a{display:block;margin:9px 0;font-size:12px}.footer a:hover{color:#b6e28a}.footer-bottom{border-top:1px solid #ffffff2b;padding:14px 0;display:flex;justify-content:space-between;gap:20px;font-size:10px;color:#b4cbe0}
.page-hero{background:linear-gradient(110deg,#eaf4fb,#f6faf7);padding:75px 0}.page-hero h1{font-size:clamp(35px,4.5vw,58px);margin:10px 0}.page-hero p{color:var(--muted)}.page-layout{display:grid;grid-template-columns:minmax(0,1fr) 305px;gap:70px;padding:65px 0;min-height:350px}.page-content{max-width:780px}.page-content p,.article-body p{line-height:1.9}.page-content a:not(.btn){color:#2466ac;text-decoration:underline}.sidebar{background:var(--soft);padding:25px;align-self:start;border-left:4px solid var(--green);border-radius:5px}.sidebar h3{margin-top:0}.sidebar p,.sidebar a{font-size:13px;display:block;overflow-wrap:anywhere}.sidebar a{color:var(--blue);margin:14px 0}.sidebar .muted{color:var(--muted);font-size:11px}.contact-form{margin-top:20px}.contact-form label{display:block;font-size:13px;font-weight:700;margin:13px 0;color:#305070}.contact-form input,.contact-form select,.contact-form textarea{display:block;margin-top:5px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:18px}.honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.form-note{color:var(--muted);font-size:12px}.notice{padding:12px;border-radius:5px}.notice.ok{background:#eaf7e8;color:#2a7135}.notice.error{background:#fff0ec;color:#9f3f29}.agency-controls{max-width:460px;margin:0 0 26px}.agency-controls label{font-size:12px;font-weight:700}.agency-controls input{display:block;margin-top:8px}.agency-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.agency-card,.news-card{border:1px solid var(--border);padding:24px;border-radius:8px;background:white}.agency-card h2{font-size:25px;margin:9px 0}.agency-card p{color:var(--muted);font-size:13px}.agency-card a{display:block;margin:10px 0;color:var(--blue);font-size:13px}.empty{color:#718396;background:var(--soft);padding:20px;border-radius:5px}.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.news-card{padding:0;overflow:hidden}.news-card img{width:100%;height:200px;object-fit:cover}.news-card>div{padding:24px}.news-card time{font-size:11px;color:#8293a5}.news-card h2{font-size:24px}.news-card p{color:var(--muted);font-size:13px}.news-card div>a{color:var(--green);font-weight:700;font-size:13px}.article-body{max-width:800px;padding-top:60px;padding-bottom:60px}.article-body>img{width:100%;height:auto}.pagination{text-align:center;margin-top:30px}
.product-icon-img{width:52px;height:52px;object-fit:contain;display:block}
.product-card .product-icon-img{color:#58a32c;stroke:currentColor}
.hero h1{max-width:555px}
.hero h1 em{display:block;max-width:545px}
.product-card:nth-child(2n) .product-icon-img{color:#1466a7}
.product-card:nth-child(3n) .product-icon-img{color:#cf7430}
.agency-card[hidden]{display:none}
@media(max-width:1100px){.nav-list{gap:13px}.nav-list a{font-size:11px}.header-inner{gap:15px}.brand img{width:132px}.product-grid{grid-template-columns:repeat(3,1fr)}.tools-grid{grid-template-columns:1fr}.human-panel{min-height:330px}}
@media(max-width:750px){.wrap{width:min(100% - 32px,1200px)}.top-inner{justify-content:center;text-align:center}.top-inner span:last-child{display:none}.header-inner{min-height:76px}.brand img{width:132px;height:66px}.mobile-menu{display:block;margin-left:auto}.header-contact{display:none}.navigation{display:none;position:absolute;left:0;right:0;top:76px;background:white;box-shadow:var(--shadow);padding:15px 25px}.navigation.open{display:block}.nav-list{display:flex;flex-direction:column;align-items:flex-start;gap:15px}.nav-list a{font-size:14px}.hero{min-height:670px}.hero-photo{inset:240px 0 0;background-position:center}.hero-shade{background:linear-gradient(180deg,#fbfdff 0%,#fbfdff 33%,#fbfdffdb 39%,transparent 67%)}.hero-content{padding:30px 0}.hero h1{font-size:43px}.hero p{max-width:390px}.hero .btn{font-size:11px;padding:10px 15px;gap:8px}.numbers{padding-top:20px}.number-grid{grid-template-columns:1fr 1fr;row-gap:22px}.number-grid>div{padding:5px;border-right:0}.number-grid strong{font-size:27px}.number-icon{font-size:22px;grid-template-columns:30px 1fr}.number-grid small{font-size:10px}.data-note{text-align:center;padding:12px 15px 0}.section{padding-top:47px;padding-bottom:47px}.product-grid,.agency-grid,.news-grid{grid-template-columns:1fr 1fr}.product-card{min-height:200px}.product-card h3{font-size:18px}.tools-grid{display:block}.sim-card{margin-bottom:16px}.human-panel{grid-template-columns:1fr}.human-panel>img{height:220px}.human-copy{padding:25px}.service-grid{grid-template-columns:1fr}.service-card{min-height:145px}.footer-grid{grid-template-columns:1fr 1fr;gap:20px}.footer-bottom{display:block;text-align:center}.footer-bottom span{display:block}.page-layout{grid-template-columns:1fr;gap:25px;padding:35px 0}.form-row{grid-template-columns:1fr}.page-hero{padding:45px 0}}
@media(max-width:460px){.product-grid,.agency-grid,.news-grid{grid-template-columns:1fr}.hero{min-height:695px}.hero h1{font-size:39px}.hero-photo{top:290px}.hero-shade{background:linear-gradient(180deg,#fbfdff 0%,#fbfdff 40%,transparent 70%)}.number-grid strong{font-size:25px}.product-card{min-height:175px}.footer-grid{grid-template-columns:1fr 1fr}.footer-grid>div:first-child,.footer-grid>div:last-child{grid-column:1/-1}}

/* WordPress nested menus: keep submenus outside the header flow. */
.nav-list li{position:relative;list-style:none}
.nav-list .sub-menu{position:absolute;top:100%;left:0;z-index:120;display:none;min-width:225px;max-width:320px;margin:0;padding:10px 0;background:#fff;border:1px solid var(--border);border-top:3px solid var(--green);border-radius:0 0 7px 7px;box-shadow:var(--shadow)}
.nav-list .sub-menu li{display:block;width:100%}
.nav-list .sub-menu a{display:block;padding:9px 16px;white-space:normal;line-height:1.4}
.nav-list .sub-menu a:hover{background:var(--soft)}
.nav-list li:hover>.sub-menu,.nav-list li:focus-within>.sub-menu{display:block}
.nav-list .sub-menu .sub-menu{top:0;left:100%}
@media(max-width:1050px){
  .mobile-menu{display:block;margin-left:auto}
  .navigation{display:none;position:absolute;left:0;right:0;top:100%;margin:0;padding:12px 24px 24px;background:white;box-shadow:var(--shadow);max-height:calc(100vh - 110px);overflow-y:auto}
  .navigation.open{display:block}
  .nav-list{display:flex;flex-direction:column;align-items:stretch;gap:0}
  .nav-list>li>a{display:block;padding:11px 4px;font-size:14px}
  .nav-list .sub-menu,.nav-list .sub-menu .sub-menu{position:static;display:block;min-width:0;max-width:none;margin:0 0 4px 12px;padding:0 0 0 10px;border:0;border-left:2px solid #dbe8d2;border-radius:0;box-shadow:none;background:transparent}
  .nav-list .sub-menu a{font-size:12px;padding:7px 10px}
  .header-contact{display:none}
}
