:root{
  --bg:#ffffff;
  --text:#243b5a;
  --muted:#425a78;
  --border:#e3e7ee;
  --alt:#f6f8fb;

  --primary:#243b5a;
  --secondary:#6F8A7A;

  --shadow:0 10px 24px rgba(36,59,90,.10);
  --radius:16px;
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  font-family:"Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.65;
  background:var(--bg);
  color:var(--text);
  overflow-x:hidden;
}

img{
  max-width:100%;
  height:auto;
  display:block;
}

.container{
  width:min(1120px, calc(100% - 2rem));
  margin-inline:auto;
}

.skip-link{
  position:absolute;
  left:-9999px;
  top:.5rem;
  background:#ffffff;
  color:var(--text);
  border:3px solid var(--secondary);
  padding:.55rem .8rem;
  border-radius:10px;
  z-index:9999;
}
.skip-link:focus{
  left:1rem;
}

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

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible{
  outline:3px solid var(--secondary);
  outline-offset:3px;
}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(255,255,255,.95);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--border);
}

.brand{
  padding:.9rem 0 .55rem;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:.3rem;
}

.brand__logo{
  display:block;
  line-height:0;
}

.brand__logo img{
  width:clamp(220px, 32vw, 360px);
  max-width:100%;
  height:auto;
}

.brand__tagline{
  margin:0;
  font-weight:600;
  font-size:clamp(1rem, 1.8vw, 1.2rem);
  line-height:1.2;
  color:var(--primary);
  max-width:90%;
}

.brand__tagline::after{
  content:"";
  display:block;
  width:72px;
  height:3px;
  background:var(--secondary);
  margin:.45rem auto 0;
  border-radius:3px;
}

/* Navigation */
.site-nav{
  padding-bottom:.85rem;
}

.site-nav ul{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:.5rem;
}

.site-nav a{
  display:inline-block;
  padding:.5rem .75rem;
  border-radius:999px;
  text-decoration:none;
  border:1px solid transparent;
  color:var(--primary);
  font-weight:600;
  font-size:.98rem;
  line-height:1.2;
}

.site-nav a:hover{
  background:var(--alt);
  border-color:var(--border);
}

.site-nav a[aria-current="page"]{
  background:var(--alt);
  border-color:rgba(111,138,122,.45);
}

/* Hero */
.hero{
  padding:2rem 0 1.25rem;
}

.hero__grid{
  display:grid;
  gap:1.6rem;
  align-items:center;
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.hero h1{
  font-size:clamp(2rem, 4vw, 3rem);
  font-weight:900;
  letter-spacing:-.02em;
  margin:0 0 .5rem;
  line-height:1.05;
}

.lead{
  font-size:1.08rem;
  max-width:70ch;
  color:var(--text);
}

.hero .lead:first-of-type{
  font-weight:800;
  color:var(--secondary);
}

.meta{
  color:var(--muted);
  margin-top:.9rem;
}

.hero__cta{
  display:flex;
  flex-wrap:wrap;
  gap:.75rem;
  margin:1.1rem 0 .5rem;
}

/* Buttons */
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  padding:.8rem 1.05rem;
  border-radius:12px;
  border:2px solid var(--primary);
  background:var(--primary);
  color:#ffffff;
  text-decoration:none;
  font-weight:800;
  transition:transform .12s ease, box-shadow .2s ease, background .2s ease;
  box-shadow:0 8px 18px rgba(36,59,90,.15);
  text-align:center;
}

.button:hover{
  background:#1b2f48;
  transform:translateY(-1px);
}

.button:active{
  transform:translateY(0);
}

.button--secondary{
  background:#ffffff;
  color:var(--primary);
  border-color:rgba(36,59,90,.25);
  box-shadow:none;
}

.button--secondary:hover{
  background:var(--alt);
  border-color:rgba(111,138,122,.55);
}

/* Sections */
.section{
  padding:2rem 0;
  border-top:1px solid var(--border);
}

.section--alt{
  background:var(--alt);
}

/* Generic cards */
.cards{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:1.5rem;
  margin:1rem 0 1.5rem;
}

.card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1rem 1rem 1.05rem;
  background:#ffffff;
  box-shadow:0 2px 0 rgba(36,59,90,.02);
  min-width:0;
}

.card h3{
  margin-top:.2rem;
}

.cards .card .link{
  font-weight:700;
}

