/* Copie de header-nouveau.css avec rem converti en px (base 16) : pour les anciennes pages dont <html> est à 10px. */
/* En-tête PSI AFRICA (nouveau) : styles isolés (préfixe .psn-) tirés de la maquette nouveau_psiafrica */
.psn-root{--navy: #0A1B33;          
  --navy-2: #16305A;        
  --navy-3: #24477F;
  --red: #C8102E;           
  --red-dark: #A00D25;
  --orange: #EE7B1E;        
  --orange-dark: #D06612;
  --white: #FFFFFF;
  --mist: #EEF1F5;          
  --line: #D9DFE8;
  --text: #17223A;
  --muted: #5A6578;
  --success: #1F7A4D;

  
  --f-impact: "Anton", "Arial Narrow", Impact, sans-serif;     
  --f-display: "Montserrat", "Segoe UI", system-ui, sans-serif; 
  --f-body: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Courier New", monospace;

  
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-md: 18px;
  --fs-lg: 22px;
  --fs-xl: clamp(25.6px, 19.2px + 1.6vw, 37.6px);
  --fs-2xl: clamp(33.6px, 20.8px + 3.2vw, 57.6px);

  
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 22px;

  --shadow-1: 0 1px 2px rgba(10, 27, 51, .06), 0 4px 14px rgba(10, 27, 51, .06);
  --shadow-2: 0 18px 50px -20px rgba(10, 27, 51, .45);

  --container: 1200px;
  --header-h: 76px;
  --sticky-top: 150px;     
  --ease: cubic-bezier(.2, .7, .2, 1);}
.psn-root,.psn-root *{box-sizing:border-box}
.psn-root{font-family:var(--f-body);line-height:1.5;color:var(--ink,#16233B)}
.psn-root ul{list-style:none;margin:0;padding:0}
.psn-root a{text-decoration:none}
.psn-root button{font-family:inherit}
.psn-skip-link{position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); z-index: 1000;}
.psn-skip-link:focus{top: 12px;}
.psn-ic{width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;}
.psn-btn{display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em;
  font-family: var(--f-body); font-weight: 700; font-size: 14.4px; letter-spacing: .04em; text-transform: uppercase;
  border: 2px solid transparent; border-radius: var(--r-sm);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);}
