:root {
  --ink:#332e42;
  --muted:#686376;
  --lavender:#eee5fa;
  --blue:#e5f1ff;
  --peach:#fff0e5;
  --mint:#e7f5ee;
  --cream:#fcfaf6;
  --purple:#7857a0;
  --line:#e9e4ee;
  --white:#fff;
  --shadow:0 16px 40px rgba(64,45,90,.07)
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:90px
}
body {
  margin:0;
  font-family:'DM Sans',sans-serif;
  color:var(--ink);
  background:#fff;
  line-height:1.7
}
a {
  color:inherit
}
a:focus-visible,button:focus-visible {
  outline:3px solid #8a65bd;
  outline-offset:4px
}
h1,h2,h3,p {
  margin-top:0
}
h1,h2 {
  font-family:Fraunces,Georgia,serif;
  letter-spacing:-.045em;
  line-height:1.15
}
h1 {
  font-size:clamp(3.5rem,6.8vw,6.8rem);
  margin-bottom:26px
}
h2 {
  font-size:clamp(2.3rem,4vw,4.2rem);
  margin-bottom:22px
}
h3 {
  line-height:1.3
}
em {
  color:var(--purple);
  font-style:normal
}
.wrap {
  width:min(1160px,calc(100% - 48px));
  margin:auto
}
.skip-link {
  position:absolute;
  left:12px;
  top:-100px;
  background:#fff;
  padding:12px;
  z-index:50
}
.skip-link:focus {
  top:12px
}
.site-header {
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(18px);
  border-bottom:1px solid var(--line)
}
.nav-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:78px;
  gap:24px
}
.brand {
  text-decoration:none;
  font-weight:700;
  font-size:1.5rem;
  letter-spacing:-.06em
}
.brand-mark {
  color:var(--purple);
  font-size:1.9rem;
  margin-right:8px
}
.brand-dot,.period {
  color:#b49ad7
}
.nav {
  display:flex;
  align-items:center;
  gap:25px
}
.nav a {
  font-size:.87rem;
  text-decoration:none;
  font-weight:600
}
.nav a:hover,.text-link:hover {
  color:var(--purple)
}
.nav-contact {
  background:var(--lavender);
  padding:10px 16px;
  border-radius:30px
}
.menu-toggle {
  display:none
}
.hero {
  min-height:670px;
  display:grid;
  grid-template-columns:1.12fr .88fr;
  align-items:center;
  gap:35px;
  padding-top:85px;
  padding-bottom:100px
}
.eyebrow,.section-kicker {
  text-transform:uppercase;
  letter-spacing:.15em;
  font-weight:700;
  font-size:.72rem;
  color:var(--purple);
  margin-bottom:26px
}
.pulse {
  display:inline-block;
  width:8px;
  height:8px;
  background:#9cc9b4;
  border-radius:50%;
  margin-right:8px
}
.hero-lead {
  font-size:clamp(1.25rem,2vw,1.6rem);
  font-weight:600;
  line-height:1.5;
  max-width:580px
}
.hero-copy>p:not(.hero-lead) {
  max-width:530px;
  color:var(--muted)
}
.highlight {
  background:linear-gradient(transparent 63%,#e7d8f6 63%)
}
.hero-actions,.contact-actions {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:30px
}
.btn {
  display:inline-flex;
  align-items:center;
  gap:25px;
  padding:13px 21px;
  border-radius:100px;
  text-decoration:none;
  font-weight:700;
  font-size:.88rem;
  transition:transform .2s,box-shadow .2s
}
.btn:hover {
  transform:translateY(-3px);
  box-shadow:var(--shadow)
}
.btn.primary {
  background:var(--ink);
  color:white
}
.btn.secondary {
  border:1px solid #d8d2df;
  background:#fff
}
.hero-tags {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:36px
}
.hero-tags span {
  font-size:.78rem;
  padding:7px 11px;
  border-radius:30px;
  background:#f8f5fa;
  color:#60586c
}
.hero-art {
  height:480px;
  position:relative;
  isolation:isolate
}
.blob {
  position:absolute;
  border-radius:42% 58% 62% 38%/45% 41% 59% 55%;
  filter:saturate(.95)
}
.blob-lilac {
  background:#e7d6f8;
  width:310px;
  height:335px;
  left:12%;
  top:14%;
  transform:rotate(14deg)
}
.blob-blue {
  background:#d9eaff;
  width:260px;
  height:290px;
  right:2%;
  top:4%;
  transform:rotate(-25deg)
}
.blob-peach {
  background:#fce5d7;
  width:240px;
  height:210px;
  right:8%;
  bottom:3%
}
.blob-mint {
  background:#d8f1e4;
  width:170px;
  height:165px;
  left:1%;
  bottom:7%
}
.hero-card {
  position:absolute;
  background:rgba(255,255,255,.91);
  box-shadow:0 25px 70px rgba(70,50,110,.13);
  border:1px solid rgba(255,255,255,.85);
  backdrop-filter:blur(8px)
}
.card-a {
  left:15%;
  top:27%;
  padding:40px 36px;
  border-radius:25px;
  font-family:Fraunces,serif;
  font-size:2.6rem;
  line-height:1.1;
  transform:rotate(-7deg)
}
.card-a strong {
  color:#8567ad;
  font-weight:600
}
.sparkle {
  position:absolute;
  top:8px;
  right:16px;
  color:#dcae73;
  font-size:1.7rem
}
.card-b {
  right:-1%;
  bottom:15%;
  padding:17px 23px;
  border-radius:15px;
  transform:rotate(6deg);
  font-size:.95rem;
  font-weight:700
}
.card-b span {
  color:#a27ec8
}
.orb {
  position:absolute;
  top:4%;
  right:17%;
  font-size:4rem;
  color:#b38bd9
}
.section {
  padding:110px 0
}
.section-tint {
  background:#faf7fd
}
.section-cream {
  background:#fcfaf5
}
.two-col {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:90px
}
.about-text {
  padding-top:34px;
  color:var(--muted);
  font-size:1.05rem
}
.text-link {
  display:inline-block;
  color:var(--purple);
  font-weight:700;
  text-decoration:none;
  border-bottom:1px solid currentColor;
  margin-top:10px
}
.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:35px;
  margin-bottom:40px
}
.section-heading>p {
  max-width:330px;
  color:var(--muted);
  margin:0 0 9px
}
.cards-grid,.mediation-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px
}
.project-card {
  padding:28px;
  border-radius:22px;
  min-height:345px;
  display:flex;
  flex-direction:column;
  transition:transform .2s
}
.project-card:hover,.feature-card:hover {
  transform:translateY(-5px)
}
.project-card.lavender {
  background:var(--lavender)
}
.project-card.blue {
  background:var(--blue)
}
.project-card.peach {
  background:var(--peach)
}
.card-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:48px
}
.pill {
  font-size:.75rem;
  font-weight:700;
  border-radius:30px;
  padding:6px 12px;
  background:rgba(255,255,255,.6)
}
.card-symbol {
  font-size:2.2rem
}
.project-card h3 {
  font-family:Fraunces,serif;
  font-size:1.8rem;
  margin-bottom:12px
}
.project-card p {
  font-size:.92rem;
  line-height:1.65
}
.card-footer {
  margin-top:auto;
  padding-top:25px;
  font-size:.76rem;
  font-weight:700;
  opacity:.7
}
.feature-card {
  background:white;
  border:1px solid #f0e9e0;
  border-radius:22px;
  padding:29px;
  transition:transform .2s
}
.feature-icon {
  font-size:2rem;
  background:#f7f0fd;
  border-radius:17px;
  display:grid;
  place-items:center;
  width:65px;
  height:65px;
  margin-bottom:25px
}
.feature-card h3 {
  font-size:1.2rem
}
.feature-card p {
  color:var(--muted);
  font-size:.93rem
}
.feature-card small {
  display:block;
  margin-top:26px;
  font-weight:700;
  color:var(--purple);
  font-size:.75rem
}
.publication-list {
  border-top:1px solid var(--line)
}
.publication-list a {
  display:grid;
  grid-template-columns:250px 1fr 25px;
  gap:20px;
  align-items:center;
  text-decoration:none;
  padding:25px 8px;
  border-bottom:1px solid var(--line);
  transition:background .2s
}
.publication-list a:hover {
  background:#faf7fd
}
.pub-type {
  color:var(--purple);
  font-size:.78rem;
  font-weight:700
}
.publication-list strong {
  font-size:1rem
}
.arrow {
  font-size:1.3rem
}
.small-note {
  font-size:.8rem;
  color:var(--muted);
  margin-top:25px
}
.timeline {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:24px
}
.timeline-item {
  display:flex;
  gap:18px;
  background:#fff;
  padding:28px;
  border-radius:20px
}
.timeline-icon {
  font-size:1.7rem
}
.timeline-item h3 {
  margin-bottom:7px
}
.timeline-item p {
  margin-bottom:0;
  color:var(--muted);
  font-size:.9rem
}
.contact-section {
  padding-top:90px;
  padding-bottom:110px
}
.contact-panel {
  background:linear-gradient(120deg,#eee5fa,#e8f1ff 60%,#e7f5ee);
  padding:70px;
  border-radius:32px;
  text-align:center
}
.contact-panel h2 {
  max-width:680px;
  margin:0 auto 20px
}
.contact-panel p {
  color:var(--muted)
}
.contact-actions {
  justify-content:center
}
.site-footer {
  border-top:1px solid var(--line)
}
.footer-row {
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center;
  padding:27px 0;
  font-size:.78rem;
  color:var(--muted)
}
.footer-row a {
  text-decoration:none;
  font-weight:700
}
@media(max-width:950px) {
  .hero {
    grid-template-columns:1fr;
    gap:5px;
    padding-top:60px
  }
  .hero-art {
    max-width:560px;
    width:100%;
    margin:auto
  }
  .two-col {
    gap:35px
  }
  .cards-grid,.mediation-grid {
    grid-template-columns:repeat(2,1fr)
  }
  .publication-list a {
    grid-template-columns:180px 1fr 20px
  }
}
@media(max-width:700px) {
  .wrap {
    width:min(100% - 34px,1160px)
  }
  .nav-row {
    min-height:68px
  }
  .menu-toggle {
    display:block;
    border:0;
    background:#f2eafa;
    border-radius:25px;
    padding:9px 15px;
    font:inherit;
    font-size:.85rem;
    font-weight:700
  }
  .nav {
    display:none;
    position:absolute;
    left:0;
    right:0;
    top:68px;
    background:white;
    flex-direction:column;
    align-items:stretch;
    padding:20px 25px;
    box-shadow:0 20px 30px rgba(0,0,0,.08)
  }
  .nav.open {
    display:flex
  }
  .hero {
    padding-top:50px;
    padding-bottom:55px;
    min-height:unset
  }
  .hero-art {
    height:350px
  }
  .blob-lilac {
    width:220px;
    height:250px
  }
  .blob-blue {
    width:200px;
    height:220px
  }
  .blob-peach {
    width:180px;
    height:160px
  }
  .blob-mint {
    width:120px;
    height:130px
  }
  .card-a {
    font-size:2rem;
    padding:30px 24px
  }
  .card-b {
    font-size:.78rem;
    right:0
  }
  .section {
    padding:75px 0
  }
  .two-col,.cards-grid,.mediation-grid,.timeline {
    grid-template-columns:1fr
  }
  .about-text {
    padding-top:0
  }
  .section-heading {
    display:block
  }
  .section-heading>p {
    max-width:unset
  }
  .project-card {
    min-height:285px
  }
  .card-top {
    margin-bottom:25px
  }
  .publication-list a {
    grid-template-columns:1fr 20px;
    gap:8px
  }
  .pub-type {
    grid-column:1
  }
  .publication-list strong {
    grid-column:1;
    grid-row:2
  }
  .publication-list .arrow {
    grid-column:2;
    grid-row:1/span 2
  }
  .contact-panel {
    padding:48px 22px
  }
  .footer-row {
    flex-wrap:wrap
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  *,*:before,*:after {
    transition:none!important;
    animation:none!important
  }
}
.scroll-progress {
  position:fixed;
  z-index:40;
  left:0;
  right:0;
  top:0;
  height:4px;
  pointer-events:none
}
.scroll-progress span {
  display:block;
  height:100%;
  width:0;
  background:linear-gradient(90deg,#c8b0ec,#a9d7f4,#b5e1ce,#f5c6d9);
  transition:width .08s linear
}
.nav a.active:not(.nav-contact) {
  color:var(--purple);
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:7px
}
.scroll-cue {
  display:inline-flex;
  gap:12px;
  align-items:center;
  margin-top:34px;
  font-size:.83rem;
  font-weight:700;
  text-decoration:none;
  color:var(--purple)
}
.scroll-cue span {
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border:1px solid #cdb6e5;
  border-radius:50%;
  font-size:1.15rem;
  transition:transform .2s
}
.scroll-cue:hover span {
  transform:translateY(5px)
}
.timeline {
  display:block;
  position:relative;
  max-width:850px;
  margin:0 auto;
  padding-left:28px
}
.timeline:before {
  content:"";
  position:absolute;
  left:14px;
  top:18px;
  bottom:25px;
  width:3px;
  border-radius:10px;
  background:linear-gradient(#bca5e8,#b4d8f2,#b5e3d1,#f0c7da)
}
.timeline-item {
  position:relative;
  display:grid;
  grid-template-columns:130px 1fr;
  gap:20px;
  margin-bottom:22px;
  padding:25px 30px;
  border:1px solid #ece5f5;
  border-radius:22px;
  background:#fff;
  box-shadow:0 8px 24px rgba(64,45,90,.035)
}
.timeline-item:before {
  content:"";
  position:absolute;
  left:-22px;
  top:35px;
  width:15px;
  height:15px;
  border:4px solid #faf7fd;
  border-radius:50%;
  background:#b9a1e1;
  box-shadow:0 0 0 2px #d3c2eb
}
.timeline-item:nth-child(2):before {
  background:#9bc9e9;
  box-shadow:0 0 0 2px #b6d8f0
}
.timeline-item:nth-child(3):before {
  background:#a7d9c4;
  box-shadow:0 0 0 2px #c4e6d8
}
.timeline-item:nth-child(4):before {
  background:#f0c2d6;
  box-shadow:0 0 0 2px #f6d9e6
}
.timeline-date {
  font-size:.95rem;
  color:#73589a;
  font-weight:700;
  white-space:nowrap;
  padding-top:3px
}
.timeline-kind {
  font-size:.7rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#7b7290;
  font-weight:700
}
.timeline-body h3 {
  font-family:Fraunces,Georgia,serif;
  font-size:1.35rem;
  margin:7px 0 9px
}
.timeline-body p {
  margin:0;
  color:var(--muted);
  font-size:.91rem
}
@media(max-width:700px) {
  .timeline {
    padding-left:23px
  }
  .timeline:before {
    left:9px
  }
  .timeline-item {
    display:block;
    padding:23px 20px
  }
  .timeline-item:before {
    left:-22px
  }
  .timeline-date {
    display:block;
    margin-bottom:8px
  }
}
/* ============================================================
   ANIMATIONS — Affichage stable des contenus
   ------------------------------------------------------------
   Les animations liées au défilement sont volontairement
   désactivées : elles rendaient certaines entrées de la frise
   presque transparentes au milieu de l'écran.
   ============================================================ */
.timeline-item,
.project-card,
.feature-card {
  animation: none;
  opacity: 1;
  transform: none;
}

.nav {
  gap:15px
}
.nav a {
  font-size:.8rem
}
.hero-portrait {
  position:absolute;
  width:62%;
  height:86%;
  left:18%;
  top:7%;
  object-fit:cover;
  object-position:center 35%;
  border-radius:44% 44% 29% 29%;
  box-shadow:0 24px 70px rgba(64,45,90,.16);
  transform:rotate(-3deg)
}
.hero-art .hero-card {
  display:none
}
.hero-art .orb {
  z-index:2
}
.detail-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px
}
.detail-card {
  border:1px solid var(--line);
  border-radius:22px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 5px 20px rgba(64,45,90,.025);
  display:flex;
  flex-direction:column
}
.detail-card img {
  width:100%;
  height:230px;
  object-fit:cover
}
.detail-content {
  padding:23px;
  display:flex;
  flex-direction:column;
  flex:1
}
.detail-content h3 {
  font-size:1.12rem;
  margin:10px 0
}
.detail-content p {
  font-size:.9rem;
  color:var(--muted);
  margin-bottom:12px
}
.detail-meta {
  font-size:.75rem;
  color:var(--purple);
  font-weight:700
}
.item-link {
  display:inline-block;
  color:var(--purple);
  font-weight:700;
  font-size:.84rem;
  text-decoration:none;
  margin-top:auto;
  padding-top:10px
}
.item-link:hover {
  text-decoration:underline
}
.filter-bar {
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-bottom:30px
}
.filter-btn {
  border:1px solid #e5daed;
  background:white;
  border-radius:40px;
  padding:9px 17px;
  font:inherit;
  font-size:.82rem;
  cursor:pointer;
  color:var(--ink)
}
.filter-btn.selected {
  background:var(--lavender);
  border-color:#c9b2e1;
  font-weight:700
}
.filter-item {
  display:flex
}
.filter-item[hidden] {
  display:none
}
.filter-item .detail-card {
  width:100%
}
.academic-group {
  margin:0 0 42px
}
.academic-group>h3,.subheading {
  font-family:Fraunces,serif;
  font-size:1.7rem;
  margin:42px 0 20px
}
.academic-list {
  border-top:1px solid var(--line)
}
.academic-row {
  display:flex;
  justify-content:space-between;
  gap:25px;
  border-bottom:1px solid var(--line);
  padding:19px 8px;
  align-items:center
}
.academic-row strong {
  display:block;
  font-size:.96rem
}
.academic-row span {
  display:block;
  color:var(--muted);
  font-size:.8rem;
  margin-top:5px
}
.academic-row .item-link {
  flex-shrink:0
}
.section-intro {
  color:var(--muted);
  max-width:760px
}
.photo-strip {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:20px;
  margin-top:40px
}
.photo-strip figure {
  margin:0
}
.photo-strip img {
  width:100%;
  height:390px;
  object-fit:cover;
  border-radius:20px
}
.photo-strip figcaption {
  font-size:.8rem;
  color:var(--muted)
}
@media(max-width:950px) {
  .nav {
    gap:10px
  }
  .nav a {
    font-size:.72rem
  }
  .detail-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
}
@media(max-width:700px) {
  .detail-grid,.photo-strip {
    grid-template-columns:1fr
  }
  .hero-portrait {
    width:62%;
    left:20%
  }
  .academic-row {
    align-items:flex-start
  }
  .photo-strip img {
    height:350px
  }
  .nav a {
    font-size:.88rem
  }
}
.lang-toggle {
  border:1px solid #b8a6cf;
  background:#fff;
  border-radius:99px;
  padding:.45rem .8rem;
  font-weight:700;
  color:#65507f;
  cursor:pointer
}
.supervision {
  margin-top:2rem
}
.supervision details {
  background:#fff;
  border:1px solid #e7e1ed;
  border-radius:14px;
  padding:1rem 1.2rem;
  margin:.6rem 0
}
.supervision summary {
  font-weight:700;
  cursor:pointer
}
.supervision details p {
  margin:.8rem 0
}
.project-links {
  display:flex;
  flex-wrap:wrap;
  gap:.6rem
}
.project-links a {
  color:#654c99;
  font-size:.9rem
}
.hero h1 {
  font-size:clamp(2.6rem,5.5vw,5.4rem)
}
.filter-item .detail-card>img {
  width:100%;
  height:180px;
  object-fit:cover
}
.hero-identity {
  font-weight:700;
  letter-spacing:.025em;
  color:#563f78;
  margin:0 0 .5rem;
  font-size:clamp(1rem,1.7vw,1.25rem)
}
#projets .detail-card {
  min-height:unset
}
.section-heading {
  align-items:start
}
.section-heading>div {
  width:100%
}
.section-heading>div>p {
  max-width:720px;
  color:var(--muted);
  margin:4px 0 0;
  line-height:1.6
}
.project-affiliation {
  font-size:.78rem;
  color:var(--purple);
  font-weight:600;
  margin-top:16px;
  margin-bottom:0
}
.timeline-body p {
  white-space:pre-line;
}
.nav-dropdown {
  position:relative
}
.nav-drop-trigger {
  border:0;
  background:none;
  font:inherit;
  font-size:.8rem;
  font-weight:700;
  color:var(--ink);
  cursor:pointer;
  padding:10px 0
}
.nav-submenu {
  display:none;
  position:absolute;
  top:100%;
  left:-12px;
  min-width:220px;
  background:var(--white);
  color:var(--ink);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  border-radius:14px;
  padding:9px;
  z-index:50
}
.nav-submenu a {
  display:block;
  padding:9px 12px;
  border-radius:9px;
  white-space:nowrap;
  color:var(--ink);
}
.nav-submenu a:hover,
.nav-submenu a:focus-visible {
  color:var(--purple);
  background:var(--lavender);
}
.nav-dropdown:hover .nav-submenu,.nav-dropdown:focus-within .nav-submenu,.nav-dropdown.expanded .nav-submenu {
  display:block
}
.nav {
  gap:12px
}
.nav a,.nav-drop-trigger {
  font-size:.76rem
}
.event-photo {
  height:180px!important;
  border-radius:12px;
  margin-top:12px
}
.detail-card>img {
  max-height:220px;
  object-fit:cover
}
@media(max-width:1100px) {
  .nav {
    gap:8px
  }
  .nav a,.nav-drop-trigger {
    font-size:.69rem
  }
}
@media(max-width:700px) {
  .nav-dropdown {
    width:100%
  }
  .nav-drop-trigger {
    font-size:.88rem;
    width:100%;
    text-align:left;
    padding:8px 0
  }
  .nav-submenu {
    display:block;
    position:static;
    box-shadow:none;
    border:0;
    padding:0 0 0 15px;
    min-width:0
  }
  .nav-submenu a {
    white-space:normal;
    font-size:.84rem
  }
  .detail-card>img,.filter-item .detail-card>img {
    height:clamp(105px,27vw,180px);
    object-fit:cover
  }
  .detail-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px
  }
  .detail-content {
    padding:14px
  }
  .detail-content h3 {
    font-size:.94rem
  }
  .detail-content p {
    font-size:.8rem
  }
  .detail-meta {
    font-size:.68rem
  }
  .hero {
    grid-template-columns:minmax(0,1.15fr) minmax(105px,.85fr);
    gap:6px;
    align-items:center
  }
  .hero-art {
    height:250px
  }
  .hero-portrait {
    width:84%;
    height:75%;
    left:8%;
    top:13%
  }
  .hero h1 {
    font-size:clamp(1.9rem,7vw,3.5rem)
  }
  .hero-lead {
    font-size:1rem
  }
  .hero-copy>p:not(.hero-lead) {
    font-size:.83rem
  }
  .hero-tags {
    gap:4px
  }
  .hero-tags span {
    font-size:.65rem
  }
  .hero-actions {
    gap:7px
  }
  .hero-actions .btn {
    padding:9px 12px;
    font-size:.72rem
  }
  .event-photo {
    height:120px!important
  }
}
@media(max-width:380px) {
  .detail-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .hero-art {
    height:190px
  }
  .hero-portrait {
    height:70%
  }
  .hero h1 {
    font-size:1.75rem
  }
  .hero-tags {
    display:none
  }
}
.social-heading {
  font-weight:700;
  margin:30px 0 12px
}
.social-links {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px
}
.social-links a {
  display:inline-flex;
  text-decoration:none;
  border:1px solid #d7cde3;
  border-radius:99px;
  background:rgba(255,255,255,.7);
  padding:7px 13px;
  font-size:.84rem;
  font-weight:600
}
.social-links a:hover {
  background:white;
  color:var(--purple)
}
.brand-mark {
  font-size:1.25rem;
  margin-right:5px
}
@media(max-width:700px) {
  .brand {
    font-size:1.18rem
  }
  .social-links {
    gap:7px
  }
  .social-links a {
    font-size:.76rem
  }
}
.project-title-link {
  text-decoration:none;
  color:inherit
}
.project-title-link:hover {
  color:var(--purple)
}
.theme-toggle {
  border:1px solid var(--line);
  border-radius:50%;
  background:var(--white);
  color:var(--ink);
  width:36px;
  height:36px;
  cursor:pointer;
  font-size:1rem;
  flex-shrink:0
}
.footer-row {
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  text-align:center
}
.footer-row>span:first-child {
  text-align:left
}
.footer-row>a {
  text-align:right
}
.detail-card .detail-meta,.timeline-date {
  font-variant-numeric:tabular-nums
}
@media(max-width:700px) {
  .footer-row {
    grid-template-columns:1fr 1fr 1fr;
    gap:6px;
    font-size:.7rem
  }
}
@media(prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) {
    color-scheme:dark;
    --ink:#f3eefb;
    --muted:#bfb8cc;
    --lavender:#30263e;
    --blue:#202f42;
    --peach:#3b2c2b;
    --mint:#22382f;
    --cream:#1c1a25;
    --purple:#c4a6f5;
    --line:#40374d;
    --white:#282432;
    --shadow:0 14px 36px rgba(0,0,0,.25)
  }
}
:root[data-theme="dark"] {
  color-scheme:dark;
  --ink:#f3eefb;
  --muted:#bfb8cc;
  --lavender:#30263e;
  --blue:#202f42;
  --peach:#3b2c2b;
  --mint:#22382f;
  --cream:#1c1a25;
  --purple:#c4a6f5;
  --line:#40374d;
  --white:#282432;
  --shadow:0 14px 36px rgba(0,0,0,.25)
}
@media(prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) body {
    background:#191720
  }
}
:root[data-theme="dark"] body {
  background:#191720
}
:root[data-theme="dark"] .site-header,:root[data-theme="dark"] .detail-card,:root[data-theme="dark"] .timeline-item,:root[data-theme="dark"] .nav,:root[data-theme="dark"] .filter-btn,:root[data-theme="dark"] .social-links a {
  background:#282432;
  color:var(--ink)
}
@media(prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) .site-header,:root:not([data-theme="light"]) .detail-card,:root:not([data-theme="light"]) .timeline-item,:root:not([data-theme="light"]) .nav,:root:not([data-theme="light"]) .filter-btn,:root:not([data-theme="light"]) .social-links a {
    background:#282432;
    color:var(--ink)
  }
}
:root[data-theme="dark"] .section-tint,:root[data-theme="dark"] .section-cream {
  background:#211e2b
}
@media(prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) .section-tint,:root:not([data-theme="light"]) .section-cream {
    background:#211e2b
  }
}
:root[data-theme="dark"] .btn.secondary,:root[data-theme="dark"] .hero-card {
  background:#302a3d;
  color:var(--ink)
}
@media(prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) .btn.secondary,:root:not([data-theme="light"]) .hero-card {
    background:#302a3d;
    color:var(--ink)
  }
}
:root[data-theme="dark"] .supervision details, :root[data-theme="dark"] .supervision summary  {
  background:#282432;
  color:#f3eefb;
  border-color:#50445f
}
:root[data-theme="dark"] .supervision details p  {
  color:#cfc6dc
}
:root[data-theme="dark"] .btn.primary  {
  background:#c4a6f5;
  color:#1c1726
}
:root[data-theme="dark"] .hero-tags span  {
  background:#373044;
  color:#f3eefb
}
:root[data-theme="dark"] .lang-toggle,:root[data-theme="dark"] .theme-toggle  {
  background:#302a3d;
  color:#f3eefb;
  border-color:#655475
}
@media(prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) .supervision details,:root:not([data-theme="light"]) .supervision summary {
    background:#282432;
    color:#f3eefb;
    border-color:#50445f
  }
  :root:not([data-theme="light"]) .supervision details p {
    color:#cfc6dc
  }
  :root:not([data-theme="light"]) .btn.primary {
    background:#c4a6f5;
    color:#1c1726
  }
  :root:not([data-theme="light"]) .hero-tags span {
    background:#373044;
    color:#f3eefb
  }
  :root:not([data-theme="light"]) .lang-toggle,:root:not([data-theme="light"]) .theme-toggle {
    background:#302a3d;
    color:#f3eefb;
    border-color:#655475
  }
}
.exchange-list .academic-row {
  background:transparent;
  border-radius:0;
  box-shadow:none;
  padding:17px 8px;
  min-height:0;
  display:flex;
  flex-direction:row;
  justify-content:space-between;
  align-items:center
}
.exchange-content strong {
  display:block
}
.exchange-content span {
  display:block;
  font-size:.8rem;
  color:var(--muted);
  margin-top:5px
}
.exchange-content p {
  font-size:.86rem;
  color:var(--muted);
  margin:6px 0 0
}
.exchange-row .item-link {
  margin-left:auto;
  white-space:nowrap
}
#encadrement details  {
  background:var(--surface, #fff);
  color:var(--text, #272332);
  border:1px solid var(--border, #d7d1df)
}
#encadrement summary,#encadrement details p  {
  color:inherit
}
[data-theme="dark"] #encadrement details, body.dark #encadrement details  {
  background:#282434!important;
  color:#f1eaf7!important;
  border-color:#51485f!important
}
[data-theme="dark"] #encadrement details summary,[data-theme="dark"] #encadrement details p,body.dark #encadrement details summary,body.dark #encadrement details p {
  color:#f1eaf7!important
}
.exchange-row p {
  margin:.35rem 0 0;
  font-size:.91rem;
  line-height:1.5;
  max-width:72ch
}
.exchange-row strong,.exchange-row span {
  display:block
}
.exchange-row span {
  margin-top:.25rem
}
#academique {
  padding-top:44px
}
#projets {
  padding-bottom:54px
}
#encadrement {
  padding-bottom:42px
}
#entretiens {
  padding-top:48px
}
#enseignement {
  padding-bottom:48px
}
#mediation .detail-card img {
  object-position:center 35%
}
#mediation .detail-card:has(h3) img[src*="cuisine-ta-science-photo"] {
  object-position:center 18%
}
.hero-portrait {
  object-position:center 20%
}
.hero-art .orb {
  font-size:3.1rem
}
.background-accordion {
  width:min(1080px,calc(100% - 48px));
  margin:0 auto 46px;
  padding:16px 22px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--white);
  color:var(--ink)
}
.background-accordion>summary {
  cursor:pointer;
  font-weight:700;
  color:var(--ink)
}
.background-accordion[open] {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px
}
.background-accordion[open]>summary {
  grid-column:1/-1
}
.background-accordion .timeline-item {
  margin:0;
  padding:12px 14px;
  display:block;
  border:1px solid var(--line);
  box-shadow:none;
  background:transparent
}
.background-accordion .timeline-item:before {
  display:none
}
.background-accordion .timeline-body h3 {
  font-size:1rem;
  margin:4px 0
}
.background-accordion .timeline-body p {
  font-size:.79rem;
  line-height:1.5
}
.background-accordion .timeline-kind {
  font-size:.62rem
}
.background-accordion .timeline-date {
  font-size:.8rem
}
@media(max-width:700px) {
  .hero-portrait {
    object-position:center 17%
  }
  .background-accordion[open] {
    grid-template-columns:1fr
  }
  .background-accordion {
    width:calc(100% - 34px)
  }
  #mediation .detail-card img {
    object-position:center 25%
  }
}
#academique .academic-group:last-child {
  margin-bottom:0
}
#mediation .detail-card {
  height:auto;
  min-height:0
}
#mediation .detail-content {
  min-height:0
}
#apropos .background-accordion {
  width:min(760px,calc(100% - 48px));
  margin:26px auto 0 max(24px,calc((100% - 1160px)/2));
}
#apropos {
  padding-bottom:70px;
}
#mediation .detail-card img[src*="projection-debat-gone-girl"] {
  object-position:center 82%;
}
#mediation .detail-card img[src*="gazette-popsciences"] {
  object-position:center 74%;
}
#mediation .detail-card img[src*="cuisine-ta-science-atlas"] {
  object-position:center 15%;
}
#mediation .detail-card img[src*="perspectives-numero"] {
  object-position:center top;
  background:var(--white);
}
#mediation .detail-card img[src*="neuromythes-"] {
  object-position:center center;
}
.neuromythes-images {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  margin:10px 0 14px;
}
#mediation .neuromythes-images img {
  width:100%;
  height:100px;
  object-fit:contain;
  background:#fff;
  border-radius:9px;
}
@media(max-width:700px) {
  #apropos .background-accordion {
    width:calc(100% - 34px);
    margin:24px auto 0;
  }
  #mediation .detail-card img[src*="projection-debat-gone-girl"] {
    object-position:center 80%;
  }
}
#apropos .background-accordion[open] {
  display:grid;
  grid-template-columns:1fr;
  gap:0;
  max-width:760px;
  padding:18px 24px 22px;
}
#apropos .background-accordion[open]>summary {
  grid-column:1;
  margin-bottom:18px;
}
#apropos .background-accordion .timeline-item {
  position:relative;
  display:grid;
  grid-template-columns:100px minmax(0,1fr);
  gap:16px;
  align-items:start;
  margin:0 0 0 12px;
  padding:12px 12px 15px 25px;
  border:0;
  border-left:3px solid #c9b4e8;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
