/* SWSM 2026 - Invited speakers. Tout est prefixe .swsmsp ; les variables sont
   scopees au composant pour ne rien laisser fuir dans le reste du site. */

.swsmsp{
  --sp-navy-0:#062133; --sp-navy-1:#0A2A40; --sp-navy-2:#13324A;
  --sp-accent:#2FAAE1; --sp-accent-2:#5FC4F0;
  --sp-text:#F1F6F9; --sp-muted:#9DB4C2; --sp-line:rgba(255,255,255,.14);
  --sp-display:"Zilla Slab",Georgia,serif; --sp-body:"Barlow",system-ui,sans-serif;
  --sp-cw:340px;
  position:relative; font-family:var(--sp-body); color:var(--sp-text);
}

.swsmsp__rail{
  list-style:none; margin:0; padding:12px 0 8px; margin-top:-12px;
  display:flex; gap:22px; overflow-x:auto;
  scroll-snap-type:x proximity; scroll-behavior:smooth;
  scrollbar-width:none; -ms-overflow-style:none; -webkit-overflow-scrolling:touch;
}
.swsmsp__rail::-webkit-scrollbar{ display:none; }
.swsmsp__rail.is-grabbing{ scroll-behavior:auto; cursor:grabbing; }
.swsmsp__rail.is-grabbing *{ pointer-events:none; }

/* theme.min.css (Elementor) pose `ul li{list-style:disc}` : il bat l heritage
   du list-style:none porte par les ul. Une classe (0-1-1) suffit a le
   depasser, sans !important. Concerne les cartes du rail et la liste
   cachee rendue pour le SEO et la navigation sans JS. */