.psn-btn:active{transform: translateY(1px);}
.psn-btn--sm{padding: .6em 1em; font-size: 12.48px;}
.psn-btn--lg{padding: 1em 1.7em; font-size: 15.2px;}
.psn-btn--block{width: 100%;}
/* Candidat connecté : son nom remplace « Mon espace candidat » */
.psn-btn--user .psn-ic{width: 1.25em; height: 1.25em; flex: none;}
.psn-btn--user .psn-btn__nom{display: inline-block; max-width: 18em; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom;}
.psn-btn--red{background: var(--red); color: #fff;}
.psn-btn--red:hover{background: var(--red-dark);}
.psn-btn--orange{background: var(--orange); color: #fff;}
.psn-btn--orange:hover{background: var(--orange-dark);}
.psn-btn--navy{background: #1F7A4D; color: #fff;}   /* bouton « Faire un paiement » : vert */
.psn-btn--navy:hover{background: #186240;}
.psn-btn--white{background: #fff; color: var(--navy);}
.psn-btn--white:hover{background: var(--mist);}
.psn-btn--ghost{background: transparent; color: var(--navy); border-color: var(--line);}
.psn-btn--ghost:hover{border-color: var(--navy);}
.psn-btn--outline-light{background: transparent; color: #fff; border-color: rgba(255,255,255,.4);}
.psn-btn--outline-light:hover{border-color: #fff;}
.psn-btn[disabled]{opacity: .5; cursor: not-allowed;}
.psn-icon-btn{display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; color: var(--navy);}
.psn-icon-btn:hover{background: var(--mist);}
.psn-icon-btn .psn-ic{width: 22px; height: 22px;}
.psn-header{position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);}
.psn-header.psn-is-hidden{transform: translateY(-100%);}
.psn-header.psn-is-scrolled{box-shadow: var(--shadow-1);}
.psn-header__inner{display: flex; align-items: center; gap: 24px; height: var(--header-h);}
.psn-logo img{height: 40px; width: auto;}
.psn-header__free{margin: 0 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; font-size: 13.12px;}
.psn-header__free strong{color: var(--success);}
.psn-header__free a{color: var(--navy); font-weight: 700; text-decoration: none; font-size: 15.2px;}
.psn-header__cta{display: flex; gap: 8px;}
.psn-header__navrow{border-top: 1px solid var(--line);}
.psn-nav__list{list-style: none; display: flex; justify-content: space-between;}
.psn-nav__list a{display: block; padding: 12px 4px; white-space: nowrap;
  font-size: 14.72px; font-weight: 600; color: var(--navy); text-decoration: none;
  position: relative; transition: color .2s;}
.psn-nav__list a:hover{color: var(--red);}
.psn-nav__list a.psn-is-active{color: var(--red);}
.psn-nav__list a.psn-is-active::after{content: ""; position: absolute; left: 4px; right: 4px; bottom: -1px; height: 3px; background: var(--red); border-radius: 3px 3px 0 0;}
.psn-burger{display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; border-radius: var(--r-sm); cursor: pointer; color: var(--navy);}
.psn-burger .psn-ic{width: 24px; height: 24px;}
.psn-drawer{position: fixed; inset: 0; z-index: 200; background: rgba(10,27,51,.5); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease);}
.psn-drawer.psn-is-open{opacity: 1; pointer-events: auto;}
.psn-drawer__panel{position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: #fff; padding: 18px 22px 28px; overflow-y: auto; transform: translateX(100%); transition: transform .3s var(--ease); display: flex; flex-direction: column;}
.psn-drawer.psn-is-open .psn-drawer__panel{transform: none;}
.psn-drawer__head{display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px;}
.psn-drawer__list{list-style: none; border-top: 1px solid var(--line);}
.psn-drawer__list a{display: block; padding: 15px 4px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--navy); text-decoration: none;}
.psn-drawer__list a.psn-is-active{color: var(--red);}
.psn-drawer__cta{display: grid; gap: 10px; margin-top: 24px;}
.psn-drawer__phone{display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: 12px; color: var(--navy); font-weight: 700; text-decoration: none;}
@media (max-width: 1100px){.psn-header__navrow, .psn-header__free{display: none;}
.psn-burger{display: grid; place-items: center; margin-left: 12px;}
.psn-header__cta{margin-left: auto;}}
@media (max-width: 760px){.psn-header__cta{display: none;}
.psn-burger{margin-left: auto;}}
@media (max-width: 760px){.psn-logo img{height: 34px;}
.psn-btn--lg{white-space: normal; text-align: center;}}
.psn-news{background: var(--navy); color: #DCE3EE; font-size: 13.6px; position: relative; z-index: 101;}
.psn-news__inner{display: flex; align-items: stretch; min-height: 38px;}
.psn-news__label{flex: none; display: flex; align-items: center; padding: 0 16px; background: var(--red); color: #fff; font-weight: 800; letter-spacing: .03em; font-size: 12.48px; white-space: nowrap;}
.psn-news__viewport{flex: 1; overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);}
.psn-news__track{list-style: none; display: flex; width: max-content; height: 100%; animation: news-scroll var(--news-duration, 40s) linear infinite;}
.psn-news__track li{display: flex; align-items: center;}
.psn-news__track li::after{content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); margin: 0 22px;}
.psn-news__track a{color: inherit; text-decoration: none; white-space: nowrap; padding: 6px 0;}
.psn-news__track a:hover, .psn-news__track a:focus-visible{color: #fff; text-decoration: underline;}
.psn-news:hover .psn-news__track, .psn-news:focus-within .psn-news__track, .psn-news.psn-is-paused .psn-news__track{animation-play-state: paused;}
.psn-news__pause{flex: none; width: 38px; border: 0; background: transparent; color: #AEBBD0; cursor: pointer; display: grid; place-items: center;}
.psn-news__pause:hover{color: #fff;}
.psn-news__pause .psn-ic{width: 14px; height: 14px;}
@keyframes news-scroll{ from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){.psn-news__track{animation: none !important;}
.psn-news__viewport{overflow-x: auto; mask-image: none;}
.psn-news__track li[aria-hidden]{display: none;}
.psn-news__pause{display: none;}}
.psn-logo img{height: 40px; width: auto;}
.psn-drawer__head img{height: 34px; width: auto;}
.psn-lang{position: relative;}
.psn-lang__btn{display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--navy); font-weight: 700; font-size: 13.6px; cursor: pointer;}
.psn-lang__btn:hover{border-color: var(--navy);}
.psn-lang__btn .psn-ic{width: 18px; height: 18px;}
.psn-lang__btn .psn-lang__chev{width: 14px; height: 14px; color: var(--muted);}
.psn-lang__menu{position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 150; min-width: 190px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-2); padding: 6px;}
.psn-lang__menu button{display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: var(--r-sm); cursor: pointer; font-weight: 600; color: var(--navy); text-align: start;}
.psn-lang__menu button:hover, .psn-lang__menu button:focus-visible{background: var(--mist);}
.psn-lang__menu small{color: var(--muted); font-weight: 700; font-size: 12px;}
.psn-lang__menu [aria-selected="true"] button{background: var(--navy); color: #fff;}
.psn-lang__menu [aria-selected="true"] small{color: #AEBBD0;}
.psn-drawer__lang{display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px;}
.psn-drawer__lang button{padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; color: var(--navy); cursor: pointer;}
.psn-drawer__lang button.psn-is-active{background: var(--navy); color: #fff; border-color: var(--navy);}
.psn-icon-btn--sm{width: 32px; height: 32px; border: 1px solid var(--line); border-radius: var(--r-sm);}
.psn-icon-btn--sm .psn-ic{width: 16px; height: 16px;}
.psn-icon-btn:disabled{opacity: .3; cursor: default;}
@media (max-width: 1100px){.psn-lang{margin-inline-start: auto;}
.psn-header__cta{margin-left: 12px;}}
@media (max-width: 760px){.psn-news__label{padding: 0 10px; font-size: 11.2px;}
.psn-news{font-size: 12.8px;}
.psn-lang__btn{height: 46px; padding: 0 8px;}
.psn-lang__btn .psn-lang__chev{display: none;}
.psn-burger{margin-inline-start: 8px;}}
.psn-btn{font-family: var(--f-body); letter-spacing: .05em;}
.psn-search-btn{display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--navy); font-weight: 700; font-size: 13.6px; cursor: pointer; font-family: inherit;}
.psn-search-btn:hover{border-color: var(--navy);}
.psn-search-btn .psn-ic{width: 18px; height: 18px;}
.psn-header__free + .psn-search-btn, .psn-search-btn{margin-inline-start: 0;}
@media (max-width: 760px){.psn-search-btn{height: 46px; width: 46px; padding: 0; justify-content: center; margin-inline-start: auto;}
.psn-search-btn__txt{display: none;}
.psn-search-btn + .psn-lang{margin-inline-start: 0;}}
@media (max-width: 1100px){.psn-search-btn{margin-inline-start: auto;}
.psn-header__cta{margin-left: 0;}}
@media (max-width: 760px){.psn-header__inner{gap: 10px;}
.psn-burger{margin-left: 0;}}
@media (min-width: 761px) and (max-width: 1100px){.psn-search-btn{width: 46px; height: 46px; padding: 0; justify-content: center;}
.psn-search-btn__txt{display: none;}
.psn-header__inner{gap: 12px;}
.psn-burger{margin-left: 0;}}
@media (max-width: 760px){.psn-btn{white-space: normal; max-width: 100%; text-align: center;}
.psn-btn--sm{padding: .75em 1.1em; font-size: 12.8px;}
.psn-btn--lg{padding: .95em 1.4em; font-size: 14.4px;}
.psn-icon-btn{width: 44px; height: 44px;}}
@media (max-width: 380px){.psn-header__inner{gap: 6px;}
.psn-lang__btn{padding: 0 6px;}}
@media (max-width: 1439px) and (min-width: 1101px){.psn-header__free{display: none;}
.psn-search-btn{margin-inline-start: auto;}}
@media (max-width: 1240px) and (min-width: 1101px){.psn-header__pay{padding-inline: .8em;}}
@media (min-width: 761px) and (max-width: 1100px){.psn-header__pay{width: 40px; padding: 0; justify-content: center; font-size: 0; gap: 0;}
.psn-header__pay .psn-ic{width: 18px; height: 18px; margin: 0;}
.psn-header__cta .psn-btn.psn-header__pay{font-size: 0; padding: 0; width: 40px; gap: 0;}
.psn-header__cta{gap: 6px;}}
.psn-header .psn-logo{flex: 0 0 auto;}
.psn-header .psn-logo img{width: auto; max-width: none;}
@media (min-width: 761px) and (max-width: 1100px){.psn-header .psn-logo img{height: 34px;}
.psn-header__cta .psn-btn:not(.psn-header__pay){font-size: 10.88px; padding: .6em .75em; letter-spacing: .02em;}}
.psn-btn--ghost-light{background: transparent; color: #fff; border-color: rgba(255,255,255,.45);}
.psn-btn--ghost-light:hover{background: rgba(255,255,255,.1);}
/* Ajustements d'intégration (recherche + langue ajoutées à l'en-tête) */
.psn-header__inner{gap:14px}
.psn-header__free{flex:none;white-space:nowrap;margin:0 0 0 auto}
.psn-header__free a,.psn-header__free strong{white-space:nowrap}
.psn-search-btn,.psn-lang{flex:none}
.psn-header__cta{flex:none}
@media (max-width:1500px){
  .psn-search-btn__txt{display:none}
  .psn-search-btn{width:40px;padding:0;justify-content:center}
  .psn-header__cta .psn-btn{padding-left:12px;padding-right:12px;font-size:12.48px}
}
@media (max-width:1280px){
  .psn-header__free{display:none}
  .psn-header__cta{margin-left:auto}
}

/* Largeur du contenu : même progression que la maquette (grands écrans) */
.psn-header__inner,.psn-header__navrow > div{max-width:var(--container)!important}
@media (min-width:1440px){.psn-root{--container:1320px}}
@media (min-width:1800px){.psn-root{--container:1480px}}
