:root {
  --bg: #ffffff;
  --fg: #2e2e2e;      /* texte principal légèrement grisé */
  --muted: #6b7280;
  --accent: #405675;  /* ton bleu-gris agréable */
  --border: #e5e7eb;
  --link: #405675;    /* liens dans le texte */
  --maxw: 1200px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--fg);font-family: Arial, Helvetica, sans-serif}
a{color:var(--link);text-decoration:none}
p{margin:0 0 12px 0;line-height:1.6;color:#444;font-size: 0.90rem;}
/*a:hover{text-decoration:underline}*/
p.location {
  color: var(--muted);
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fun-facts {
  list-style: none;             /* remove default bullets */
  margin: 10px 0;
  padding: 0;
}

.fun-facts li {
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #445;                  /* gentle grey */
  line-height: 1.5;
  position: relative;
  padding-left: 18px;           /* space for emoji */
}

.fun-facts li::before {
  content: "•";                /* or use "•", "→", etc. */
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
  top: 2px;
}

.content p {
  font-size: 0.9rem;           /* slightly smaller */
  line-height: 1.6;
  color: #444;                 /* softer dark grey */
  margin: 0 0 12px 0;
}

.content a {
  color: #506080;              /* lighter accent than nav */
  text-decoration: none;
  transition: color 0.2s ease;
}

.content a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.wrapper{max-width:var(--maxw);margin:0 auto;padding:24px}
.layout{display:grid;grid-template-columns: 340px 1fr;gap:32px}

/* --- Colonne gauche (large) --- */
.sidebar{position:sticky;top:24px;align-self:start}
.photo{display:block;width:300px;height:300px;border-radius:50%;object-fit:cover;border:4px solid var(--border);box-shadow:0 4px 18px rgba(0,0,0,0.08)}
.sidebar h2{margin-top:16px;margin-bottom:8px;font-size:1.1rem;color:var(--muted)}
.sidebar p{margin:0 0 12px 0;line-height:1.6;color:#1f2937}

/* --- Colonne droite --- */
.right{display:flex;flex-direction:column;gap:16px;min-width:0}
.site-name{font-weight:550;font-size:2.5rem;letter-spacing:.1px;font-family: 'Courier New', monospace; color:#405675; display: flex; align-items: center; gap: 30px;}

.site-name .socials a img {
  width: 27px;
  height: 27px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
  text-decoration: none;
  border: none;
  outline: none;
}

.site-name .socials a:hover img {
  opacity: 1;
}

/* Navigation simple et élégante */
nav[aria-label="Navigation principale"] {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  transition: color 0.2s ease;
}

/* soulignement doux au hover */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

/* Effet hover */
.nav-link:hover {
  color: var(--accent);
}

.nav-link:hover::after {
  width: 100%;
}

/* Page active */
.nav-link.active {
  color: var(--accent);
  font-weight: 600;
}

.content {
  display: block;
}

/* Cartes et typographie */
.card{background:#fff;border:1px solid var(--border);border-radius:16px;padding:18px;box-shadow:0 2px 14px rgba(48, 48, 48, 0.04);margin:12px 0}
h1{font-size:1.6rem;margin:8px 0 12px}
h2{font-size:1.25rem;margin:16px 0 8px}
p{line-height:1.7}
.badge{display:inline-block;padding:4px 8px;background:#f3f4f6;border:1px solid var(--border);border-radius:10px;font-size:.85rem;margin-right:6px}

/* Tableaux simples */
.table{width:100%;border-collapse:collapse}
.table th,.table td{border-bottom:1px solid var(--border);padding:10px;text-align:left}

/* Pied de page */
footer {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  background: var(--bg); /* même fond que la page */
  width: 100%;
}

footer .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 24px;       /* petites marges intérieures */
  font-size: 0.8rem;        /* police plus petite */
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
/* Responsive */
@media (max-width: 960px){
  .layout{grid-template-columns: 1fr;gap:20px}
  .sidebar{position:static}
  .site-name{font-size:1.6rem}
}

.news-section {
  margin-top: 40px;
}

.news-section h2 {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--border);
}

.timeline li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 20px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}

.timeline .date {
  display: inline-block;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.timeline p {
  margin: 0;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.5;
}

.timeline a {
  color: var(--accent);
  text-decoration: none;
}

.timeline a:hover {
  text-decoration: underline;
}

.timeline .links {
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--muted);
}

.timeline .links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.timeline .links a:hover {
  text-decoration: underline;
  opacity: 0.9;
}

/* --- BLOG --- */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-card {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
}

.blog-card img {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  object-fit: cover;
  margin-right: 18px;
}

.blog-card-content {
  flex: 1;
}

.blog-card-content h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--accent);
}

.blog-card-content p {
  margin: 6px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.blog-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

/* --- Back Button Card --- */
.back-card {
  margin-top: 24px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-align: center;
  transition: box-shadow 0.2s ease;
}

.back-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.back-button {
  display: inline-block;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
}

.back-button:hover {
  text-decoration: underline;
}

/* --- Blog Banner --- */
.blog-banner {
  background: linear-gradient(135deg, #f6f8fa, #e8ecf3);
  border-radius: 16px;
  padding: 24px;
  margin-top: 20px;
  margin-bottom: 24px;
}

.blog-banner h1 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--accent);
}

.blog-banner .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 6px;
}

/* --- PUBLICATIONS --- */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.pub-card {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.04);
  transition: transform 0.2s ease;
}

.pub-card:hover {
  transform: translateY(-4px);
}

.pub-card img {
  width: 130px;
  height: 130px;
  border-radius: 12px;
  object-fit: cover;
  margin-right: 20px;
}

.pub-content {
  flex: 1;
}

.pub-content h2 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--accent);
}

.pub-content p {
  margin: 6px 0;
  font-size: 0.9rem;
  color: var(--fg);
}

.pub-content .links a {
  color: var(--accent);
  text-decoration: none;
}

.pub-content .links a:hover {
  text-decoration: underline;
}

.pub-content .meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Responsive layout for smaller screens */
@media (max-width: 700px) {
  .pub-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .pub-card img {
    margin-bottom: 12px;
  }
}