html {
  scrollbar-gutter: stable;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #333;
  line-height: 1.6;
  display: flex;
  justify-content: center;
}
.page-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.header-horizontal,
#content,
nav {
  width: 100%;
}
header {
  margin-bottom: 2rem;
}
.header-horizontal {
  display: flex;
  align-items: flex-start;  /* ✅ avatar et texte en haut */
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: left;
}

.title-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.title-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.title-link:hover {
  text-decoration: none;
  color: inherit;
}
.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.2rem;
  box-shadow: inset 0 0 3px rgba(255,255,255,0.4), 0 1px 4px rgba(0,0,0,0.2);
  transition: box-shadow 0.2s ease-in-out; /* Transition déclarée ici */
}

.avatar:hover {
  box-shadow: inset 0 0 3px rgba(255,255,255,0.4), 0 0px 16px rgba(0,0,0,0.35); /* Ombre plus marquée */
}



.title-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
h1 {
  font-size: 1.8rem;
  margin: 0;
}
.subtitle {
  font-size: 1rem;
  color: #666;
  margin: 0.2rem 0 0;
}

.location {
  font-size: 0.9rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.map-icon {
  width: 1rem;
  height: 1rem;
}

nav {
  margin-top: 1.2rem;
  display: flex;
  justify-content: center;  /* ✅ centre les boutons */
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav a {
  position: relative;
  text-decoration: none !important;  /* ✅ force l'annulation du soulignement noir */
  color: #333;
  font-weight: 500;
  font-size: 1rem;
}


nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #ff6600;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

main {
  margin-top: 2rem;
}
h2 {
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.2rem;
  margin-top: 2rem;
}
a {
  color: #ff6600;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
/* #content {
  max-width: 720px;      
  margin: 2rem auto 0;    
  padding: 0 1rem;
} 
*/

.global-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

.header-horizontal,
nav,
#content {
  width: 100%;
}

#content {
  padding-top: 2rem;
  box-sizing: border-box;
}


/* Ajout de styles pour les boutons socials */
.social-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.3rem;
  margin-left: 1rem;
  align-items: center;
}

.glass-btn {
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 6px;
  box-shadow: inset 0 0 3px rgba(255,255,255,0.4), 0 1px 4px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transform: translateY(-1px);
  text-decoration: none;
}

.glass-btn img {
  width: 20px;
  height: 20px;
}

a.glass-btn {
  text-decoration: none;  /* pas de soulignement */
}

a.glass-btn:hover {
  text-decoration: none;  /* pas de soulignement au hover non plus */
}

#content p {
  text-align: justify;
}

#content h1,
#content h2,
#content h3,
#content ul,
#content ol {
  text-align: left;
}


.highlight-entry {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2em;
  gap: 1em;
}

.highlight-text {
  flex: 1;
  min-width: 0;
}

.highlight-thumb {
  width: 200px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.highlight-thumb:hover {
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1),
              0 4px 12px rgba(0, 0, 0, 0.25),
              inset 0 0 8px rgba(255, 255, 255, 0.3);
  transform: scale(1.03);
}




.work-thumb {
  margin-top: 0.5em;
  margin-right: 0.5em;
  width: 100px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
}




.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.timeline-date {
  text-align: right;
  margin: 0.2rem 0;
  width: 100px;
}

.timeline-details {
  flex: 1;
  line-height: 1.6;
}

.timeline-details p {
  margin: 0.2rem 0;
}

.timeline-details em {
  font-style: italic;
  color: #444;
}

.timeline-details a.supervisor {
  color: #1a73e8;
  text-decoration: none;
  font-weight: 500;
}

.timeline-details a.supervisor:hover {
  text-decoration: none;
}




/* STYLE TD  */
/* Conteneur en grille : texte à gauche, actions à droite, ressources en bas sur toute la largeur */
/* Grille: texte à gauche, actions à droite, ressources en bas */
.td-row{
  display:grid;
  grid-template-columns: 1fr auto;
  column-gap: 24px;
  /* 👉 centrage vertical de la colonne de droite */
  align-items: center;
  padding:12px 14px;
  border:1px solid #eaeaea;
  border-radius:12px;
  background:#fff;
}

.td-actions{
  display:flex;
  gap:12px;
  /* 👉 les boutons restent alignés entre eux */
  align-items: center;
}

/* Espace entre plusieurs blocs TD (revenu) */
.td-row + .td-row{ margin-top:12px; }

/* Titre + description */
.td-title{ font-weight:600; }
.td-desc{ color:#444; margin:.35rem 0 0; }

/* Actions à droite: sur UNE seule ligne */


/* Chaque bouton + son label dessous */
.td-btn-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
}

/* ⚠️ On NE change PAS la taille des .glass-btn existantes */
a.glass-btn{
  text-decoration:none;
  color:inherit;
}

/* Petit label sous l’icône */
.td-btn-label{
  font-size:12px;
  color:#888;
  line-height:1;
  text-align:center;
}

/* Ressources complémentaires en bas sur toute la largeur */
.td-resources{
  grid-column: 1 / -1;
  margin-top: 4px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

/* Si tu as déjà .td-badge, garde-la ; sinon : */
/* badge par défaut */
.td-badge{
  font-size:.82rem;
  color:#555;
  background:#f7f7f7;
  border:1px solid #eee;
  padding:2px 8px;
  border-radius:999px;
  transition: box-shadow 0.25s ease, color 0.25s ease;
}

/* lien dans le badge */
.td-badge a{
  color:inherit;
  text-decoration:none; /* jamais souligné */
}

/* hover: inner glow orange */
.td-badge:hover{
  color:#ff6600;  /* texte orange si tu veux */
}


.td-preview { grid-column: 1 / -1; margin-top: 12px; }
.td-preview[hidden] { display: none; }

/* PaperGraph Notification Box */
.papergraph-notification {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #fff5f0 0%, #ffe6d9 100%);
  border: 1px solid #ffccb3;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.papergraph-notification:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border-color: #ff6600;
}

.papergraph-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.papergraph-content {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* .papergraph-content strong {
  color: #cc5200;
} */

/* Wrapper link styling - remove default link appearance */
a:has(.papergraph-notification) {
  text-decoration: none;
  color: inherit;
}

a:has(.papergraph-notification):hover {
  text-decoration: none;
  color: inherit;
}

a .papergraph-notification {
  text-decoration: none;
  color: inherit;
}

a .papergraph-notification * {
  color: inherit;
  text-decoration: none;
}

a .papergraph-notification:hover {
  text-decoration: none;
}

/* Mobile responsiveness for notification */
@media (max-width: 600px) {
  .papergraph-notification {
    padding: 12px 16px;
    gap: 10px;
  }
  
  .papergraph-logo {
    width: 28px;
    height: 28px;
  }
  
  .papergraph-content {
    font-size: 0.9rem;
  }
}