#apropos .background-accordion .timeline-item:before {
  display:block;
  content:"";
  position:absolute;
  left:-8px;
  top:18px;
  width:13px;
  height:13px;
  border:3px solid var(--white);
  border-radius:50%;
  background:#9c7bc7;
  box-shadow:0 0 0 1px #c9b4e8;
}
#apropos .background-accordion .timeline-item:nth-of-type(3n+2) {
  border-left-color:#a8c9e8;
}
#apropos .background-accordion .timeline-item:nth-of-type(3n+2):before {
  background:#78a9d5;
  box-shadow:0 0 0 1px #a8c9e8;
}
#apropos .background-accordion .timeline-item:nth-of-type(3n+3) {
  border-left-color:#a9d7c1;
}
#apropos .background-accordion .timeline-item:nth-of-type(3n+3):before {
  background:#77b89b;
  box-shadow:0 0 0 1px #a9d7c1;
}
#apropos .background-accordion .timeline-date {
  display:inline-block;
  width:max-content;
  max-width:100%;
  padding:4px 9px;
  border-radius:30px;
  background:var(--lavender);
  color:var(--purple);
  font-size:.79rem;
  line-height:1.5;
  white-space:normal;
}
#apropos .background-accordion .timeline-item:nth-of-type(3n+2) .timeline-date {
  background:var(--blue);
}
#apropos .background-accordion .timeline-item:nth-of-type(3n+3) .timeline-date {
  background:var(--mint);
}
#apropos .background-accordion .timeline-body h3 {
  font-size:1.05rem;
}
#apropos .background-accordion .timeline-body p {
  font-size:.82rem;
}
@media(max-width:600px) {
  #apropos .background-accordion .timeline-item {
    grid-template-columns:1fr;
    gap:5px;
    padding-left:17px;
  }
  #apropos .background-accordion[open] {
    padding:15px;
  }
}
:root[data-theme="dark"] .contact-panel {
  color:#332e42;
}
:root[data-theme="dark"] .contact-panel h2,:root[data-theme="dark"] .contact-panel h2 em {
  color:#332e42;
}
:root[data-theme="dark"] .contact-panel h2 em {
  color:#7857a0;
}
:root[data-theme="dark"] .contact-panel p,:root[data-theme="dark"] .contact-panel .social-heading {
  color:#51495f;
}
:root[data-theme="dark"] .contact-panel .section-kicker {
  color:#7857a0;
}
@media(prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) .contact-panel {
    color:#332e42;
  }
  :root:not([data-theme="light"]) .contact-panel h2 {
    color:#332e42;
  }
  :root:not([data-theme="light"]) .contact-panel h2 em {
    color:#7857a0;
  }
  :root:not([data-theme="light"]) .contact-panel p,:root:not([data-theme="light"]) .contact-panel .social-heading {
    color:#51495f;
  }
  :root:not([data-theme="light"]) .contact-panel .section-kicker {
    color:#7857a0;
  }
}
#apropos .background-accordion {
  width:min(1160px,calc(100% - 48px));
  max-width:none;
}
#apropos .background-accordion[open] {
  width:min(1160px,calc(100% - 48px));
  max-width:none;
}
#apropos .background-accordion .timeline-item {
  border-left-color:#8ebfe5;
}
#apropos .background-accordion .timeline-item:before {
  background:#77aede;
  box-shadow:0 0 0 1px #8ebfe5;
}
#apropos .background-accordion .timeline-item .timeline-date {
  background:#dceeff;
  color:#376f9f;
}
#apropos .background-accordion .timeline-item:has(.timeline-kind) .timeline-kind {
  color:#6387a9;
}
#apropos .background-accordion .timeline-item:has(.timeline-kind) .timeline-date {
  background:#dceeff;
  color:#376f9f;
}
#apropos .background-accordion .timeline-item:has(.timeline-kind)  {
  border-left-color:#8ebfe5;
}
#apropos .background-accordion .timeline-item:has(.timeline-kind):before {
  background:#77aede;
  box-shadow:0 0 0 1px #8ebfe5;
}
#apropos .background-accordion .timeline-item:has(.timeline-kind) .timeline-kind {
  color:#6387a9;
}
#apropos .background-accordion .timeline-item:has(.timeline-kind) .timeline-date {
  background:#dceeff;
  color:#376f9f;
}
#apropos .background-accordion .timeline-item:has(.timeline-kind[data-category="teaching"]) {
  border-left-color:#91cdb2;
}
#apropos .background-accordion .timeline-item:has(.timeline-kind[data-category="teaching"]):before {
  background:#77b79a;
  box-shadow:0 0 0 1px #91cdb2;
}
#apropos .background-accordion .timeline-item:has(.timeline-kind[data-category="teaching"]) .timeline-date {
  background:#dff4e9;
  color:#317a58;
}
#apropos .background-accordion .timeline-item:has(.timeline-kind[data-category="teaching"]) .timeline-kind {
  color:#568a6d;
}
#apropos .background-accordion .timeline-item:has(.timeline-kind[data-category="education"]) {
  border-left-color:#d3a7e9;
}
#apropos .background-accordion .timeline-item:has(.timeline-kind[data-category="education"]):before {
  background:#b88ad3;
  box-shadow:0 0 0 1px #d3a7e9;
}
#apropos .background-accordion .timeline-item:has(.timeline-kind[data-category="education"]) .timeline-date {
  background:#f1e4fa;
  color:#8655a5;
}
#apropos .background-accordion .timeline-item:has(.timeline-kind[data-category="education"]) .timeline-kind {
  color:#9872ad;
}
@media(max-width:700px) {
  #apropos .background-accordion,#apropos .background-accordion[open] {
    width:calc(100% - 34px);
  }
}
#mediation .detail-card img[src*="gazette-popsciences"] {
  object-fit:contain;
  object-position:center top;
  background:#fff;
}
#mediation .neuromythes-images {
  display:block;
  margin:12px 0 16px;
}
#mediation .neuromythes-images img {
  display:block;
  width:100%;
  height:235px;
  object-fit:cover;
  object-position:center center;
  background:#fff;
  border-radius:12px;
}
#mediation .detail-card>img[src*="gazette-popsciences"] {
  width:100%;
  height:235px;
  max-height:none;
  object-fit:cover;
  object-position:center 20%;
  background:#fff;
}
@media(max-width:700px) {
  #mediation .neuromythes-images img {
    height:175px;
  }
  #mediation .detail-card>img[src*="gazette-popsciences"] {
    height:190px;
  }
}
/* ============================================================
   MISE EN PAGE — Espacement général des sections
   ============================================================ */
