/* Accueil de la pop-up Mon profil : identité OYC, sans modifier le menu. */
#oyc-profile-welcome {
  width:min(1740px,97vw);max-width:97vw;max-height:96dvh;
  padding:clamp(14px,1.7vw,30px) clamp(18px,2.4vw,44px) 0;
  background:#0b152d;border:1px solid #233a56;border-radius:14px;
  scrollbar-width:thin;scrollbar-color:#526782 #0b152d;
}
#oyc-profile-welcome .oyc-welcome-dismiss {
  z-index:10;top:18px;right:18px;width:42px;height:42px;
  border:1px solid rgba(255,255,255,.75);font-size:30px;line-height:1;
}
#oyc-profile-welcome .oyc-popup-brand {
  display:flex;justify-content:center;align-items:center;height:clamp(80px,11vw,170px);
  margin:0 auto 8px;
}
#oyc-profile-welcome .oyc-popup-logo {display:block;width:auto;max-width:min(330px,55%);max-height:100%;object-fit:contain}
#oyc-profile-welcome .oyc-popup-logo-fallback {font-size:clamp(30px,4.5vw,62px);font-weight:400;letter-spacing:-.05em;color:white}
#oyc-profile-welcome h2 {font-size:clamp(24px,2.3vw,38px);margin:8px 48px 24px;font-weight:500}
#oyc-profile-welcome .oyc-welcome-grid {gap:clamp(8px,1.1vw,20px);padding:0 0 8px;overflow:visible;align-items:start}
#oyc-profile-welcome .oyc-welcome-card {flex:1 1 0;min-width:0}
#oyc-profile-welcome .oyc-welcome-choice {width:100%;min-width:0;gap:10px}
#oyc-profile-welcome .oyc-welcome-picto {
  width:100%;height:auto;aspect-ratio:1;border-radius:14px;
  background:#304968;border:2px solid transparent;
}
#oyc-profile-welcome .oyc-welcome-emoji {font-size:clamp(28px,4.5vw,72px)}
#oyc-profile-welcome .oyc-welcome-name {font-size:clamp(11px,1.05vw,17px);line-height:1.27;overflow-wrap:normal;hyphens:auto}
#oyc-profile-welcome .oyc-popup-bottom {
  position:relative;display:flex;align-items:center;justify-content:space-between;
  min-height:clamp(155px,20vw,320px);margin:10px -44px 0;isolation:isolate;overflow:hidden;
}
#oyc-profile-welcome .oyc-popup-trails {
  position:absolute;inset:0;width:100%;height:100%;object-fit:fill;
  z-index:-1;pointer-events:none;opacity:.9;
}
#oyc-profile-welcome .oyc-popup-welcome-copy {
  position:relative;z-index:1;flex:0 1 55%;padding-left:clamp(32px,4.6vw,82px);
  font-size:clamp(17px,2.2vw,39px);font-weight:800;line-height:1.28;
  letter-spacing:.005em;white-space:pre-line;color:#fff;margin:0;
  text-shadow:0 2px 5px #0b152d;
}
#oyc-profile-welcome .oyc-popup-team {
  position:relative;z-index:2;align-self:flex-end;object-fit:contain;object-position:bottom right;
  width:48%;max-height:clamp(155px,20vw,320px);height:auto;
}
#oyc-profile-welcome.oyc-welcome-selected .oyc-popup-bottom {display:none}
#oyc-profile-welcome.oyc-welcome-selected .oyc-popup-brand {height:70px}
#oyc-profile-welcome.oyc-welcome-selected .oyc-popup-logo {max-width:150px}
#oyc-profile-welcome.oyc-welcome-selected .oyc-popup-logo-fallback {font-size:27px}
#oyc-profile-welcome.oyc-welcome-selected .oyc-welcome-results {padding-bottom:30px}
@media(max-width:980px){
  #oyc-profile-welcome {width:min(650px,96vw);padding:14px 16px 0;max-height:94dvh}
  #oyc-profile-welcome .oyc-popup-brand {height:78px;margin-bottom:3px}
  #oyc-profile-welcome .oyc-popup-logo {max-width:170px}
  #oyc-profile-welcome h2 {font-size:25px;margin:6px 42px 16px}
  #oyc-profile-welcome .oyc-welcome-dismiss {width:34px;height:34px;right:10px;top:10px}
  #oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-welcome-grid {
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-bottom:8px;
  }
  #oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-welcome-card {width:100%;min-width:0}
  #oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-welcome-choice {
    display:flex;flex-direction:row;align-items:center;gap:8px;padding:6px;
    min-height:56px;background:#172640;text-align:left;border-radius:9px;
  }
  #oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-welcome-picto {flex:0 0 44px;width:44px;height:44px;aspect-ratio:1}
  #oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-welcome-emoji {font-size:26px}
  #oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-welcome-name {font-size:12px;overflow-wrap:anywhere}
  #oyc-profile-welcome .oyc-popup-bottom {margin:6px -16px 0;min-height:125px}
  #oyc-profile-welcome .oyc-popup-welcome-copy {font-size:clamp(12px,3vw,20px);padding-left:14px;flex-basis:57%}
  #oyc-profile-welcome .oyc-popup-team {width:50%;max-height:170px}
}
@media(max-width:420px){
  #oyc-profile-welcome .oyc-popup-bottom {min-height:105px}
  #oyc-profile-welcome .oyc-popup-team {max-height:125px}
  #oyc-profile-welcome .oyc-popup-welcome-copy {font-size:12px}
}

