/*
Theme Name: GOUV Portal V2
Theme URI: https://gouv.services
Author: GOUV
Description: Institutional multilingual portal for the Global Organization for Cooperation and Development.
Version: 2.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: gouv-portal
*/
:root{
  --g-yellow:#f4cf00;
  --g-yellow-2:#ffe55a;
  --g-black:#111111;
  --g-ink:#22262a;
  --g-muted:#65707a;
  --g-line:#dfe3e6;
  --g-soft:#f6f7f8;
  --g-blue:#174d76;
  --g-red:#9e2f38;
  --g-max:1320px;
  --g-radius:18px;
  --g-shadow:0 16px 44px rgba(20,20,20,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--g-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;line-height:1.62}
a{color:var(--g-blue);text-underline-offset:3px}
img{max-width:100%;height:auto}
.g-wrap{width:min(calc(100% - 42px),var(--g-max));margin:auto}
.g-official{background:var(--g-black);color:#fff;font-size:.8rem}
.g-official .g-wrap{min-height:35px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.g-official a{color:#fff}
.g-stars{height:8px;background:var(--g-yellow);position:relative;overflow:hidden}
.g-stars:after{content:"★ ★ ★ ★ ★ ★ ★ ★ ★";position:absolute;right:3%;top:-7px;color:#000;font-size:11px;letter-spacing:7px;white-space:nowrap}
.g-header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.98);border-bottom:1px solid var(--g-line);backdrop-filter:blur(12px)}
.g-head{min-height:92px;display:flex;align-items:center;gap:22px}
.g-brand{display:flex;align-items:center;gap:13px;text-decoration:none;color:var(--g-black);min-width:315px}
.g-brand img{height:66px;width:auto;max-width:112px;object-fit:contain}
.g-brand strong{display:block;font-size:1.34rem;letter-spacing:.055em;line-height:1}
.g-brand span{display:block;font-size:.68rem;color:var(--g-muted);line-height:1.2;max-width:245px;margin-top:4px}
.g-nav{display:flex;gap:24px;align-items:center;margin-left:auto}
.g-nav a{color:var(--g-black);text-decoration:none;font-weight:760;font-size:.9rem;padding:34px 0 30px;border-bottom:4px solid transparent}
.g-nav a:hover{border-color:var(--g-yellow)}
.g-actions{display:flex;align-items:center;gap:8px}
.g-actions select,.g-searchbtn,.g-login,.g-profile{height:42px;border-radius:999px;border:1px solid var(--g-line);background:#fff}
.g-actions select{padding:0 12px}
.g-searchbtn{width:42px;display:grid;place-items:center;text-decoration:none;color:var(--g-black)}
.g-login{display:flex;align-items:center;padding:0 16px;background:var(--g-yellow);border-color:var(--g-yellow);font-weight:850;color:#000;text-decoration:none}
.g-profile{display:flex;align-items:center;gap:9px;padding:4px 12px 4px 4px;text-decoration:none;color:#000}
.g-profile img{width:34px;height:34px;border-radius:50%;object-fit:cover}
.g-profile b{display:block;font-size:.75rem;line-height:1.1}.g-profile small{display:block;font-size:.66rem;color:var(--g-muted);margin-top:3px}
.g-menu{display:none;border:0;background:transparent;font-size:1.5rem}
.g-mobile{padding:0 0 18px}.g-mobile a{display:block;padding:9px 0;border-bottom:1px solid var(--g-line);color:#111;text-decoration:none;font-weight:700}

.g-hero{background:#fff;position:relative;overflow:hidden;padding:64px 0 36px;border-bottom:1px solid var(--g-line)}
.g-hero:before{content:"";position:absolute;left:0;top:0;width:12px;height:100%;background:var(--g-yellow)}
.g-herogrid{display:grid;grid-template-columns:1.28fr .72fr;gap:44px;align-items:stretch}
.g-kicker{text-transform:uppercase;letter-spacing:.15em;font-size:.72rem;font-weight:900;color:#606870}
.g-hero h1{font-size:clamp(3.3rem,6vw,6.45rem);line-height:.92;letter-spacing:-.055em;margin:14px 0 22px;color:#111;font-weight:800;max-width:900px}
.g-hero p{font-size:1.14rem;color:#4f5962;max-width:760px}
.g-searchbox{margin-top:31px;display:flex;border:2px solid #111;border-radius:12px;overflow:hidden;background:#fff;max-width:800px}
.g-searchbox input{border:0;outline:0;flex:1;padding:15px 17px;font-size:1rem}.g-searchbox button{border:0;background:var(--g-yellow);padding:0 23px;font-weight:900}
.g-digital{background:#111;color:#fff;border-radius:22px;padding:28px;min-height:410px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}
.g-digital:after{content:"★";position:absolute;right:-28px;bottom:-90px;color:rgba(244,207,0,.14);font-size:270px;line-height:1}
.g-digital h2{font-size:1.6rem;margin:0;position:relative;z-index:1}
.g-digital p{color:#bdc3c8;position:relative;z-index:1}
.g-digital nav{position:relative;z-index:1}.g-digital a{display:flex;justify-content:space-between;align-items:center;color:#fff;text-decoration:none;padding:14px 0;border-bottom:1px solid #393939;font-weight:760}
.g-quick{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:30px}
.g-quick a{display:flex;min-height:96px;align-items:flex-end;padding:19px;border:1px solid var(--g-line);border-top:5px solid var(--g-yellow);border-radius:14px;background:#fff;color:#111;text-decoration:none;font-weight:820;box-shadow:0 5px 18px rgba(0,0,0,.035)}
.g-section{padding:74px 0}.g-section.alt{background:var(--g-soft)}
.g-headline{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:30px}
.g-headline h2{font-size:clamp(2rem,4vw,3.4rem);letter-spacing:-.035em;margin:4px 0 0;line-height:1.05;color:#111}
.g-headline p{max-width:600px;color:var(--g-muted);margin:0}
.g-more{font-weight:800;color:#111}
.g-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.g-card{border:1px solid var(--g-line);border-radius:var(--g-radius);background:#fff;padding:25px;min-height:200px;position:relative;transition:.18s ease}
.g-card:before{content:"";position:absolute;left:25px;top:0;width:52px;height:5px;background:var(--g-yellow)}
.g-card:hover{transform:translateY(-3px);box-shadow:var(--g-shadow)}
.g-card a{text-decoration:none;color:inherit}.g-card small{font-size:.7rem;letter-spacing:.11em;text-transform:uppercase;font-weight:900;color:#606870}
.g-card h3{font-size:1.35rem;line-height:1.18;margin:14px 0 9px;color:#111}.g-card p{font-size:.91rem;color:var(--g-muted);margin:0}
.g-institutions{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.g-inst{background:#fff;border:1px solid var(--g-line);border-radius:16px;padding:22px;display:flex;gap:15px;align-items:flex-start;text-decoration:none;color:#111}
.g-inst__mark{width:38px;height:38px;background:var(--g-yellow);display:grid;place-items:center;font-weight:900;border-radius:7px;flex:0 0 auto}.g-inst b{display:block}.g-inst span{display:block;color:var(--g-muted);font-size:.82rem;margin-top:4px}
.g-news{display:grid;grid-template-columns:1.16fr .84fr;gap:26px}
.g-feature{border:1px solid var(--g-line);border-radius:20px;overflow:hidden;background:#fff}.g-feature img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}
.g-feature__copy{padding:24px}.g-feature__copy h3{font-size:2rem;line-height:1.12;margin:8px 0 12px}.g-feature__copy a{color:#111;text-decoration:none}
.g-meta{font-size:.76rem;color:var(--g-muted);font-weight:700}
.g-newslist{display:grid;gap:12px}.g-newsitem{display:grid;grid-template-columns:135px 1fr;gap:16px;padding:12px;border:1px solid var(--g-line);border-radius:15px;background:#fff}.g-newsitem img{width:135px;height:96px;object-fit:cover;border-radius:10px;background:#eee}.g-newsitem h3{font-size:1.03rem;line-height:1.25;margin:5px 0}.g-newsitem a{color:#111;text-decoration:none}
.g-world{background:#111;color:#fff}.g-world .g-headline h2,.g-world .g-kicker{color:#fff}.g-world .g-card{background:#1a1a1a;border-color:#333;color:#fff}.g-world .g-card h3{color:#fff}.g-world .g-card p{color:#bbb}

/* Internal pages */
.g-pagehero{background:linear-gradient(90deg,var(--g-yellow) 0 9px,#f7f7f7 9px);border-bottom:1px solid var(--g-line);padding:54px 0}
.g-breadcrumb{font-size:.78rem;color:var(--g-muted);margin-bottom:18px}.g-breadcrumb a{color:#111}
.g-pagehero h1{font-size:clamp(2.8rem,5vw,5rem);line-height:.98;letter-spacing:-.045em;margin:0;color:#111;max-width:1100px}
.g-pagehero .lead{max-width:790px;font-size:1.08rem;color:var(--g-muted);margin-top:18px}
.g-layout{display:grid;grid-template-columns:240px minmax(0,860px) 1fr;gap:44px;padding:55px 0 82px}
.g-sidenav{position:sticky;top:130px;align-self:start}.g-sidenav .title{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;font-weight:900;margin-bottom:10px}
.g-sidenav a{display:block;padding:10px 0;border-bottom:1px solid var(--g-line);color:#111;text-decoration:none;font-size:.86rem;font-weight:700}
.g-prose{font-size:1.01rem;min-width:0}.g-prose>:first-child{margin-top:0}
.g-prose h2{font-size:2rem;line-height:1.15;letter-spacing:-.025em;margin:2.2em 0 .7em;color:#111;border-top:1px solid var(--g-line);padding-top:28px}
.g-prose h3{font-size:1.4rem;line-height:1.2;margin:1.7em 0 .55em;color:#111}.g-prose h4{font-size:1.1rem;margin-top:1.5em}
.g-prose p{margin:0 0 1.15em}.g-prose a{font-weight:700}
.g-prose img{border-radius:14px;margin:20px 0;box-shadow:0 8px 28px rgba(0,0,0,.07)}
.g-prose figure{margin:28px 0}.g-prose figcaption{font-size:.78rem;color:var(--g-muted)}
.g-prose blockquote{border-left:6px solid var(--g-yellow);margin:28px 0;padding:10px 0 10px 22px;font-size:1.12rem}
.g-prose table{width:100%;border-collapse:collapse;margin:25px 0}.g-prose td,.g-prose th{border:1px solid var(--g-line);padding:11px}.g-prose th{background:#f4f4f4}
.g-prose ul,.g-prose ol{padding-left:1.25em}.g-prose li{margin:.4em 0}
.g-prose .wp-block-buttons{margin:24px 0}.g-prose .wp-block-button__link{background:#111;color:#fff;border-radius:999px}
.g-context{align-self:start}.g-context-card{border:1px solid var(--g-line);border-radius:16px;padding:20px;background:#fff;margin-bottom:16px}.g-context-card.yellow{background:var(--g-yellow);border-color:var(--g-yellow)}
.g-context-card h3{font-size:1rem;margin:0 0 10px}.g-context-card a{display:block;color:#111;margin:8px 0;font-size:.84rem;font-weight:700}
.g-crestghost{height:150px;background:url("https://gouv.services/wp-content/uploads/2024/04/Design-sem-nome26-e1713128176293.png") center/contain no-repeat;opacity:.09;filter:grayscale(1)}
.g-institution-page .g-prose h2{background:#111;color:#fff;padding:20px 22px;border-radius:12px;border:0}.g-institution-page .g-prose h3{padding:15px 18px;background:#f7f7f7;border-left:5px solid var(--g-yellow);border-radius:8px}
.g-institution-page .g-prose>p a:only-child{display:inline-flex;padding:10px 14px;border:1px solid var(--g-line);border-radius:999px;text-decoration:none;color:#111;background:#fff}
.g-directory{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:22px 0}.g-directory a{border:1px solid var(--g-line);border-radius:12px;padding:16px;color:#111;text-decoration:none;background:#fff}
.g-directory a:hover{border-color:#111}
.g-shortcode-warning{border:1px solid #e0b400;background:#fff8cf;padding:18px;border-radius:12px}

/* Footer */
.g-footer{background:#111;color:#ddd;border-top:8px solid var(--g-yellow);padding:54px 0 26px}.g-footer-grid{display:grid;grid-template-columns:1.2fr repeat(3,1fr);gap:34px}.g-footer h3{font-size:.88rem;color:#fff}.g-footer a{display:block;color:#ddd;text-decoration:none;margin:8px 0;font-size:.86rem}.g-footer .crest{width:180px;max-height:125px;object-fit:contain;filter:grayscale(1) brightness(2);opacity:.72}.g-footer-bottom{border-top:1px solid #333;margin-top:34px;padding-top:18px;display:flex;justify-content:space-between;font-size:.75rem;color:#999}
@media(max-width:1100px){
 .g-nav{display:none}.g-menu{display:block;margin-left:auto}.g-brand{min-width:0}.g-herogrid,.g-news{grid-template-columns:1fr}.g-grid,.g-institutions{grid-template-columns:repeat(2,1fr)}.g-layout{grid-template-columns:200px 1fr}.g-context{display:none}.g-footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:720px){
 .g-wrap{width:min(calc(100% - 26px),var(--g-max))}.g-official a{display:none}.g-head{min-height:76px}.g-brand img{height:52px}.g-brand span{display:none}.g-actions .g-lang,.g-searchbtn{display:none}.g-profile small{display:none}.g-hero{padding:44px 0 28px}.g-hero h1{font-size:3.15rem}.g-searchbox{display:grid}.g-searchbox button{height:45px}.g-quick,.g-grid,.g-institutions,.g-footer-grid{grid-template-columns:1fr}.g-newsitem{grid-template-columns:105px 1fr}.g-newsitem img{width:105px;height:85px}.g-layout{display:block;padding-top:32px}.g-sidenav{display:none}.g-pagehero h1{font-size:3rem}.g-section{padding:54px 0}.g-footer-bottom{display:block}
}