.section {
  padding-top:58px;
  padding-bottom:58px;
}
.section-heading {
  margin-bottom:26px;
}
.section-kicker {
  margin-bottom:14px;
}
.academic-group {
  margin-bottom:26px;
}
.academic-group>h3,.subheading {
  margin-top:28px;
  margin-bottom:15px;
}
#academique .academic-group:last-child {
  margin-bottom:0;
}
#apropos {
  padding-bottom:48px;
}
#apropos .background-accordion {
  margin-top:18px;
  margin-bottom:0;
}
.contact-section {
  padding-top:55px;
  padding-bottom:65px;
}
@media(max-width:700px) {
  .section {
    padding-top:42px;
    padding-bottom:42px;
  }
  .section-heading {
    margin-bottom:20px;
  }
  .academic-group>h3,.subheading {
    margin-top:22px;
    margin-bottom:12px;
  }
  .contact-section {
    padding-top:42px;
    padding-bottom:48px;
  }
}
/* ============================================================
   ASSOCIATIONS — Présentation en lignes
   ============================================================ */
#associations .association-list {
  display:block;
  width:100%;
  border-top:1px solid var(--line);
}
#associations .association-row {
  border-bottom:1px solid var(--line);
  padding:21px 4px 23px;
  background:transparent;
  box-shadow:none;
  border-radius:0;
}
#associations .association-content {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  column-gap:22px;
  row-gap:7px;
  align-items:start;
}
#associations .association-row h3 {
  grid-column:1;
  grid-row:1;
  margin:0;
  font-family:Fraunces,Georgia,serif;
  font-size:clamp(1.08rem,2vw,1.38rem);
  line-height:1.3;
  color:var(--ink);
}
#associations .association-row .detail-meta {
  grid-column:1/-1;
  grid-row:2;
  color:var(--purple);
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.02em;
  margin:0;
}
#associations .association-row p {
  grid-column:1/-1;
  margin:0;
  color:var(--muted);
  max-width:940px;
  line-height:1.6;
  font-size:.9rem;
}
#associations .association-row .item-link {
  grid-column:2;
  grid-row:1;
  align-self:center;
  white-space:nowrap;
  font-size:.78rem;
  margin:0;
}
#associations .association-row:hover {
  background:color-mix(in srgb,var(--purple) 3%,transparent);
}
#encadrement .supervision {
  margin-top:0;
}
@media(max-width:650px) {
  #associations .association-content {
    grid-template-columns:1fr;
  }
  #associations .association-row .item-link {
    grid-column:1;
    grid-row:auto;
  }
  #associations .association-row {
    padding:19px 0;
  }
}