.cards .card:hover{
  transform:translateY(-3px);
  transition:transform .15s ease;
}

/* Images */
.wide-figure{
  margin:1rem 0 1.5rem;
}

.wide-figure img{
  width:100%;
  height:auto;
  border-radius:20px;
  border:none;
  box-shadow:0 20px 50px rgba(36,59,90,.18);
}

.hero__image img,
.portrait img,
.news__figure img{
  width:100%;
  height:auto;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:#ffffff;
}

.portrait{
  margin:.75rem 0;
}

.small{
  font-size:.95rem;
  color:var(--muted);
}

/* Columns */
.columns{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:1rem;
  margin-top:1rem;
}

.bullets{
  padding-left:1.25rem;
}

/* Events */
.events{
  padding-left:0;
  list-style:none;
  display:grid;
  gap:1rem;
}

.events > li{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1rem 1rem 1rem 1.2rem;
  background:#ffffff;
  box-shadow:0 2px 0 rgba(36,59,90,.02);
  position:relative;
}

.events > li::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:6px;
  border-radius:var(--radius) 0 0 var(--radius);
  background:rgba(111,138,122,.75);
}

/* News */
.news{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1rem;
  margin:1rem 0 0;
  background:#ffffff;
}

.news__figure{
  margin:.75rem 0 .5rem;
}

/* Facts */
.facts{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:.75rem;
  margin:1rem 0 0;
}

.facts > div{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:.85rem 1rem;
  background:#ffffff;
}

dt{
  font-weight:800;
}

dd{
  margin:.25rem 0 0;
}

/* Footer */
.site-footer{
  border-top:1px solid var(--border);
  padding:1.1rem 0;
  background:#ffffff;
}

.link{
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}

/* ===== PAGE PROGRAMME ===== */

.programme-hero{
  padding-top:2.5rem;
  padding-bottom:2rem;
}

.programme-kicker{
  margin:0 0 .75rem;
  font-size:.92rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--secondary);
}

.programme-subtitle{
  margin-top:.25rem;
}

.programme-intro-card{
  margin-top:1.25rem;
  padding:1rem 1.15rem;
  background:var(--alt);
  border:1px solid var(--border);
  border-radius:var(--radius);
  max-width:760px;
}

.programme-nav{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:1rem;
  margin-top:1.25rem;
}

.programme-nav__item{
  display:block;
  padding:1rem;
  border:1px solid var(--border);
  border-radius:14px;
  background:#ffffff;
  text-decoration:none;
  color:var(--primary);
  font-weight:700;
  box-shadow:0 2px 0 rgba(36,59,90,.02);
  transition:transform .12s ease, border-color .2s ease, background .2s ease;
}

.programme-nav__item:hover{
  transform:translateY(-2px);
  border-color:rgba(111,138,122,.55);
  background:var(--alt);
}

.programme-block{
  max-width:860px;
}

.programme-number{
  margin:0 0 .5rem;
  font-size:.92rem;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--secondary);
}

.programme-intro{
  font-size:1.08rem;
  color:var(--text);
}

.programme-highlight{
  max-width:860px;
  padding:1.4rem;
  border-radius:18px;
  background:#ffffff;
  border:1px solid var(--border);
  box-shadow:0 8px 22px rgba(36,59,90,.06);
}

.programme-highlight--light{
  background:var(--alt);
}

.programme-final{
  max-width:860px;
  text-align:center;
  margin:0 auto;
}

.programme-final__call{
  margin-top:1.25rem;
  font-size:1.2rem;
  font-weight:700;
  color:var(--primary);
}

/* ===== PAGE LISTE / COLISTIERS ===== */

.team-grid{
  display:grid;
  gap:1rem;
  grid-template-columns:repeat(auto-fit, minmax(190px,1fr));
  margin-top:1rem;
}

.team-grid--large{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:1.5rem;
  margin-top:1.5rem;
}

.team-card{
  margin:0;
  border:1px solid var(--border);
  border-radius:20px;
  padding:1.2rem 1rem 1rem;
  background:#ffffff;
  text-align:center;
  box-shadow:0 8px 20px rgba(36,59,90,.06);
  transition:transform .15s ease, box-shadow .2s ease;
  min-width:0;
}

.team-card:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 30px rgba(36,59,90,.10);
}

