@font-face { font-family: 'Trajan'; src: local('Trajan Pro'), local('Trajan'), serif; }
:root{
  --primary:#063970;
  --gold:#d4af37;
  --muted:#f9fafb;
  --card:#ffffff;
  --text:#1f2a36;
}
html,body{margin:0;height:100%;font-family: 'Trajan', serif;background:#f4f6f8;color:var(--text);-webkit-font-smoothing:antialiased}
.site{max-width:90%;margin:28px auto;padding:22px;background:var(--card);box-shadow:0 12px 36px rgba(0,0,0,0.06);border-radius:10px;}

.site-header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px;border-bottom: 4px solid #d4af37; border-radius: 4px;}
.brand{display:flex;align-items:center;gap:12px}
.brand h1{margin:0;color:var(--primary);font-size:1.4rem}

.layout{display:flex;gap:50px}
.main{flex:1}
.hero{background:linear-gradient(90deg,#ffffff,#fbfdff);padding:18px;border-radius:8px;border-left:6px solid var(--gold);box-shadow:0 8px 20px rgba(0,0,0,0.03);margin-bottom:16px}
.hero h2{margin:0 0 8px 0;color:var(--primary);font-size:1.6rem}
.hero p{margin:0;color:#4b5563}

/* Sidebar */
.side{width:400px;flex:0 0 400px}
.calendar-side{background:var(--muted);padding:12px;border-left:4px solid var(--primary);border-radius:8px;overflow:auto;max-height:260px}
.today-header{color:var(--primary);font-weight:700;font-size:1rem;margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}
.date-pill{background:var(--primary);color:#fff;padding:4px 8px;border-radius:999px;font-weight:700;font-size:0.85rem}
.today-events{list-style:none;padding:0;margin:8px 0 0;display:flex;flex-direction:column;gap:8px}
.today-events li{display:flex;gap:10px;align-items:center;background:#fff;padding:8px;border-radius:6px;border:1px solid #e6eaef}
/* make the whole event link a flex row to remove any line-breaks/gaps */
.event-link{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none;width:100%}
 /* event bar : petit point coloré à gauche, centré verticalement */
 .event-bar{
   width:12px;
   height:12px;
   border-radius:50%;
   flex-shrink:0;
   margin:0;
   box-shadow:0 1px 4px rgba(0,0,0,0.12);
 }
.event-info{display:flex;flex-direction:column;justify-content:center;margin:0}
.event-top{margin:0;padding:0}
.event-title{color:var(--primary);font-weight:700;margin:0}
.event-desc{color:#4b5563;font-size:0.9rem;margin:0;margin-top:6px}
.more-link{text-align:right;margin-top:8px}
.no-events{color:#6b7280}

.latest-article-side{
  margin-top:16px;
  background:var(--muted);
  padding:12px;
  border-left:4px solid var(--gold);
  border-radius:8px;
}

.latest-article-title{
  margin:0 0 10px;
  color:var(--primary);
  font-size:1rem;
}

.latest-article-link{
  display:block;
  text-decoration:none;
  color:inherit;
  background:#fff;
  border:1px solid #e6eaef;
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 2px 6px rgba(0,0,0,0.06);
}

.latest-article-image{
  width:100%;
  height:170px;
  object-fit:cover;
  display:block;
}

.latest-article-meta{
  padding:10px 12px 0;
  font-size:0.82rem;
  color:#6b7280;
}

.latest-article-headline{
  padding:6px 12px 0;
  color:var(--primary);
  font-weight:700;
}

.latest-article-summary{
  margin:0;
  padding:8px 12px 12px;
  color:#4b5563;
  font-size:0.92rem;
  line-height:1.5;
}

.footer{margin-top:18px;padding-top:12px;border-top:1px solid rgba(0,0,0,0.04);display:flex;justify-content:space-between;align-items:center;color:#6b7280;font-size:0.9rem}

/* Tablet responsiveness */
@media (max-width:980px){
  .layout{flex-direction:column}
  .side{width:100%;flex:auto}
}

/* Mobile responsiveness */
@media (max-width:768px){
  .site{max-width:95%;margin:12px auto;padding:12px;border-radius:6px}
  
  .site-header{flex-direction:column;text-align:center;gap:12px;margin-bottom:12px}
  .brand{flex-direction:column;width:100%}
  .brand h1{font-size:1.2rem}
  .brand div:last-child{font-size:0.8rem}
  .brand img{width:40px;height:40px}
  
  .layout{gap:20px}
  
  .hero{padding:12px;border-left:4px solid var(--gold);margin-bottom:12px}
  .hero h2{font-size:1.3rem;margin-bottom:6px}
  .hero p{font-size:0.95rem}
  .hero img{width:100% !important;margin-top:8px !important}
  
  .side{width:100%;overflow:visible;max-height:none}
  
  .calendar-side{max-height:none;margin-bottom:12px}
  .today-events li{font-size:0.9rem;padding:6px}
  .today-header{font-size:0.95rem}
  
  .latest-article-image{height:140px}
  .latest-article-headline{font-size:1rem}
  .latest-article-summary{font-size:0.9rem}
  
  .footer{flex-direction:column;gap:8px;font-size:0.85rem;text-align:center}
}

@media (max-width:480px){
  .site{max-width:100%;margin:0;padding:8px;border-radius:0}
  
  .site-header{gap:8px;padding:8px 0}
  .brand img{width:36px;height:36px}
  .brand h1{font-size:1.1rem}
  .brand div:last-child{font-size:0.75rem}
  
  .hero{padding:8px;border-left:3px solid var(--gold)}
  .hero h2{font-size:1.15rem;margin-bottom:4px}
  .hero p{font-size:0.9rem;line-height:1.4}
  
  .calendar-side{padding:8px}
  .today-events{gap:6px}
  .today-events li{padding:4px;font-size:0.85rem}
  
  .latest-article-side{padding:8px;margin-top:8px}
  .latest-article-image{height:120px}
  .latest-article-headline{font-size:0.95rem;padding:4px 8px}
  .latest-article-summary{font-size:0.85rem;padding:4px 8px 8px}
  
  .footer{font-size:0.8rem;padding:4px 0}
}