/* ============================================================
   Parcours — stages de recherche (bleu-vert distinct des postes)
   ============================================================ */
#apropos .background-accordion .timeline-item:has(.timeline-kind[data-category="internship"]) {
  border-left-color: #83bfc7;
}
#apropos .background-accordion .timeline-item:has(.timeline-kind[data-category="internship"]):before {
  background: #75b5be;
  box-shadow: 0 0 0 1px #83bfc7;
}
#apropos .background-accordion .timeline-item:has(.timeline-kind[data-category="internship"]) .timeline-date {
  background: #e0f4f5;
  color: #317a86;
}
#apropos .background-accordion .timeline-item:has(.timeline-kind[data-category="internship"]) .timeline-kind {
  color: #548d96;
}

/* Accueil — espacement sur petits écrans */
@media (max-width: 700px) {
  .hero-social-links { column-gap: 12px; row-gap: 9px; }
  .hero-social-link { font-size: .75rem; }
}


/* ============================================================
   PARCOURS — Espacement compact entre titres et descriptions
   ============================================================ */

/* Les retours à la ligne du fichier HTML ne modifient plus le rendu. */
#parcours .timeline-body p {
  white-space: normal;
  margin: 0;
  padding: 0;
  max-width: none;
  line-height: 1.5;
}