/* v0.8.290 : composition compacte, sans ascenseurs sur l'écran d'accueil. */
#oyc-profile-welcome[open]:not(.oyc-welcome-selected){
  display:flex;flex-direction:column;justify-content:flex-start;
  width:calc(100vw - 28px);max-width:1800px;
  height:min(760px,calc(100dvh - 28px));max-height:calc(100dvh - 28px);
  padding:clamp(12px,2vh,22px) clamp(16px,2.4vw,44px) 0;
  overflow:hidden;
}
#oyc-profile-welcome:not(.oyc-welcome-selected) h2{
  flex:none;margin:0 48px clamp(12px,2.5vh,24px);
  font-size:clamp(23px,3vh,34px);line-height:1.2;
}
#oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-welcome-panel,
#oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-welcome-layout{
  flex:none;min-height:0;
}
#oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-welcome-grid{
  flex-wrap:nowrap;overflow:hidden;padding:0;
  gap:clamp(7px,1.1vw,20px);
}
#oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-welcome-picto{
  width:100%;aspect-ratio:1;height:auto;
  max-height:min(23vh,195px);
}
#oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-welcome-name{
  font-size:clamp(11px,1vw,17px);min-height:2.55em;
}
#oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-popup-bottom{
  flex:1 1 auto;min-height:0;max-height:none;
  margin:clamp(6px,1.4vh,16px) calc(-1 * clamp(16px,2.4vw,44px)) 0;
  display:grid;grid-template-columns:34% 19% 47%;align-items:end;
}
#oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-popup-welcome-copy{
  grid-column:1;align-self:center;min-width:0;
  padding:0 0 0 clamp(22px,3vw,55px);
  font-size:clamp(15px,2.6vh,29px);line-height:1.28;
  white-space:pre-line;
}
#oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-popup-brand{
  grid-column:2;grid-row:1;align-self:center;
  width:100%;height:100%;max-height:180px;
  margin:0;padding:4px 8px;
}
#oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-popup-logo{
  max-width:100%;max-height:100%;width:auto;
}
#oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-popup-logo-fallback{
  font-size:clamp(17px,2.2vw,35px);text-align:center;letter-spacing:-.05em;
}
#oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-popup-team{
  grid-column:3;grid-row:1;align-self:end;justify-self:end;
  width:100%;height:100%;max-height:100%;object-fit:contain;object-position:right bottom;
}
#oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-popup-trails{
  z-index:-1;object-fit:fill;
}
#oyc-profile-welcome.oyc-welcome-selected{overflow:auto;max-height:94dvh}
@media(max-width:980px){
  #oyc-profile-welcome[open]:not(.oyc-welcome-selected){
    width:min(650px,calc(100vw - 16px));height:calc(100dvh - 16px);
    max-height:calc(100dvh - 16px);padding:10px 12px 0;
  }
  #oyc-profile-welcome:not(.oyc-welcome-selected) h2{margin:0 36px 12px;font-size:23px}
  #oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-welcome-grid{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;
  }
  #oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-welcome-picto{
    width:42px;height:42px;max-height:42px;
  }
  #oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-welcome-name{min-height:0;font-size:11px}
  #oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-welcome-choice{min-height:50px;padding:4px}
  #oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-popup-bottom{
    margin:8px -12px 0;grid-template-columns:38% 22% 40%;
  }
  #oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-popup-welcome-copy{
    font-size:clamp(10px,2.4vw,18px);padding-left:10px;
  }
  #oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-popup-logo-fallback{font-size:clamp(12px,3vw,24px)}
}
@media(max-height:600px) and (min-width:981px){
  #oyc-profile-welcome:not(.oyc-welcome-selected) h2{margin-bottom:8px;font-size:22px}
  #oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-welcome-picto{max-height:20vh}
  #oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-popup-welcome-copy{font-size:clamp(14px,2.8vh,21px)}
}