.team-card img{
  display:block;
  width:170px;
  height:auto;
  max-width:100%;
  max-height:220px;
  margin:0 auto 1rem;
  object-fit:contain;
  object-position:center;
}

.team-card h3{
  margin:.3rem 0 .35rem;
  font-size:1.05rem;
  line-height:1.25;
  color:var(--primary);
}

.team-card__meta{
  margin:0 0 .85rem;
  font-size:.95rem;
  color:var(--muted);
  font-weight:600;
  line-height:1.4;
}

.team-card__bio{
  margin:.35rem 0 0 0;
  color:var(--muted);
  font-size:.95rem;
}

.portrait-details{
  margin-top:.85rem;
  border-top:1px solid var(--border);
  padding-top:.85rem;
  text-align:left;
  width:100%;
}

.portrait-details summary{
  cursor:pointer;
  font-weight:700;
  color:var(--primary);
  list-style:none;
  outline:none;
}

.portrait-details summary::-webkit-details-marker{
  display:none;
}

.portrait-details summary::before{
  content:"▶ ";
  color:var(--secondary);
  font-weight:800;
}

.portrait-details[open] summary::before{
  content:"▼ ";
}

.portrait-details p{
  margin:.75rem 0 0;
  font-size:.96rem;
  line-height:1.6;
  color:var(--text);
}

.team-card__placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  width:170px;
  height:170px;
  margin:0 auto 1rem;
  border-radius:50%;
  background:linear-gradient(135deg, #e8edf4 0%, #dfe7ef 100%);
  color:var(--primary);
  font-size:2rem;
  font-weight:800;
  letter-spacing:.04em;
  border:4px solid #ffffff;
  box-shadow:0 6px 18px rgba(36,59,90,.12);
}

/* ===== Responsive ===== */

@media (max-width:1024px){
  .hero__grid{
    grid-template-columns:1fr;
  }

  .cards{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .columns{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .facts{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .programme-nav{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .team-grid--large{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:640px){
  .container{
    width:min(1120px, calc(100% - 1.25rem));
  }

  .site-header{
    position:static;
  }

  .brand__logo img{
    width:min(280px, 82vw);
  }

  .site-nav ul{
    gap:.4rem;
  }

  .site-nav a{
    font-size:.92rem;
    padding:.45rem .65rem;
  }

  .hero{
    padding:1.5rem 0 1rem;
  }

  .lead{
    font-size:1rem;
  }

  .hero__cta{
    flex-direction:column;
    align-items:stretch;
  }

  .button{
    width:100%;
  }

  .cards,
  .columns,
  .facts,
  .programme-nav,
  .team-grid--large{
    grid-template-columns:1fr;
  }

  .team-card img{
    width:150px;
    max-height:200px;
  }

  .team-card__placeholder{
    width:150px;
    height:150px;
    font-size:1.8rem;
  }

  .section{
    padding:1.5rem 0;
  }

  .programme-highlight{
    padding:1rem;
  }
}

@media (max-width:400px){
  .site-nav a{
    width:100%;
    text-align:center;
  }
}

/* ===== Amélioration lisibilité mobile ===== */

@media (max-width:640px){

  body{
    font-size:18px;
  }

  h1{
    font-size:2.2rem;
  }

  h2{
    font-size:1.7rem;
  }

  h3{
    font-size:1.25rem;
  }

  .lead{
    font-size:1.1rem;
    line-height:1.6;
  }

  .team-card__meta{
    font-size:1rem;
  }

  .portrait-details p{
    font-size:1rem;
  }

  .site-nav a{
    font-size:1rem;
  }

  .button{
    font-size:1rem;
    padding:1rem;
  }

}
#sommaire,
#methode,
#ambition,
#conclusion,
#axe1-titre,
#axe2-titre,
#axe3-titre,
#axe4-titre,
#axe5-titre{
  scroll-margin-top: 340px;
}

/* Bouton retour en haut */

#backToTop{
  position:fixed;
  bottom:24px;
  right:24px;
  z-index:999;
  background:var(--primary);
  color:#fff;
  border:none;
  padding:.8rem 1rem;
  border-radius:12px;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(0,0,0,.15);
  opacity:0;
  pointer-events:none;
  transition:opacity .3s ease, transform .2s ease;
}

#backToTop:hover{
  transform:translateY(-2px);
}

#backToTop.show{
  opacity:1;
  pointer-events:auto;
}