/* Supprime les marges verticales héritées des titres. */
#parcours .timeline-body h3 {
  margin: 2px 0 3px;
  line-height: 1.3;
}

#parcours .timeline-kind {
  display: block;
  margin: 0;
}

/* Conserve la séparation entre expériences sans créer de grands blancs. */
#parcours .timeline-item {
  margin: 0;
  padding-top: 12px;
  padding-bottom: 12px;
}

#parcours.background-accordion[open] {
  row-gap: 0;
}

/* ============================================================
   ACCUEIL — Logos des réseaux et profils scientifiques
   ============================================================ */

.hero-social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 22px 0 10px;
}

.hero-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.social-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  object-fit: contain;
}

.email-icon {
  color: #9468bb;
}

.hero-social-link:hover span {
  color: var(--purple);
  text-decoration: underline;
}

:root[data-theme="dark"] .github-icon {
  filter: invert(1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .github-icon {
    filter: invert(1);
  }
}

@media (max-width: 700px) {
  .hero-social-links {
    gap: 10px 14px;
  }

  .social-icon {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
  }

  .hero-social-link {
    font-size: .75rem;
  }
}


/* ============================================================
   PARCOURS — RYTHME ET LIBELLÉS
   ============================================================ */
#parcours .timeline-kind { line-height: 1.5; }
#parcours .timeline-body h3 { margin: 2px 0 3px; }
#parcours .timeline-body p { margin: 0; white-space: normal; }

/* ============================================================
   PROJETS — DESCRIPTIONS DÉPLIABLES
   ============================================================ */
#projets .project-details { margin: 10px 0; }
#projets .project-details summary {
  cursor: pointer;
  color: var(--purple);
  font-size: .87rem;
  font-weight: 700;
  padding: 4px 0;
}
#projets .project-details[open] summary { margin-bottom: 10px; }
#projets .project-details p { margin: 0 0 9px; white-space: normal; }
#projets .project-affiliation { margin-top: auto; padding-top: 10px; }



