/**
 * Offres225 — Header + Hero
 * Repris de _maquettes/header-offres225.html (26/11/2026), CSS tel quel sauf :
 *  - texte des boutons pleins orange (.b224-search button, voir aussi
 *    footer.css) en #111827 au lieu de #fff (contraste insuffisant, décision
 *    du 26/11/2026) ;
 *  - .b224-nav.open (maquette) devient .b224-nav.b224-open, pour rester
 *    cohérent avec le préfixe b224- utilisé partout ailleurs (assets/js/header.js
 *    bascule cette classe).
 * Toutes les règles sont préfixées b224- pour ne jamais entrer en collision
 * avec le reste du thème (assets/css/main.css).
 */
:root{
  --b224-bg:#0a4d34;
  --b224-bg-2:#0f6a47;
  --b224-accent:#f77f00;        /* orange drapeau ivoirien */
  --b224-accent-hover:#dd6f00;
}
.b224-hero *{box-sizing:border-box}

.b224-hero{
  position:relative;overflow:hidden;color:#fff;
  background:radial-gradient(circle at 0 0,#083f2b 0 25%,transparent 25.2%),
             radial-gradient(circle at 0 0,#09472f 0 44%,transparent 44.2%),
             linear-gradient(135deg,var(--b224-bg),var(--b224-bg-2));
  font-family:'Jost',system-ui,sans-serif;
}
.b224-container{max-width:1330px;margin:0 auto;padding:0 30px}

/* ---------- Navigation ---------- */
.b224-nav{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 0;position:relative;z-index:5}
.b224-logo{display:flex;align-items:center;gap:12px;text-decoration:none;color:#fff;flex:none}
.b224-logo-img{height:auto;width:auto;max-height:56px;max-width:250px;display:block}
@media (max-width:640px){.b224-logo-img{height:42px}}

.b224-right{display:flex;align-items:center;gap:30px}
.b224-menu{display:flex;align-items:center;gap:26px;list-style:none;white-space:nowrap}
.b224-menu a{color:#fff;text-decoration:none;font-size:15px;font-weight:400;display:flex;align-items:center;gap:6px}
.b224-menu a:hover,.b224-menu a.active{text-decoration:underline;text-underline-offset:7px}
.b224-count{font-size:11px;background:rgba(255,255,255,.16);padding:1px 7px;border-radius:20px}

.b224-actions{display:flex;gap:16px}
.b224-btn{display:inline-flex;align-items:center;justify-content:center;height:50px;padding:0 26px;border-radius:8px;
  font-family:inherit;font-size:15px;font-weight:400;text-decoration:none;cursor:pointer;transition:.2s;white-space:nowrap}
.b224-btn-outline{border:1px solid #fff;color:#fff}
.b224-btn-outline:hover{background:rgba(255,255,255,.1)}
.b224-btn-white{background:#fff;color:var(--b224-bg);border:1px solid #fff}
.b224-btn-white:hover{background:transparent;color:#fff}

.b224-burger{display:none;background:none;border:0;cursor:pointer;width:44px;height:44px}
.b224-burger span{display:block;height:2px;background:#fff;margin:7px 8px;border-radius:2px}

/* ---------- Hero ---------- */
.b224-hero-body{display:grid;grid-template-columns:minmax(0,1fr) 560px;gap:30px;position:relative;z-index:2;min-height:560px}
.b224-text{padding:150px 0 40px;align-self:start;position:relative;z-index:3}
.b224-hero h1{font-size:50px;font-weight:500;line-height:1.2;max-width:720px}
.b224-hero h1 em{font-style:normal;color:#ffb14d}
.b224-sub{font-size:15px;margin:45px 0 40px}

.b224-search{background:#fff;border-radius:8px;padding:18px;display:flex;align-items:center;max-width:780px;box-shadow:0 18px 40px rgba(8,12,60,.25)}
.b224-field{flex:1 1 150px;display:flex;align-items:center;gap:8px;padding:0 12px;height:54px;min-width:0}
.b224-field:first-child{flex:1.5 1 190px}
.b224-field:nth-child(3){flex:.85 1 130px}
.b224-field+.b224-field{border-left:1px solid #ecedf2}
.b224-field svg{flex:none;color:#696969}
.b224-field input,.b224-field select{border:0;outline:0;font-family:inherit;font-size:15px;color:#202124;width:100%;background:transparent;min-width:0}
.b224-field input::placeholder{color:#696969}
.b224-field select{cursor:pointer;appearance:none;-webkit-appearance:none;padding-right:18px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23696969'/%3E%3C/svg%3E") right center no-repeat}
.b224-search-btn{flex:none;height:54px;padding:0 24px;border:0;border-radius:8px;background:var(--b224-accent);color:#111827;
  font-family:inherit;font-size:15px;font-weight:500;cursor:pointer;transition:.2s}
.b224-search-btn:hover{background:var(--b224-accent-hover)}

.b224-popular{margin-top:35px;font-size:15px;display:flex;flex-wrap:wrap;gap:4px 8px}
.b224-popular strong{font-weight:400;margin-right:8px}
.b224-popular a{color:#fff;text-decoration:none}
.b224-popular a:hover{text-decoration:underline}
.b224-popular a:not(:last-child)::after{content:",";}
.b224-show-m{display:none}
.b224-eyebrow{display:none}

/* ---------- Visuel : photo + bulles catégories ---------- */
.b224-visual{position:relative;width:560px;height:560px;align-self:end;margin-bottom:-90px}
.b224-orbit{position:absolute;inset:0;border:2px dashed rgba(255,255,255,.25);border-radius:50%}
.b224-photo{position:absolute;inset:100px 52px 4px 108px;border-radius:50%;background:#dff3e8}
.b224-person{position:absolute;left:108px;right:52px;top:30px;bottom:4px;z-index:1;
  -webkit-mask:linear-gradient(#000,#000) top/100% 270px no-repeat,radial-gradient(closest-side,#000 99.5%,transparent 100%) bottom/100% 400px no-repeat;
          mask:linear-gradient(#000,#000) top/100% 270px no-repeat,radial-gradient(closest-side,#000 99.5%,transparent 100%) bottom/100% 400px no-repeat}
.b224-person img{position:absolute;bottom:-10px;left:50%;transform:translateX(-50%);width:118%;height:auto;display:block}

/* Bulles catégories (icône ou, plus tard, logo partenaire — voir inc/organismes.php) */
.b224-partner{position:absolute;z-index:2;background:#fff;border-radius:50%;display:grid;place-items:center;overflow:hidden;
  box-shadow:0 12px 30px rgba(8,12,60,.28);text-decoration:none;animation:b224-float 5s ease-in-out infinite;transition:transform .2s}
.b224-partner:hover{animation-play-state:paused;transform:scale(1.08)}
.b224-partner img{width:72%;height:72%;object-fit:contain}
.b224-partner span{font-weight:500;color:var(--b224-bg);font-size:14px;text-align:center;line-height:1.1;padding:6px}
/* Positions : rien sur la personne, rien sous la barre de recherche (côté gauche limité au haut) */
.b224-p1{width:106px;height:106px;top:-30px;right:20px}
.b224-p7{width:74px;height:74px;top:4px;left:160px;animation-delay:-4.4s}
.b224-p7 img{width:70%;height:70%}
.b224-p8{width:84px;height:84px;top:-22px;left:292px;animation-delay:-1.8s}
.b224-p2{width:92px;height:92px;top:105px;left:6px;animation-delay:-1.2s}
.b224-p3{width:70px;height:70px;top:228px;left:22px;animation-delay:-2.4s}
/* p5/p4 repositionnées (3 contraintes géométriques à la fois) :
   - >=30px du bord de l'écran à 1288/1366/1440px (right trop négatif pousse
     la bulle hors de l'écran) ;
   - ne jamais toucher le cercle pointillé (right trop proche de 0 recoupe le
     cercle, qui est tangent au cadre pile au niveau vertical central —
     aucune position "au milieu à droite" ne peut satisfaire les deux à la
     fois) ;
   - rester dans la zone réellement visible du hero : .b224-hero a une
     hauteur fixe plus courte que les 560px du cadre .b224-visual (vérifié :
     ~468px visibles sur 560, le bas est rogné par overflow:hidden) — donc
     seules les zones tout en haut (déjà prise par p1) ou tout en bas du
     cadre passent les deux contraintes précédentes.
   Résultat : p5 remonte en haut (décalée pour ne pas toucher p1) et p4
   descend tout en bas, toutes deux réduites (80->52 / 72->44) pour tenir
   dans l'espace restreint de ces zones sans se chevaucher. */
.b224-p5{width:52px;height:52px;top:72px;right:3px;animation-delay:-.6s}
.b224-p4{width:44px;height:44px;top:423px;right:2px;animation-delay:-3.1s}
.b224-p6{width:84px;height:84px;top:372px;right:-16px;animation-delay:-3.8s}
@keyframes b224-float{0%,100%{translate:0 0}50%{translate:0 -10px}}

/* ---------- Responsive ---------- */
@media (max-width:1360px){
  .b224-right{gap:20px}.b224-menu{gap:18px}.b224-actions{gap:10px}
  .b224-btn{padding:0 18px}
  .b224-hero-body{grid-template-columns:minmax(0,1fr) 460px}
  .b224-visual{zoom:.82;justify-self:end}
}
@media (max-width:1100px){
  .b224-burger{display:block;width:52px;height:52px;border:1px solid rgba(255,255,255,.35);border-radius:14px;background:rgba(255,255,255,.08)}
  .b224-burger span{margin:7px 13px}
  .b224-right{display:none}
  .b224-nav{padding:28px 0}
  .b224-nav.b224-open{flex-wrap:wrap}
  .b224-nav.b224-open .b224-right{display:flex;flex-direction:column;align-items:stretch;width:100%;padding:16px 0}
  .b224-nav.b224-open .b224-menu{flex-direction:column;align-items:flex-start;gap:16px;padding-bottom:16px}
  .b224-nav.b224-open .b224-actions .b224-btn{flex:1}
  .b224-hero-body{grid-template-columns:1fr;min-height:0;gap:0}
  .b224-text{padding:60px 0 10px;width:auto}
  .b224-visual{zoom:.8;justify-self:end;margin:0 -40px -90px 0}
}
@media (max-width:640px){
  .b224-container{padding:0 22px}
  .b224-nav{padding:24px 0}
  .b224-logo-img{max-height:none;height:auto;max-width:210px}
  .b224-text{padding:44px 0 0}
  .b224-eyebrow{display:block;font-size:15px;font-weight:500;color:#bfe6d1;margin-bottom:16px}
  .b224-hero h1{font-size:42px;line-height:1.06;letter-spacing:-.02em}
  .b224-h1-end{display:none}
  .b224-sub{font-size:17px;line-height:1.5;margin:22px 0 28px;color:rgba(255,255,255,.92)}
  /* recherche : barre blanche mot-clé + bouton, filtres en pastilles dessous */
  .b224-search{display:grid;grid-template-columns:auto auto 1fr;gap:12px 10px;background:none;padding:0;box-shadow:none;max-width:none}
  .b224-field{padding:0 16px;height:auto}
  .b224-field:first-child{grid-column:1/-1;grid-row:1;background:#fff;border-radius:16px;height:62px;padding:0 128px 0 18px;
    box-shadow:0 16px 36px rgba(8,12,60,.3)}
  .b224-search-btn{grid-column:1/-1;grid-row:1;justify-self:end;align-self:center;height:48px;margin-right:7px;padding:0 22px;
    border-radius:12px;font-size:15px;font-weight:500;position:relative;z-index:1}
  .b224-field+.b224-field{border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.1);border-radius:12px;height:46px;padding:0 12px;gap:8px;width:max-content}
  .b224-field+.b224-field svg{color:#fff;width:16px;height:16px}
  .b224-field+.b224-field select{color:#fff;font-size:15px;width:auto;padding-right:16px;
    min-width:max-content;field-sizing:content;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E")}
  .b224-field select option{color:#202124}
  .b224-popular{margin-top:22px;font-size:15px;gap:4px 6px}
  .b224-popular strong{font-weight:500;margin-right:2px}
  .b224-hide-m{display:none}.b224-show-m{display:inline}
  .b224-popular a{color:#bfe6d1}
  .b224-popular a:not(:last-child)::after{content:" ·";color:#bfe6d1}
  .b224-popular a:nth-of-type(n+5){display:none}
  .b224-popular a:nth-of-type(4)::after{content:""}
  /* visuel en bas, coupé à droite */
  .b224-visual{zoom:.6;margin:70px -36px -120px 0}
}