.swsmsp__rail > li, .swsmsp__aff li{ list-style:none; }
.swsmsp__card{
  flex:0 0 var(--sp-cw); scroll-snap-align:start;
  display:flex; flex-direction:column;
  background:var(--sp-navy-1); border:1px solid var(--sp-line); border-radius:14px;
  overflow:hidden; transition:border-color .3s, transform .3s, background .3s;
}
.swsmsp__card:hover{ border-color:var(--sp-accent); background:#0c2f48; transform:translateY(-3px); }

/* Cadre carre : le portrait s affiche EN ENTIER, jamais recadre en bandeau. */
.swsmsp__portrait{
  position:relative; aspect-ratio:1/1; display:grid; place-items:center; overflow:hidden;
  background:linear-gradient(135deg,var(--sp-navy-2),#0a2a40 60%,#0f3856);
  border-bottom:1px solid var(--sp-line);
}
/* ARCH-DECISION: l image porte elle-meme aspect-ratio:1/1 au lieu de
   height:100%. Mesure faite sur la page : un pourcentage de hauteur ne se
   resout pas ici (l image retombait sur son ratio intrinseque, 338x192 au
   lieu de 338x338), y compris avec une hauteur explicite sur le parent.
   width + aspect-ratio ne depend d aucun pourcentage et donne un carre exact.
   object-fit:cover : toutes les photos remplissent le carre de la meme
   facon, quel que soit le ratio du fichier source. C est le prix de la
   coherence demandee - une photo paysage est rognee sur les cotes. */
.swsmsp__photo{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover; object-position:50% 50%;
  display:block;
}
.swsmsp__ini{ font-family:var(--sp-display); font-weight:700; font-size:88px; line-height:1; color:rgba(95,196,240,.38); }
.swsmsp__country{
  position:absolute; left:14px; top:14px; z-index:2;
  background:rgba(6,33,51,.78); border:1px solid var(--sp-line); border-radius:999px;
  padding:3px 12px; font-size:13px; font-weight:500; letter-spacing:.04em;
}

.swsmsp__body{ display:flex; flex-direction:column; gap:12px; padding:20px 20px 22px; flex:1; }
.swsmsp__name{ font-family:var(--sp-display); font-size:23px; line-height:1.2; margin:0; color:var(--sp-text); }
.swsmsp__role{ margin:0; font-size:16px; line-height:1.45; }
.swsmsp__org,.swsmsp__sub{ display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.swsmsp__org{ color:var(--sp-accent-2); font-weight:500; }
.swsmsp__sub{ color:var(--sp-muted); }

.swsmsp__quote{ margin:0; padding-top:14px; border-top:1px solid var(--sp-line); color:#dbe7ee; font-size:16px; line-height:1.6; }
.swsmsp__quote p{ margin:0; }
.swsmsp__clamp{ display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:4; overflow:hidden; }
.swsmsp__quote.is-pending p{ color:var(--sp-muted); font-style:italic; }

.swsmsp__more{
  margin-top:auto; align-self:flex-start; display:inline-flex; align-items:center; gap:10px;
  padding:7px 16px 7px 8px; border-radius:999px; border:1px solid var(--sp-accent);
  background:transparent; color:var(--sp-text); font:600 15px/1.4 var(--sp-body);
  cursor:pointer; transition:background .3s;
}
.swsmsp__more:hover{ background:rgba(47,170,225,.16); }
.swsmsp__plus{ width:26px; height:26px; border-radius:50%; background:var(--sp-accent); color:var(--sp-navy-0); display:grid; place-items:center; font-size:20px; line-height:1; }

.swsmsp__progress{ height:3px; background:var(--sp-line); border-radius:3px; margin-top:18px; position:relative; overflow:hidden; }
.swsmsp__progress i{ position:absolute; top:0; bottom:0; left:0; width:30%; background:var(--sp-accent); border-radius:3px; transition:left .22s ease, width .22s ease; }

.swsmsp__nav{ display:flex; gap:10px; margin-top:16px; }
.swsmsp__arrow{
  width:40px; height:40px; border-radius:50%; border:1px solid #5a7893;
  background:rgba(255,255,255,.05); color:var(--sp-text);
  display:grid; place-items:center; font-size:20px; line-height:1; cursor:pointer;
  transition:border-color .3s, background .3s, opacity .3s;
}
.swsmsp__arrow:hover:not(:disabled){ border-color:var(--sp-accent); background:rgba(47,170,225,.16); }
.swsmsp__arrow:disabled{ opacity:.32; cursor:default; }
.swsmsp__arrow:focus-visible{ outline:2px solid var(--sp-accent-2); outline-offset:3px; }

@media (max-width:1020px){ .swsmsp{ --sp-cw:310px; } }
@media (max-width:640px){
  .swsmsp{ --sp-cw:80vw; }
  .swsmsp__rail{ gap:14px; scroll-snap-type:x mandatory; }
  .swsmsp__nav{ display:none; }
}

/* ---------- pop-up (ajoute a <body>) ---------- */
/* z-index 99990 : au-dessus du header (9990), du chatbot (9985) et du bouton
   de consentement (9998), mais SOUS le bandeau cookies (99999) et la
   navigation mobile (100000), qui doivent rester accessibles. */
.swsmsp-ov{
  position:fixed; inset:0; z-index:99990; display:none;
  align-items:center; justify-content:center; padding:24px;
  background:rgba(3,16,26,.8); -webkit-backdrop-filter:blur(5px); backdrop-filter:blur(5px);
  font-family:"Barlow",system-ui,sans-serif; color:#F1F6F9;
}
.swsmsp-ov.is-open{ display:flex; }
html.swsmsp-lock, html.swsmsp-lock body{ overflow:hidden; }
.swsmsp-dlg{
  position:relative; width:min(780px,100%); max-height:min(86vh,760px);
  display:flex; flex-direction:column; background:#0A2A40;
  border:1px solid rgba(47,170,225,.55); border-radius:18px;
  box-shadow:0 30px 80px rgba(0,0,0,.55); overflow:hidden;
}
.swsmsp-head{ display:flex; align-items:center; gap:20px; padding:26px 30px 22px; border-bottom:1px solid rgba(255,255,255,.14); background:linear-gradient(135deg,#13324A,#0A2A40); }
.swsmsp-av{ flex:0 0 84px; height:84px; border-radius:50%; overflow:hidden; display:grid; place-items:center; background:#062133; border:2px solid #2FAAE1; font-family:"Zilla Slab",Georgia,serif; font-weight:700; font-size:32px; color:#5FC4F0; }
.swsmsp-av img{ width:100%; height:100%; object-fit:cover; object-position:50% 24%; display:block; }
.swsmsp-ctry{ display:inline-block; margin-bottom:8px; background:rgba(6,33,51,.78); border:1px solid rgba(255,255,255,.14); border-radius:999px; padding:3px 12px; font-size:13px; }
.swsmsp-dlg h3{ font-family:"Zilla Slab",Georgia,serif; font-size:clamp(26px,3.4vw,34px); line-height:1.15; margin:0; color:#F1F6F9; }
.swsmsp-dlg h4{ color:#5FC4F0; }
.swsmsp-x{ position:absolute; top:14px; right:14px; width:42px; height:42px; border-radius:50%; border:1px solid rgba(255,255,255,.14); background:rgba(6,33,51,.7); color:#F1F6F9; font-size:20px; line-height:1; display:grid; place-items:center; cursor:pointer; }
.swsmsp-x:hover{ border-color:#2FAAE1; background:#13324A; }
.swsmsp-bd{ padding:26px 30px 8px; overflow-y:auto; display:flex; flex-direction:column; gap:26px; }
.swsmsp-lab{ font-weight:600; font-size:13px; letter-spacing:.12em; text-transform:uppercase; color:#5FC4F0; margin:0 0 12px; }
.swsmsp-aff{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; font-size:17px; line-height:1.45; }
.swsmsp-aff li{ list-style:none; padding-left:16px; position:relative; color:#dbe7ee; }
.swsmsp-aff li::before{ content:""; position:absolute; left:0; top:.62em; width:6px; height:6px; border-radius:50%; background:#9DB4C2; }
.swsmsp-aff li:first-child{ color:#F1F6F9; font-weight:600; font-size:18px; }
.swsmsp-aff li:first-child::before{ background:#2FAAE1; }
/* ARCH-DECISION: justification reservee au bloc large du pop-up (631 px,
   une soixantaine de caracteres par ligne). Les cartes (275 px) et le
   pop-up mobile (~345 px) restent en drapeau : justifier une colonne
   etroite creuse des trous entre les mots. hyphens:auto resserre les fins
   de ligne ; la page est en lang="en-US", la cesure anglaise s applique. */
.swsmsp-q{ margin:0; padding:4px 0 0 22px; border-left:3px solid #2FAAE1; font-size:18px; line-height:1.65; color:#e6eff4; max-width:62ch; text-align:justify; hyphens:auto; }
.swsmsp-q p{ margin:0; }
.swsmsp-ft{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px 30px 22px; border-top:1px solid rgba(255,255,255,.14); }
.swsmsp-pg{ display:inline-flex; align-items:center; gap:8px; padding:9px 16px; border-radius:999px; border:1px solid rgba(255,255,255,.14); background:transparent; color:#F1F6F9; font:500 15px/1.4 "Barlow",system-ui,sans-serif; cursor:pointer; }
.swsmsp-pg:hover{ border-color:#2FAAE1; background:rgba(47,170,225,.12); }

@media (max-width:640px){
  .swsmsp-ov{ padding:0; align-items:flex-end; }
  .swsmsp-dlg{ width:100%; max-height:94vh; border-radius:22px 22px 0 0; border-bottom:0; }
  .swsmsp-head{ padding:16px 20px 18px; gap:14px; }
  .swsmsp-av{ flex-basis:60px; height:60px; font-size:23px; }
  .swsmsp-dlg h3{ padding-right:36px; }
  .swsmsp-bd{ padding:18px 20px 4px; gap:18px; }
  .swsmsp-aff{ font-size:15px; }
  .swsmsp-q{ font-size:16px; padding-left:14px; text-align:left; hyphens:manual; }
  .swsmsp-ft{ padding:14px 20px 18px; }
}

@media (prefers-reduced-motion:reduce){
  .swsmsp__card,.swsmsp__more,.swsmsp__arrow{ transition:none; }
  .swsmsp__card:hover{ transform:none; }
  .swsmsp__rail{ scroll-behavior:auto; }
  .swsmsp__progress i{ transition:none; }
}

/* ARCH-DECISION: cibles tactiles portees a 44x44 px sur les appareils a
   pointeur grossier (doigt). Mesure avant correction : croix 42x42,
   precedent/suivant 40 px de haut, bouton Read more 41 px — au-dessus du
   minimum WCAG AA (24 px) mais sous la cible de confort de 44 px.
   `pointer: coarse` plutot qu une largeur d ecran : une tablette tactile
   large en beneficie aussi, et le reglage valide a la souris reste intact. */
@media (pointer: coarse){
  .swsmsp-x{ width:44px; height:44px; }
  .swsmsp-pg{ min-height:44px; }
  .swsmsp__more{ min-height:44px; }
}