/* ============================================================
   ASSOCIATIONS — Taille et disposition des logos
   ------------------------------------------------------------
   Dimensions explicites pour éviter l'affichage des images
   à leur résolution originale, sur ordinateur et mobile.
   ============================================================ */
#associations .association-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

#associations .association-row img.association-logo {
  display: block;
  width: 76px;
  height: 76px;
  min-width: 76px;
  max-width: 76px;
  min-height: 76px;
  max-height: 76px;
  flex: 0 0 76px;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
}

#associations .association-row .association-content {
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 600px) {
  #associations .association-row {
    gap: 14px;
  }

  #associations .association-row img.association-logo {
    width: 52px;
    height: 52px;
    min-width: 52px;
    max-width: 52px;
    min-height: 52px;
    max-height: 52px;
    flex-basis: 52px;
  }
}

/* ============================================================
   PARCOURS — FRISE VISIBLE SANS DÉPLIANT
   ------------------------------------------------------------
   La frise n'utilise plus l'élément details/summary.
   Les couleurs des catégories et les dimensions sont conservées.
   ============================================================ */
#apropos #parcours.background-accordion {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  width: min(1160px, calc(100% - 48px));
  max-width: none;
  margin: 0 auto;
  padding: 18px 24px 22px;
}

#apropos .section-heading {
  margin-bottom: 24px;
}

