/* User Provided Stylesheet */

/* style/site.css — overrides simples */

:root{
  --accent: #2563eb;
}

/* Mode clair : fond blanc, texte lisible */
body{
  background: #ffffff;
  color: #111827;
  line-height: 1.65;
}

a{ color: var(--accent); }

/* Mode sombre : on garde un dark plus doux que le noir pur */
.dark body{
  background: #0b1220;
  color: #e5e7eb;
}

.dark a{ color: #60a5fa; }

/* Lisibilité du code */
code, pre{ font-size: 0.95em; }

/* Largeur confortable */
.page-inner{
  max-width: 980px;
}

/* --- Supprimer l'icône "lien externe" (la flèche) pour le badge CC --- */



/* Cas 2 : l'icône est un SVG DANS le lien */
a.cc-license svg{
  display: none !important;
}

/* Footer : augmenter la taille (texte + badge) */
footer {
  font-size: 1.1rem;          /* ajuste si tu veux plus: 1.05rem ou 1.1rem */
  line-height: 1.6;
}

footer .cc-license img{
  height: 40px;             /* badge plus grand */
  width: auto;
  vertical-align: middle;
}

/* Publications: boutons + bloc cite */
.pub-links{
  display:inline-flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:6px;
}

.pub-btn{
  display:inline-block;
  padding:2px 10px;
  border:1px solid currentColor;
  border-radius:999px;
  text-decoration:none;
  font-size:0.9em;
}

.pub-cite{
  margin-top:6px;
}

.pub-cite summary{
  cursor:pointer;
}

.pub-cite pre{
  margin-top:6px;
  padding:10px;
  overflow:auto;
  border:1px solid rgba(0,0,0,0.15);
  border-radius:8px;
  font-size:0.9em;
}
.dark .pub-cite pre{
  border-color: rgba(255,255,255,0.2);
}
/* Supprime l'icône de lien externe pour les images cliquables */
a img {
    box-shadow: none !important;
}

.external::after, a.external::after {
    display: none !important;
}


/* --- Suppression totale des décorations de liens externes --- */

/* Cible l'icône spécifique du thème PyData/MyST */
.sd-external-link, 
.fa-external-link,
.external-link-icon,
svg.sd-octicon-link-external {
    display: none !important;
}

/* Supprime TOUS les symboles ajoutés après un lien (flèches, icônes) */
a::after, 
a.external::after, 
a[href^="http"]::after {
    content: none !important;
    display: none !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    background: none !important;
}

/* Supprime le trait bleu/soulignement sous les images cliquables */
a:has(img), a img {
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Empêche le changement de couleur au survol qui pourrait faire réapparaître un trait */
a:hover {
    text-decoration: none !important;
}
/* Suppression ciblée de la flèche de lien externe */
a.no-arrow::after {
    display: none !important;
    content: "" !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
}

/* Supprime aussi l'éventuelle bordure ou soulignement au survol */
a.no-arrow, a.no-arrow:hover {
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Force l'image à être le seul élément du lien */
a.no-arrow img {
    vertical-align: middle;
}

/* Social icons row */
.social-icons{
  display:flex;
  gap:20px;
  margin:15px 0;
  align-items:center;
}

/* Remove default link underline etc. */
.social-icons a.social{
  text-decoration:none !important;
  border:0 !important;
  padding:0;
  display:inline-flex;
  align-items:center;
}

/* ✅ Kill the “external link” arrow only for these icon links */
.social-icons a.social::after,
.social-icons a.social[target="_blank"]::after{
  content:none !important;
  display:none !important;
}
.social-icons{
  display:flex;
  gap:20px;
  margin:15px 0;
  align-items:center;
}

.social-icons a{
  text-decoration:none !important;
}

/* ✅ supprime l’icône “external link” quelle que soit sa méthode (content/mask/bg) */
.social-icons a.no-ext::after,
.social-icons a.no-ext::before{
  content: none !important;
  display: none !important;
  background: none !important;
  background-image: none !important;
  -webkit-mask: none !important;
  mask: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

/* ✅ certains thèmes ajoutent du padding à droite pour faire de la place à l’icône */
.social-icons a.no-ext{
  padding-right: 0 !important;
  margin-right: 0 !important;
}

/* ✅ au cas où l’icône est appliquée sur tous les liens externes via un selector type a[href^="http"] */
.social-icons a.no-ext[href^="http"]::after{
  content:none !important;
  display:none !important;
}
a[href^="http"]::after,
a[target="_blank"]::after{
  content:none !important;
  display:none !important;
  background:none !important;
  -webkit-mask:none !important;
  mask:none !important;
}
/* MyST/book-theme injects an external-link SVG inside external <a>.
   In the social icons row, we only use <img>, so we can safely hide SVGs. */
.social-icons a svg{
  display: none !important;
}

.profile-header{
  display:flex; gap:18px; align-items:center;
  padding:16px 18px; border-radius:16px;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(0,0,0,.02);
}
.profile-left{width:92px}
.profile-avatar{width:92px; height:92px; border-radius:18px; object-fit:cover}
.profile-name{margin:0; font-size:1.8rem}
.profile-role{margin:.3rem 0 .2rem 0; opacity:.9}
.profile-affil{margin:0 0 .6rem 0; opacity:.85}
.social-icons a{margin-right:10px; display:inline-flex; vertical-align:middle}


.aff-logos{
  display:flex;
  gap:12px;
  align-items:center;
  margin:6px 0 2px 0;
}
.aff-logos img{
  height:26px;
  width:auto;
}
/* Supprimer l’icône de lien externe (la petite flèche) */
.link-icon {
  display: none !important;
}



/* Tous les liens */
a {
  color: #77966c
}

/* Au survol */
a:hover {
  color:#77966c;
}

main a:link,
main a:visited {
  color: #d68f67 !important;
  text-decoration: none !important;
}
;

.contact-card{
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  padding:18px 18px;
  background:rgba(0,0,0,.02);
}

.contact-lead{
  margin-bottom:14px;
  opacity:.9;
}

.contact-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:14px 18px;
}

.contact-item{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(0,0,0,.03);
}

.contact-item .icon{
  margin-top:2px;
}

.contact-label{
  font-size:.85rem;
  opacity:.7;
  margin-bottom:2px;
}

.contact-value{
  font-weight:600;
}

/* Responsive */
@media (max-width: 820px){
  .contact-grid{ grid-template-columns: 1fr; }
}

.map-embed{
  margin-top: 12px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
}

.map-embed iframe{
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

.header-links p{
  margin: 0.15rem 0 !important;
}
.header-links .social-icons{
  margin-top: 4px !important;
}
.social-icons{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:2px;
}
.social-icons a{ display:inline-flex; }
.social-icons img{ height:28px; width:auto; }


/* Resserre l'espace entre la ligne d'affiliation (p) et le bloc d'icônes */
main p {
  margin-bottom: 0.35rem;
}

/* Bloc icônes : enlève la marge haute + aligne bien */
.social-icons{
  margin-top: -1.7rem !important;
  margin-bottom: 0.5rem !important;
  display: flex;
  gap: 25px;
  align-items: center;
}

/* Pour éviter des espacements bizarres autour des images */
.social-icons img{
  display: block;
}
.aff-logos{
  display:flex;
  gap:12px;
  align-items:center;
  margin-top:6px;
  margin-bottom:6px;
  opacity:.9;
}
.aff-logos img{
  height:22px;
  width:auto;
}
.aff-logos a{
  display:inline-flex;
}
.aff-logos a:hover{
  opacity:1;
}
.hero-card{
  display:grid;
  grid-template-columns: 1fr 180px;
  gap: 18px;
  align-items:start;
  padding: 20px 18px;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(0,0,0,.0);
  margin-bottom: 18px;
}

/* left side spacing */
/* .hero-left h1{ margin-top: 0; margin-bottom: .3rem; }
.hero-left p{ margin: .25rem 0; } */

/* social icons */
.social-icons{
  margin-top: 6px;
  display:flex;
  gap:10px;
  align-items:center;
}
.social-icons img{ display:block; }

/* Logos : même “hauteur visuelle” que du texte (≈ une ligne) */
.hero-right img{
  height: 60px !important;   /* essaie 20–24 */
  width: auto !important;
  max-width: none !important;
  display: block;
}

/* Si tu les veux sur 2 lignes bien alignées */
.hero-right{
  align-items: flex-end;
  gap: 5px;
}


/* responsive */
@media (max-width: 820px){
  .hero-card{ grid-template-columns: 1fr; }
  .hero-right{
    flex-direction:row;
    align-items:center;
    justify-content:flex-start;
  }
  .hero-right img{ max-width: 160px; }
}


/* Resserre l'espace sous les 2 premières lignes (poste + affiliation) */
main h1 + p,
main h1 + p + p {
  margin-bottom: 0.5rem !important;
}

/* Logos : petits, sur une ligne, même "échelle" que le texte */
.aff-logos{
  display:flex;
  gap:12px;
  align-items:center;
  margin: 0.2rem 0 0.25rem 0 !important;
}

.aff-logos img{
  height: 22px !important;   /* ajuste 20–26 */
  width: auto !important;
  display:block;
  object-fit: contain;
  opacity: .95;
}

/* Icônes sociales : collées juste sous les logos */
.social-icons{
  margin-top: 0.15rem !important;
  margin-bottom: 0.6rem !important;
  display:flex;
  gap:10px;
  align-items:center;
}
.social-icons img{ display:block; }
/* Enlever l'apparence "table" pour ce tableau du header */
main table{
  border: none !important;
  width: 100%;
}
main table td, main table th{
  border: none !important;
  padding: 0 !important;
  vertical-align: top;
}

/* Colonne droite (logos) */
.logos-right{
  text-align: right;
  padding-left: 18px;
}
.logos-right img{
  height: 34px !important;   /* ajuste 30–40 */
  width: auto !important;
  display: inline-block;
  object-fit: contain;
  margin: 0 0 10px 0;
  opacity: .95;
}
.hero-table{
  width: 100%;
  border: none !important;
  margin: 0 0 1rem 0;
}
.hero-table td{
  border: none !important;
  padding: 0 !important;
  vertical-align: top;
}

.hero-name{
  font-size: 2.1rem;     /* <- taille du "H1" */
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: .35rem;
}

.hero-role{ margin: .1rem 0 .25rem 0; }
.hero-affil{ margin: 0 0 .35rem 0; }

.social-icons{
  margin-top: .2rem;
  display:flex;
  gap:10px;
  align-items:center;
}
.social-icons img{ display:block; }

/* Logos à droite : un par ligne */
.hero-right a{
  display: block !important;
  margin-bottom: 10px;   /* espace entre les 2 logos */
}

/* Colonne droite : remonte les logos */
.hero-right{
  vertical-align: top;
  padding-top: 0px !important;   /* essaie 0, puis -6 si besoin */
}

/* Si ça ne bouge pas assez, force un léger décalage */
.hero-right{
  position: relative;
  top: -10px;   /* ajuste: -6 à -14 */
}
.hero-name{ margin-top: 3rem !important; }
.hero-role{ margin-top: 1rem !important; }
.hero-affil{ margin-bottom: 0.5rem !important; }
.hero-affil{ margin-top: 1.5rem !important; }

.hero-right{
  padding-top: 20px !important;  /* ajuste selon la taille de .hero-name */
}


/* Hide the whole download button (parent of the icon) */
.myst-fm-downloads-icon,
.myst-fm-downloads-icon * {
  display: none !important;
}

a:has(.myst-fm-downloads-icon),
button:has(.myst-fm-downloads-icon) {
  display: none !important;
}
/* h1.myst-fm-block-title {
  white-space: nowrap;
  text-overflow: ellipsis;
} */


pre, code {
  overflow-x: auto;
}
img {
  max-width: 100%;
  height: auto;
}


/* Justify text only on the publications page content block */
.pub-justify {
  text-align: justify;
  text-justify: inter-word;
}


/* TIP */
.myst-admonition-tip {
  border-left: 6px solid #77966C !important;
}
.myst-admonition-tip .myst-admonition-header-icon {
  color: #77966c !important;
}


.myst-admonition-tip .myst-admonition-header {
  background-color: #77966c1c;
}

/* TIP */
.myst-admonition-note {
  border-left: 6px solid #D68F67 !important;
}
.myst-admonition-note .myst-admonition-header-icon {
  color: #d68f67 !important;
}
.myst-admonition-note .myst-admonition-header {
  background-color: #d68f671c;
}

/* Try to always show the primary sidebar toggle (hamburger) */
/* header .sidebar-toggle,
header button[aria-label*="primary sidebar"],
header button[title*="Primary Sidebar"],
header button[aria-controls*="primary-sidebar"] {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
} */
/* Make the primary sidebar toggle more visible */
button.sidebar-toggle.primary-toggle {
  transform: scale(1.15);
}
/* --- Fix: make primary sidebar footer clickable --- */
.primary-sidebar-footer,
.primary-sidebar-footer * {
  pointer-events: auto !important;
}

.primary-sidebar-footer button {
  cursor: pointer !important;
  position: relative;
  z-index: 9999;
}
