/* Variables communes de la branche Agenda. Elles vivent ici, et non plus
   dans l’ancien composant de cartes. */
.agenda-page{
  --agenda-bg:#f5f8fc;
  --agenda-line-soft:rgba(96,121,158,.13);
  --agenda-accent-strong:#5c6e8a;
  --agenda-tag:#6b7890;
  --agenda-text:#2e3138;
  color:var(--agenda-text);
}

/* État vide uniquement : l’ancien composant de cartes n’est plus chargé. */
.agenda-entry--static{
  display:block;
  background:rgba(255,255,255,.76);
  border:1px solid var(--agenda-line-soft);
  border-radius:3px;
  font-family:var(--font-display);
}
.agenda-entry--static .agenda-summary{padding:20px 24px 19px;}
.agenda-entry--static .agenda-entry-title{
  margin:0;
  color:var(--agenda-accent-strong);
  font-family:var(--font-display);
  font-size:clamp(1.48rem,1.9vw,1.94rem);
  font-weight:550;
  line-height:1.04;
  letter-spacing:-.02em;
}
@media(max-width:820px){
  .agenda-entry--static .agenda-summary{padding:16px 16px 17px;}
  .agenda-entry--static .agenda-entry-title{font-size:clamp(1.34rem,5.4vw,1.72rem);line-height:1.06;letter-spacing:-.018em;}
}
@media(max-width:600px){
  .agenda-entry--static .agenda-summary{padding:14px 14px 15px;}
  .agenda-entry--static .agenda-entry-title{font-size:clamp(1.26rem,6.2vw,1.55rem);}
}
@media(max-width:390px){
  .agenda-entry--static .agenda-summary{padding-inline:12px;}
  .agenda-entry--static .agenda-entry-title{font-size:1.22rem;}
}

/* Agenda : À venir et Passé sont deux feuillets d'une seule et même page.
   Le hero, la navigation, la palette et le composant de cartes restent communs. */
body.page-agenda,
.page-agenda main#top,
body.page-archives,
.page-archives main#top,
.page-agenda #agenda,
.page-archives #agenda{
  background:#f5f8fc;
}

body.page-agenda,
body.page-archives{--agenda-shell-max:1000px;}

.agenda-shell{
  width:min(calc(100% - 80px),var(--agenda-shell-max));
  margin-left:auto;
  margin-right:auto;
}


/* La mosaïque À venir respire davantage sur ordinateur : deux cartes plus larges
   et mieux réparties, sans modifier la largeur des archives. */
.agenda-content--avenir .agenda-shell{
  width:min(calc(100% - 80px),1360px);
}

.agenda-view-stage{
  position:relative;
  overflow:hidden;
  background:#f5f8fc;
  perspective:1600px;
}

.agenda-view-panel[hidden]{display:none;}
.agenda-view-panel--overlay{transform-style:preserve-3d;backface-visibility:hidden;}

.agenda-content{
  padding:clamp(38px,4.8vw,58px) 0 clamp(72px,8vw,104px);
  background:linear-gradient(180deg,#f7fafd 0%,var(--agenda-bg) 100%);
}

.agenda-page.is-changing-page .section-nav-link{pointer-events:none;}

@media(max-width:820px){
  .agenda-shell{width:min(calc(100% - 36px),var(--agenda-shell-max));}
  .agenda-content--avenir .agenda-shell{width:calc(100% - 36px);}
  .agenda-content{padding-top:38px;}
}
@media(max-width:600px){
  .agenda-shell{width:calc(100% - 20px);}
  .agenda-content--avenir .agenda-shell{width:calc(100% - 20px);}
  .agenda-content{padding:28px 0 62px;}
}

@media(prefers-reduced-motion:reduce){
  .agenda-view-stage{perspective:none;}
}