@media (max-width: 700px) {
  #apropos #parcours.background-accordion {
    width: calc(100% - 34px);
    padding: 14px 12px 18px;
  }
}

/* ============================================================
   ACCUEIL — Mise en page sur téléphone
   ------------------------------------------------------------
   Le portrait passe sous le texte et les boutons. Les formes
   décoratives restent contenues dans la zone de l'image.
   ============================================================ */
@media (max-width: 700px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding-top: 42px;
    padding-bottom: 52px;
  }

  .hero-copy {
    min-width: 0;
    width: 100%;
  }

  .hero-art {
    position: relative;
    grid-column: 1;
    width: min(100%, 350px);
    max-width: 350px;
    height: 310px;
    margin: 0 auto;
    isolation: isolate;
  }

  .hero-portrait {
    position: absolute;
    width: 64%;
    height: 79%;
    left: 18%;
    top: 10%;
    object-fit: cover;
    object-position: center 20%;
    z-index: 1;
  }

  .hero-art .blob-lilac {
    width: 62%;
    height: 79%;
    left: 8%;
    top: 12%;
  }

  .hero-art .blob-blue {
    width: 58%;
    height: 75%;
    right: 2%;
    top: 3%;
  }

  .hero-art .blob-peach {
    width: 52%;
    height: 48%;
    right: 4%;
    bottom: 3%;
  }

  .hero-art .blob-mint {
    width: 44%;
    height: 45%;
    left: 4%;
    bottom: 6%;
  }
}

@media (max-width: 380px) {
  .hero-art {
    height: 270px;
  }
}

/* ============================================================
   NAVIGATION — Menu mobile défilant
   Le menu ne dépasse pas la hauteur visible du téléphone.
   ============================================================ */
@media (max-width: 700px) {
  #nav.nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 68px);
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 16px 24px max(30px, env(safe-area-inset-bottom));
    z-index: 1000;
  }
  #nav.nav.open { display: flex; }
  #nav .nav-submenu { max-height: none; }
}

/* ============================================================
   MÉDIATION — Interviews et vidéo Instagram
   ============================================================ */
#mediation .instagram-embed-wrapper {
  width: 100%;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
#mediation .instagram-embed-wrapper iframe {
  display: block;
  width: 100%;
  height: 460px;
  max-height: 75vh;
  border: 0;
}
#mediation .media-interview-card .detail-content { padding: 22px; }
@media (max-width: 700px) {
  #mediation .instagram-embed-wrapper iframe { height: 420px; max-height: 65vh; }
}


/* ============================================================
   MÉDIATION — VIDÉOS YOUTUBE INTÉGRÉES
   ============================================================ */

#mediation .youtube-embed-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #161616;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}

#mediation .youtube-embed-wrapper iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}


/* ============================================================
   MÉDIAS — Vidéos YouTube et lecteur de podcast
   ============================================================ */
/* MÉDIAS — Miniatures YouTube cliquables (sans lecteur intégré) */
   .youtube-video-link {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #171717;
    color: #fff;
    text-decoration: none;
   }

   .youtube-video-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
   }

   .youtube-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    width: 70px;
    height: 49px;
    border-radius: 13px;
    background: #f00;
    color: #fff;
    font-size: 27px;
    line-height: 1;
    box-shadow: 0 4px 20px rgb(0 0 0 / 25%);
    transition: background .2s, transform .2s;
   }

   .youtube-video-caption {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 5px 9px;
    border-radius: 6px;
    background: rgb(0 0 0 / 75%);
    color: #fff;
    font-size: .75rem;
   }

   .youtube-video-link:hover .youtube-play-icon,
   .youtube-video-link:focus-visible .youtube-play-icon {
    background: #c00;
    transform: translate(-50%, -50%) scale(1.08);
   }

   .youtube-video-link:focus-visible {
    outline: 3px solid #9468bb;
    outline-offset: 3px;
   }

.podcast-embed-wrapper {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.podcast-player {
  display: block;
  width: 100%;
  height: 345px;
  border: 0;
}

/* ============================================================
   ACCUEIL — Pulsation du repère vert
   ============================================================ */

.pulse {
  position: relative;
  vertical-align: middle;
  animation: pulse-heartbeat 2.4s ease-in-out infinite;
}

.pulse::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: #9cc9b4;
  opacity: 0;
  animation: pulse-halo 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes pulse-heartbeat {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.16); }
  65% { transform: scale(1); }
}

@keyframes pulse-halo {
  0% { transform: scale(1); opacity: 0.35; }
  70%, 100% { transform: scale(2.7); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse,
  .pulse::after {
    animation: none;
  }
}


/* ============================================================
   ACCUEIL — Repère bleu fixe (sans animation)
   ============================================================ */
.pulse {
  background: #78b8e8;
  animation: none;
  transform: none;
}
.pulse::after {
  content: none;
  animation: none;
}

/* ============================================================
   NAVIGATION — Bouton mobile plus confortable
   ============================================================ */
@media (max-width: 700px) {
  .menu-toggle {
    min-width: 110px;
    min-height: 44px;
    padding: 11px 18px;
    font-size: 1rem;
    border-radius: 16px;
    cursor: pointer;
  }
  #nav.nav {
    font-size: 1rem;
  }
  #nav.nav a,
  #nav.nav .nav-drop-trigger {
    font-size: .98rem;
  }
}

/* ============================================================
   ASSOCIATIONS — Monogramme de remplacement pour Nous Toutes
   ------------------------------------------------------------
   Ce repère n'est pas le logo officiel de l'association.
   ============================================================ */
#associations .association-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  min-width: 76px;
  flex: 0 0 76px;
  border-radius: 15px;
  background: #744693;
  color: white;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.04em;
}
@media (max-width: 700px) {
  #associations .association-monogram {
    width: 52px;
    height: 52px;
    min-width: 52px;
    flex-basis: 52px;
    font-size: 1rem;
    border-radius: 11px;
  }
}

/* ============================================================
   CONTACT — Icônes cohérentes et accessibles
   ============================================================ */
.contact-panel .social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  color: var(--ink);
}
.footer-social-icon svg {
  display: block;
  width: 19px;
  height: 19px;
}
.footer-social-instagram { color: #c13584; }
.footer-social-linkedin { color: #0a66c2; }
.footer-social-google-scholar { color: #4285f4; }
.footer-icon-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  font-size: .65rem;
  font-weight: 800;
  line-height: 1;
}
.footer-orcid {
  background: #a6ce39;
  border-radius: 50%;
  color: #fff;
}
.footer-osf { color: #2674b8; font-size: .53rem; }
.footer-rg { color: #00a99d; font-size: .8rem; }

/* ============================================================
   NAVIGATION — Panneau mobile lisible et défilable
   Le panneau s'ouvre sous l'en-tête et occupe l'écran disponible.
   ============================================================ */
@media (max-width: 700px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white, #fff);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    overflow: visible;
  }

  .site-header .nav-row {
    position: static;
    min-height: 76px;
  }

  .site-header .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 116px;
    min-height: 52px;
    font-size: 1rem;
    cursor: pointer;
  }

  #nav.nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: calc(100vh - 76px);
    height: calc(100dvh - 76px);
    max-height: none;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 7px;
    padding: 18px 22px max(50px, env(safe-area-inset-bottom));
    background: var(--white, #fff);
    box-shadow: 0 20px 40px rgba(31, 25, 48, .14);
    z-index: 1001;
  }

  #nav.nav.open { display: flex; }

  #nav.nav .nav-dropdown {
    display: block;
    position: static;
    width: 100%;
    flex: 0 0 auto;
  }

  #nav.nav .nav-drop-trigger,
  #nav.nav > a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    font-size: 1.04rem;
    line-height: 1.4;
    padding: 13px 10px;
    border-radius: 10px;
  }

  #nav.nav .nav-submenu {
    display: none;
    position: static;
    width: 100%;
    min-width: 0;
    max-height: none;
    margin: 0 0 9px;
    padding: 3px 0 7px 12px;
    box-sizing: border-box;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  #nav.nav .nav-dropdown.expanded > .nav-submenu {
    display: block;
  }

  #nav.nav .nav-submenu a {
    display: block;
    width: 100%;
    padding: 12px 12px;
    font-size: .96rem;
    line-height: 1.35;
    white-space: normal;
  }

  #nav.nav .lang-toggle,
  #nav.nav .theme-toggle {
    flex: 0 0 auto;
    align-self: flex-start;
  }
}