/* v0.8.293 : composition de référence — texte / équipe / logo. */
@media(min-width:981px){
  #oyc-profile-welcome[open]:not(.oyc-welcome-selected){
    height:min(690px,calc(100dvh - 28px));
  }
  #oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-popup-bottom{
    grid-template-columns:30% 46% 24%;
    margin-top:clamp(8px,1.5vh,16px);
  }
  #oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-popup-welcome-copy{
    grid-column:1;grid-row:1;align-self:center;
    padding-left:clamp(14px,2vw,32px);padding-right:4px;
    line-height:1.29;
  }
  #oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-popup-team{
    grid-column:2;grid-row:1;align-self:end;justify-self:center;
    width:100%;height:100%;object-position:center bottom;
  }
  #oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-popup-brand{
    grid-column:3;grid-row:1;align-self:center;justify-self:center;
    height:100%;max-height:220px;padding:4px 12px;
  }
  #oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-popup-logo{
    width:100%;max-width:260px;height:auto;max-height:100%;object-fit:contain;
  }
}
@media(max-width:980px){
  #oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-popup-bottom{
    grid-template-columns:32% 43% 25%;
  }
  #oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-popup-welcome-copy{
    grid-column:1;grid-row:1;padding-left:10px;
  }
  #oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-popup-team{
    grid-column:2;grid-row:1;justify-self:center;object-position:center bottom;
  }
  #oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-popup-brand{
    grid-column:3;grid-row:1;justify-self:center;max-height:100%;padding:2px 4px;
  }
}

/* v0.8.298 : mobile — profils / message centré / équipe, sans logo. */
#oyc-profile-welcome .oyc-welcome-dismiss{
  border:0!important;background:transparent!important;box-shadow:none!important;
  outline:0;width:36px;height:36px;padding:0;line-height:1;
}
@media(max-width:980px){
  #oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-popup-brand{
    display:none!important;
  }
  #oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-popup-bottom{
    display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);
    align-items:center;justify-items:center;gap:clamp(8px,2vh,20px);
    margin:clamp(10px,2.5vh,22px) -12px 0;min-height:0;
  }
  #oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-popup-welcome-copy{
    grid-column:1;grid-row:1;align-self:center;justify-self:center;
    width:100%;max-width:100%;padding:0 12px;
    text-align:center!important;line-height:1.28;
  }
  #oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-popup-team{
    grid-column:1;grid-row:2;align-self:end;justify-self:center;
    width:100%;height:100%;max-height:100%;object-fit:contain;
    object-position:center bottom;
  }
}

/* v0.8.299 : photo bord à bord et message élargi sur mobile. */
@media(max-width:980px){
  #oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-popup-bottom{
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:minmax(0,1fr) auto;
    gap:0;align-items:stretch;justify-items:stretch;
    margin:6px -12px 0;
  }
  #oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-popup-welcome-copy{
    grid-column:1;grid-row:1;align-self:center;justify-self:stretch;
    width:100%;max-width:none;margin:0;
    padding-left:clamp(8px,3vw,16px);padding-right:clamp(8px,3vw,16px);
    text-align:center!important;line-height:1.24;
  }
  #oyc-profile-welcome:not(.oyc-welcome-selected) .oyc-popup-team{
    grid-column:1;grid-row:2;display:block;align-self:end;justify-self:stretch;
    width:100%!important;max-width:none;height:auto!important;
    max-height:min(34dvh,300px)!important;
    object-fit:contain;object-position:center bottom;margin:0;
  }
}