/* ===== Logos des réseaux : fichiers SVG locaux ===== */
.footer-social-icon img {
  display: block;
  width: 19px;
  height: 19px;
  object-fit: contain;
}
.footer-social-bluesky { color: #0085ff; }
.footer-social-hal { color: #a85b35; }
.footer-hal { font-size: .56rem; letter-spacing: -.02em; }


/* ===== Crédits du site ===== */
.footer-credits {
  padding-top: 4px;
  padding-bottom: 16px;
  font-size: 0.68rem;
  font-style: italic;
  color: var(--muted, #777);
  text-align: center;
  opacity: 0.75;
}

.footer-credits a {
  color: inherit;
  text-decoration: none;
}

.footer-credits a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 1;
}



/* ===== Ressources p&#233;dagogiques et correction cross-browser ===== */
.resource-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.resource-card{display:flex;flex-direction:column;min-width:0;gap:12px;padding:26px 28px;background:var(--white);color:var(--ink);border:1px solid var(--line);border-radius:22px}
.resource-card h3{margin:0;font-size:1.22rem}.resource-card p{color:var(--muted);font-size:.94rem;margin:0 0 6px}
.resource-type{font-size:.75rem;font-weight:700;color:var(--purple)}
.resource-link,.resource-download{width:max-content;max-width:100%;color:var(--purple);font-size:.86rem;font-weight:700;text-decoration:none}
.resource-link{margin-top:auto}.resource-download{font-weight:500}.resource-link:hover,.resource-download:hover{text-decoration:underline}
.footer-professional{text-align:center;padding:8px 0 5px;font-size:.73rem;font-style:normal;color:var(--muted);opacity:.9}
.footer-professional a{color:inherit;text-decoration:none}.footer-professional a:hover{text-decoration:underline}
@media(max-width:700px){.resource-grid{grid-template-columns:1fr}.resource-card{padding:22px}}

/* #encadrement : couleurs explicites et identiques sur Firefox, Safari et Chrome.
   Le fond du summary ne doit pas differer du fond details. */
#encadrement .supervision details,
#encadrement .supervision details > summary {
  background-color:#fff !important;
  color:#332e42 !important;
  border-color:#e7e1ed !important;
  color-scheme:light;
  opacity:1 !important;
  -webkit-text-fill-color:currentColor;
}
#encadrement .supervision details > summary {
  display:list-item;
  list-style:disclosure-closed inside;
  border:0 !important;
  padding:0;
  margin:0;
  cursor:pointer;
  font-weight:700;
}
#encadrement .supervision details[open] > summary{list-style:disclosure-open inside}
#encadrement .supervision details > p{color:#686376 !important;-webkit-text-fill-color:currentColor}
:root[data-theme="dark"] #encadrement .supervision details,
:root[data-theme="dark"] #encadrement .supervision details > summary {
  background-color:#282432 !important;
  color:#f3eefb !important;
  border-color:#50445f !important;
  color-scheme:dark;
}
:root[data-theme="dark"] #encadrement .supervision details > p{color:#cfc6dc !important}
@media(prefers-color-scheme:dark){
  :root:not([data-theme="light"]) #encadrement .supervision details,
  :root:not([data-theme="light"]) #encadrement .supervision details > summary {
    background-color:#282432 !important;
    color:#f3eefb !important;
    border-color:#50445f !important;
    color-scheme:dark;
  }
  :root:not([data-theme="light"]) #encadrement .supervision details > p{color:#cfc6dc !important}
}


/* ===== Correction du mode sombre : Encadrements, Firefox et Safari ===== */
/* #encadrement : couleurs explicites et identiques sur Firefox, Safari et Chrome.
   Le fond du summary ne doit pas differer du fond details. */
#encadrement .supervision details,
#encadrement .supervision details > summary {
  background-color:#fff !important;
  color:#332e42 !important;
  border-color:#e7e1ed !important;
  color-scheme:light;
  opacity:1 !important;
  -webkit-text-fill-color:currentColor;
}
#encadrement .supervision details > summary {
  display:list-item;
  list-style:disclosure-closed inside;
  border:0 !important;
  padding:0;
  margin:0;
  cursor:pointer;
  font-weight:700;
}
#encadrement .supervision details[open] > summary{list-style:disclosure-open inside}
#encadrement .supervision details > p{color:#686376 !important;-webkit-text-fill-color:currentColor}
:root[data-theme="dark"] #encadrement .supervision details,
:root[data-theme="dark"] #encadrement .supervision details > summary {
  background-color:#282432 !important;
  color:#f3eefb !important;
  border-color:#50445f !important;
  color-scheme:dark;
}
:root[data-theme="dark"] #encadrement .supervision details > p{color:#cfc6dc !important}
@media(prefers-color-scheme:dark){
  :root:not([data-theme="light"]) #encadrement .supervision details,
  :root:not([data-theme="light"]) #encadrement .supervision details > summary {
    background-color:#282432 !important;
    color:#f3eefb !important;
    border-color:#50445f !important;
    color-scheme:dark;
  }
  :root:not([data-theme="light"]) #encadrement .supervision details > p{color:#cfc6dc !important}
}

/* Contraste garanti même lorsque Firefox applique ses couleurs natives aux details. */
#encadrement .supervision details,
#encadrement .supervision details > summary,
#encadrement .supervision details > p { -webkit-appearance:none; appearance:none; }
#encadrement .supervision details > summary { list-style:none !important; }
#encadrement .supervision details > summary::-webkit-details-marker {display:none}
#encadrement .supervision details > summary::before {content:"▸";display:inline-block;color:inherit;margin-right:.65rem;transform-origin:center;transition:transform .18s}
#encadrement .supervision details[open] > summary::before {transform:rotate(90deg)}
#encadrement .supervision details > summary {padding:.2rem 0;white-space:normal;overflow-wrap:anywhere;}
#encadrement .supervision details {overflow:hidden;}

/* ===== Ressources : outil statistique reunifie ===== */
.resource-card-featured { grid-column:1 / -1; }
.resource-featured-content { display:grid;grid-template-columns:minmax(0,1.6fr) minmax(235px,.7fr);gap:26px;align-items:center;width:100%; }
.resource-card-featured .resource-type{display:block;margin-bottom:12px}
.resource-actions{display:flex;flex-direction:column;align-items:flex-start;gap:13px}
.resource-actions .resource-link{margin-top:0}
@media(max-width:700px){.resource-featured-content{grid-template-columns:1fr;gap:18px}}

/* Language information for original French source documents */
.language-source-note { font-size: .79rem; font-style: italic; color: var(--muted); margin: .65rem 0 0; }
.language-source-note[hidden] { display:none!important; }

/* Pied de page : le SIRET reste lisible et non italique, avant les inspirations. */
.site-footer .footer-professional,
.site-footer .footer-professional a {font-style:normal !important;}
