/* ==========================================================================
   Design Tokens & Base — partagé par tout le site
   ========================================================================== */

/* ==========================================================================
   Split Layout — 35/65
   ========================================================================== */

.split-media {
  position: fixed;
  top: 0;
  right: 0;
  width: 65%;
  height: 100vh;
  background: #f0eeec;
  z-index: 0;
  overflow: hidden;
}
.split-media img,
.split-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split-media .slideshow {
  width: 100%;
  height: 100%;
  position: relative;
}
.split-media .slideshow img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.split-media-credit {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  font-size: var(--text-2xs);
  color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.25);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  pointer-events: none;
  z-index: 2;
}
.split-media .slideshow img.active {
  opacity: 1;
}

/* Diaporama : curseur chevron ‹ / › selon la moitié survolée */
.split-media .slideshow.has-nav { cursor: pointer; }
.split-media .slideshow.has-nav.nav-prev {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M24 8 L12 20 L24 32' fill='none' stroke='%23000' stroke-opacity='.35' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M24 8 L12 20 L24 32' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 20 20, w-resize;
}
.split-media .slideshow.has-nav.nav-pause {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M15 11v18M25 11v18' fill='none' stroke='%23000' stroke-opacity='.35' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M15 11v18M25 11v18' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") 20 20, pointer;
}
.split-media .slideshow.has-nav.nav-pause.is-paused {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M15 10l14 10-14 10z' fill='none' stroke='%23000' stroke-opacity='.35' stroke-width='5' stroke-linejoin='round'/%3E%3Cpath d='M15 10l14 10-14 10z' fill='%23fff' stroke='%23fff' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 20 20, pointer;
}
.split-media .slideshow.has-nav.nav-next {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M16 8 L28 20 L16 32' fill='none' stroke='%23000' stroke-opacity='.35' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M16 8 L28 20 L16 32' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 20 20, e-resize;
}

/* Image temporaire (survol d'un projet, épisode de podcast) */
.split-media .split-media-override {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.split-media .split-media-override.is-shown { opacity: 1; }
.split-media .split-media-override-credit { display: none; }
.split-media.is-overriding .split-media-credit { visibility: hidden; }
.split-media.is-overriding.has-override-credit .split-media-override-credit {
  display: block;
  visibility: visible;
}

.split-content {
  position: relative;
  width: 35%;
  min-height: 100vh;
  padding: 4rem 3rem 1.5rem;
  background: #fff;
}

/* Sticky header */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  padding: 1.25rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-bottom: 1px solid var(--color-rule);
}
.sticky-header.visible {
  transform: translateY(0);
}
.sticky-header .logo {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking);
  color: var(--color-text);
  text-decoration: none;
}
.sticky-header .logo:hover {
  opacity: 0.5;
}
/* Menu toggle (hamburger) — top-right, hidden when header visible */
.menu-toggle {
  position: fixed;
  top: 1.5rem;
  right: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  width: 26px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  z-index: 1001;
  transition: opacity 0.3s, visibility 0.3s;
}
/* Même style que les chevrons du diaporama : trait blanc arrondi + contour
   sombre léger, lisible sur photo claire comme sombre */
/* Zone tactile de 44 px autour des trois traits : au doigt, on ne touche
   plus la photo (qui changerait) en visant le menu */
.menu-toggle::before {
  content: '';
  position: absolute;
  top: -13px;
  bottom: -13px;
  left: -9px;
  right: -9px;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, opacity 0.2s, background 0.2s, box-shadow 0.2s;
  transform-origin: center center;
}

/* Menu ouvert (barre ou plein écran blanc) : croix foncée, sans contour */
.menu-toggle.open span {
  background: var(--color-text);
  box-shadow: none;
}
.menu-toggle.open span:first-child {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:last-child {
  transform: translateY(-8px) rotate(-45deg);
}
.menu-toggle.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: none;
}

.sticky-header nav {
  display: flex;
  gap: 1.5rem;
  transition: padding-right 0.3s;
}
.burger-visible .sticky-header nav {
  padding-right: 3.5rem;
}
.sticky-header nav a {
  font-size: var(--text-xs);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--tracking);
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.3s;
}
.sticky-header nav a:hover {
  color: var(--color-text);
}
.sticky-header nav a[aria-current="page"] {
  color: var(--color-text);
}

/* Breadcrumb */
.breadcrumb {
  font-size: var(--text-2xs);
  color: var(--color-muted);
  margin-bottom: 1rem;
}
.breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--color-text);
}
.breadcrumb-sep {
  margin: 0 0.4rem;
  opacity: 0.4;
}
.breadcrumb-current {
  color: var(--color-text);
}

/* Split sections */
.split-section {
  padding: 3.5rem 0;
  margin: 0 -3rem;
  padding-left: 3rem;
  padding-right: 3rem;
  border-top: 1px solid var(--color-rule);
}
.split-section:first-of-type {
  border-top: none;
  padding-top: 0;
}
.split-section.no-border {
  border-top: none;
  padding-top: 1.5rem;
}

/* Split footer */
.split-footer {
  padding: 4rem 0 0 0;
  margin: 0 -3rem;
  padding-left: 3rem;
  padding-right: 3rem;
  border-top: 1px solid var(--color-rule);
}

/* Split intro text */
.split-intro {
  font-size: 1.25rem;
  line-height: var(--leading-body);
  overflow-wrap: break-word; /* filet de sécurité : jamais de mot qui déborde */
}
.split-intro p { margin-bottom: 1.25rem; }
.split-intro ul,
.split-intro ol {
  padding-left: 1.2em;
  margin-bottom: 1.25rem;
}
.split-intro li { margin-bottom: 0.4em; }
.split-intro li:last-child { margin-bottom: 0; }
.split-intro a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--color-rule);
  transition: text-decoration-color 0.3s;
}
.split-intro a:hover {
  text-decoration-color: var(--color-text);
}

/* Content blocks — shared heading/paragraph/list styles */
.page-content h2,
.project-content h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 3rem 0 1rem;
  letter-spacing: -0.01em;
  line-height: var(--leading-tight);
}
.page-content h2:first-child,
.project-content h2:first-child {
  margin-top: 0;
}
.page-content h3,
.project-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 2.5rem 0 0.6rem;
}
/* Intertitre suivi d'un bloc qui commence lui-même par un titre (FAQ) :
   pas de double espace */
.page-content :is(h2, h3) + div > :first-child,
.project-content :is(h2, h3) + div > :first-child {
  margin-top: 0;
}
.page-content p,
.project-content p {
  font-size: var(--text-xs);
  line-height: var(--leading-body);
  margin-bottom: 1rem;
}
.page-content ul,
.project-content ul,
.page-content ol,
.project-content ol {
  font-size: var(--text-xs);
  line-height: var(--leading-body);
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}
.page-content li,
.project-content li {
  margin-bottom: 0.35rem;
}
/* Les listes du Panel mettent chaque élément dans un <p> : sans ceci,
   la marge du paragraphe s'ajoute entre chaque ligne de la liste */
.split-content li > p {
  margin-top: 0;
  margin-bottom: 0;
}
.page-content ul li,
.project-content ul li {
  list-style: disc;
}
.page-content ol li,
.project-content ol li {
  list-style: decimal;
}
.page-content a,
.project-content a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-color: var(--color-rule);
  transition: text-decoration-color 0.3s;
}
.page-content a:hover,
.project-content a:hover {
  text-decoration-color: var(--color-text);
}

/* Podcast list — simple style */
.podcast-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.podcast-item {
  padding: 1.25rem 0;
}
.podcast-item:first-child {
  padding-top: 0;
}
.podcast-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.podcast-desc {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-bottom: 0.6rem;
}
.audio-player audio,
.episode-player audio {
  width: 100%;
  max-width: 100%;
  height: 36px;
}

/* Projects table — full bleed dans split */
.split-content .projects-table {
  width: calc(100% + 6rem);
  margin-left: -3rem;
}
.split-content .projects-table td:first-child {
  width: 58%;
  padding-left: 3rem;
  padding-right: 1rem;
}
/* Localité : peut passer à la ligne, toujours un espace avant l'année */
.split-content .projects-table td:nth-child(2) {
  width: 34%;
  padding-right: 1.25rem;
}
/* Année : juste la place de ses 4 chiffres, jamais coupée */
.split-content .projects-table td:last-child {
  width: 1%;
  white-space: nowrap;
  text-align: right;
  padding-right: 3rem;
}

/* Mobile */
@media (max-width: 900px) {
  .split-media {
    position: relative;
    width: 100%;
    height: 50vh;
  }
  .split-content {
    width: 100%;
    max-width: 100vw;
    padding: 2.5rem 1.5rem 1.5rem;
    overflow-x: hidden;
  }

  /* Menu toggle always visible on mobile */
  .menu-toggle {
    position: fixed !important;
    top: 1.25rem;
    right: 1.5rem;
    z-index: 1002;
    transition: none;
  }
  .menu-toggle.hidden {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: none;
  }

  /* Full-screen mobile menu overlay */
  .sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
    border-bottom: none;
    pointer-events: none;
  }
  /* On mobile, only show when menu-open class is set (not on scroll) */
  .sticky-header.visible {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
  }
  .sticky-header.menu-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .sticky-header .logo {
    font-size: 1.25rem;
    margin-bottom: 3rem;
  }
  .sticky-header nav {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-right: 0 !important;
  }
  .sticky-header nav a {
    font-size: 1.25rem;
    padding: 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: var(--tracking);
    color: var(--color-text);
  }
  .sticky-header nav a[aria-current="page"] {
    font-weight: 700;
  }

  /* Page title smaller on mobile */
  .page-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 2rem;
  }

  /* Breadcrumb */
  .breadcrumb {
    margin-bottom: 1.5rem;
  }

  /* Footer grid stack on mobile */
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid .footer-mentions {
    grid-column: auto;
  }

  /* Credit position on mobile */
  .split-media-credit {
    bottom: 0.5rem;
    right: 0.5rem;
  }

  /* Reset projects table on mobile */
  .split-content .projects-table {
    width: 100%;
    margin-left: 0;
  }
  .split-content .projects-table td:first-child {
    padding-left: 0;
    width: auto;
  }
  .split-content .projects-table td:last-child {
    padding-right: 0;
  }

  .projects-table tr:hover {
    opacity: 1;
  }
}

:root {
  --text-title: clamp(1.75rem, 2.5vw, 2.5rem);
  --text-body: 1.125rem;
  --text-sm: 1rem;
  --text-xs: 0.875rem;
  /* mentions discrètes : crédit photo, fil d'Ariane, temps du lecteur,
     signature, pastille « Modifier » — une seule petite taille */
  --text-2xs: 0.75rem;
  --leading-tight: 1.1;
  --leading-body: 1.6;
  --tracking: 0;
  --color-text: #111;
  --color-muted: #555;
  --color-rule: #e0e0e0;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body, button, input, textarea {
  font-family: 'TeX Gyre Heros', Helvetica, Arial, sans-serif;
  color: var(--color-text);
}

body {
  min-height: 100vh;
  background: #fff;
}

/* ==========================================================================
   Composants partagés
   ========================================================================== */

/* Page title */
.page-title {
  font-size: var(--text-title);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}
.page-subtitle {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-top: -2.5rem;
  margin-bottom: 2rem;
}

/* Contact grid */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-item strong {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking);
  margin-bottom: 0.25rem;
}
.contact-item a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-rule);
  transition: border-color 0.3s;
}
.contact-item a:hover {
  border-color: var(--color-text);
}

/* Note/list items */
.note-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-rule);
}
.note-item:last-child {
  border-bottom: none;
}
.note-item a {
  color: var(--color-text);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  transition: opacity 0.2s;
}
.note-item a:hover {
  opacity: 0.6;
}
.note-item h2 {
  font-size: var(--text-sm);
  font-weight: 400;
}
.note-item time {
  font-size: var(--text-xs);
  color: var(--color-muted);
}
.note-date {
  font-size: var(--text-xs);
  color: var(--color-muted);
  display: block;
  margin-top: 1rem;
}

/* Project/episode navigation */
.project-nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.project-nav-link {
  font-size: var(--text-xs);
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.3s;
}
.project-nav-link:hover {
  color: var(--color-text);
}

/* Project detail */
.project-code {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-muted);
  margin-bottom: 1rem;
}
.project-meta {
  font-size: var(--text-xs);
  color: var(--color-muted);
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.project-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Episode meta */
.episode-meta {
  font-size: var(--text-xs);
  color: var(--color-muted);
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.episode-player {
  margin-top: 1rem;
}
.episode-player audio {
  width: 100%;
}

/* Filter tags */
.filter-tag {
  font-size: var(--text-xs);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--tracking);
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--color-rule);
  background: none;
  cursor: pointer;
  color: var(--color-muted);
  text-decoration: none;
  transition: all 0.2s;
}
.filter-tag:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}
.filter-tag.active {
  background: var(--color-text);
  border-color: var(--color-text);
  color: #fff;
}

/* Section label */
.section-label {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking);
  color: var(--color-text);
  margin-bottom: 2rem;
}

/* Section header avec lien */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
/* « Voir tous les projets → » : toujours calé à droite, même sur deux lignes */
.section-header .section-link {
  text-align: right;
}
.section-header .section-label {
  margin-bottom: 0;
}
.section-link {
  color: var(--color-muted);
  text-decoration: none;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking);
  transition: color 0.3s;
}
.section-link:hover {
  color: var(--color-text);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.testimonials-grid.fade-out {
  opacity: 0;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
}
.testimonial-text {
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  margin-bottom: 0.75rem;
}
.testimonial-author {
  font-size: var(--text-xs);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--tracking);
  color: var(--color-muted);
}

/* Testimonials / Pagination nav */
.testimonials-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 1.5rem;
}
.testimonials-dots {
  display: flex;
  gap: 0.4rem;
}
.testimonials-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-rule);
  cursor: pointer;
  transition: background 0.3s;
}
.testimonials-dots span.active {
  background: var(--color-text);
}
.testimonials-nav {
  display: flex;
  gap: 0.5rem;
}
.testimonials-nav button {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--color-rule);
  background: none;
  cursor: pointer;
  font-size: var(--text-xs);
  color: var(--color-muted);
  transition: all 0.3s;
}
.testimonials-nav button:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

/* Projects table */
.projects-table {
  width: 100%;
  border-collapse: collapse;
}
.projects-table tr {
  border-bottom: 1px solid var(--color-rule);
  cursor: pointer;
  transition: opacity 0.2s;
}
.projects-table tr:last-child,
.projects-table tr.last-visible {
  border-bottom: none;
}
.projects-table tr:hover { opacity: 0.6; }
/* Fiche en cours d'encodage : grisée, non cliquable */
.projects-table tr.is-in-progress { cursor: default; }
.projects-table tr.is-in-progress td { color: var(--color-muted); opacity: 0.45; }
.projects-table tr.is-in-progress:hover { opacity: 1; }
.projects-table td {
  padding: 0.6rem 0;
  font-size: var(--text-xs);
  vertical-align: baseline;
}
.projects-table a { color: var(--color-text); text-decoration: none; }

/* Audio player : conteneur (le lecteur lui-même est .pc-player, plus bas) */
.audio-player {
  margin-top: auto;
  padding-top: 0.75rem;
}

.podcast-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: stretch;
  margin-top: 1.5rem;
}
.podcast-card {
  background: #fff;
  border: 1px solid var(--color-rule);
  display: flex;
  flex-direction: column;
}
.podcast-content {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.podcast-title {
  font-size: var(--text-sm);
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  line-height: var(--leading-tight);
}
.podcast-title a {
  color: var(--color-text);
  text-decoration: none;
  transition: opacity 0.2s;
}
.podcast-title a:hover {
  opacity: 0.6;
}
.podcast-desc {
  font-size: var(--text-xs);
  color: var(--color-muted);
  line-height: 1.4;
  margin: 0;
  flex: 1;
}
/* Liens dans la description d'un épisode (liste du podcast) : même style
   que les liens du texte du site (la page de l'épisode l'a déjà) */
.podcast-desc a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--color-rule);
  transition: text-decoration-color 0.3s;
}
.podcast-desc a:hover {
  text-decoration-color: var(--color-text);
}
.podcast-intro {
  font-size: var(--text-sm);
  margin-bottom: 2rem;
  color: var(--color-text);
  line-height: var(--leading-body);
}
.podcast-intro p { margin: 0; }

/* Footer */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
}
.footer-grid .footer-column:first-child {
  grid-column: 1 / -1;
}
.footer-grid .footer-mentions {
  grid-column: 1 / -1;
}
.footer-column {
  font-size: var(--text-xs);
  line-height: var(--leading-body);
  color: var(--color-text);
}
.footer-column p {
  margin-bottom: 0;
  min-height: 1.5em;
}
.footer-column strong,
.footer-column b {
  font-weight: 700;
}
.footer-column a,
.footer-mentions a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-rule);
  transition: border-color 0.3s;
}
.footer-column a:hover,
.footer-mentions a:hover {
  border-color: var(--color-text);
}
.footer-mentions {
  font-size: var(--text-xs);
  color: var(--color-text);
  line-height: var(--leading-body);
}
.footer-mentions p { margin: 0; }

/* Signature discrète du studio */
.footer-signature {
  margin-top: 2.5rem;
  font-size: var(--text-2xs);
  color: var(--color-muted);
  opacity: 0.7;
}
.footer-signature a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-signature a:hover { color: var(--color-text); }

/* Image lazy load — fade in once loaded */
.img-lazy {
  opacity: 0;
  background: #f0f0f0;
  transition: opacity 0.4s ease;
}
.img-lazy.is-loaded {
  opacity: 1;
}
.split-media .img-lazy {
  background: #e8e8e8;
}

/* Intertitres du texte d'intro (FAQ…) */
.split-intro h2,
.split-intro h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: var(--leading-tight);
  margin: 2.25rem 0 0.6rem;
}
.split-intro h2:first-child,
.split-intro h3:first-child { margin-top: 0; }

/* Bloc Texte style « Équipe » : liste sans puces ni retrait, une ligne par rôle */
.page-content .is-team ul,
.project-content .is-team ul,
.page-content .is-team ol,
.project-content .is-team ol {
  padding-left: 0;
}
.page-content .is-team li,
.project-content .is-team li {
  list-style: none;
  margin-bottom: 0.6rem;
}
.split-content .is-team li > p + p { margin-top: 0.4rem; }
/* Style de paragraphe « Ligne d'équipe » (menu ¶ du Panel), et paragraphes
   simples d'un bloc qui suit l'intertitre « Équipe » (VER19) : lignes serrées */
.split-content p.team,
.page-content .is-team > p,
.project-content .is-team > p {
  margin-bottom: 0.6rem;
}
.split-content p.team + :not(.team) {
  margin-top: 1rem;
}

/* Fiche projet : épisode de podcast lié, sous le texte d'intro */
.project-podcast .section-label {
  margin-bottom: 1rem;
}

/* Intertitres de rubrique des fiches projet (Équipe, Publications, Presse…) :
   style libellé de section */
.project-content h2.label-title,
.project-content h3.label-title {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking);
  line-height: inherit;
  margin-bottom: 1rem;
}

/* Vidéo YouTube / Vimeo dans la grande zone : remplit la zone comme une photo
   (recadrage 16:9 « cover », sans interaction) */
.split-media { container-type: size; }
.split-media-embed {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.split-media-embed iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100cqw, 177.78cqh);
  height: max(100cqh, 56.25cqw);
  transform: translate(-50%, -50%);
  border: 0;
}

/* Raccourci « Modifier » (personne connectée au Panel uniquement) : discret,
   en bas à gauche, s'affirme au survol */
.admin-edit {
  position: fixed;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 1003;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  font-size: var(--text-2xs);
  line-height: 1;
  color: #fff;
  background: rgba(17, 17, 17, 0.55);
  border-radius: 999px;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.2s, background 0.2s;
}
.admin-edit:hover,
.admin-edit:focus-visible {
  opacity: 1;
  background: rgba(17, 17, 17, 0.9);
}
.admin-edit span { display: none; }
.admin-edit:hover span,
.admin-edit:focus-visible span { display: inline; }
@media print { .admin-edit { display: none; } }

/* Diaporama accessible : bouton pause discret (en bas à gauche de la grande
   zone), boutons précédent / suivant visibles au clavier, focus visible */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.split-media .slideshow:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -6px;
}
.slideshow-controls {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  display: flex;
  gap: 0.4rem;
}
.slideshow-btn {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  /* même rendu que le menu ☰ : trait blanc + léger contour sombre */
  filter: drop-shadow(0 0 1.25px rgba(0, 0, 0, 0.6));
  transition: background 0.2s;
}
.slideshow-btn:hover,
.slideshow-btn:focus-visible { background: rgba(17, 17, 17, 0.35); }
.slideshow-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.slideshow-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.slideshow-btn .i-play { fill: currentColor; stroke: none; display: none; }
.slideshow-btn.is-paused .i-play { display: block; }
.slideshow-btn.is-paused .i-pause { display: none; }
/* précédent / suivant : seulement au clavier (la souris a les chevrons) */
/* boutons précédent / pause / suivant : visibles seulement au clavier (Tab) ;
   à la souris : zones gauche / milieu / droite de l'image */
.slideshow-btn {
  position: absolute;
  width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
.slideshow-btn:focus-visible {
  position: static;
  width: 2.25rem; height: 2.25rem; overflow: visible; clip: auto;
}
.split-media.is-overriding .slideshow-controls { visibility: hidden; }

/* Lecteur audio aux couleurs du site (construit par le JS de split-end) :
   bouton rond, barre fine, temps. Mêmes rendus Safari / Chrome / Firefox. */
.pc-player {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  color: var(--color-text);
}
.pc-play {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-text);
  border-radius: 50%;
  background: #fff;
  color: var(--color-text);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.2s, color 0.2s;
}
/* icônes centrées de façon absolue (même rendu sur tous les navigateurs) ;
   le triangle est dessiné centré sur son centre de gravité (centrage optique) */
.pc-play { position: relative; }
.pc-play svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  fill: currentColor;
}
.pc-play .pc-i-pause,
.pc-player.is-playing .pc-play .pc-i-play { display: none; }
.pc-player.is-playing .pc-play .pc-i-pause { display: block; }
.pc-player.is-playing .pc-play,
.pc-play:hover { background: var(--color-text); color: #fff; }
.pc-play:focus-visible,
.pc-seek:focus-visible { outline: 2px solid var(--color-text); outline-offset: 3px; }
.pc-time {
  flex: 0 0 auto;
  min-width: 5.5em;
  text-align: right;
  font-size: var(--text-2xs);
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}
/* barre : piste 1 px, partie écoutée 2 px (--p), repère rond */
.pc-seek {
  --p: 0%;
  flex: 1 1 auto;
  min-width: 0;
  height: 18px;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.pc-seek::-webkit-slider-runnable-track {
  height: 2px;
  border: 0;
  background: linear-gradient(to right, var(--color-text) var(--p), var(--color-rule) var(--p));
}
.pc-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border: 0;
  border-radius: 50%;
  background: var(--color-text);
}
.pc-seek::-moz-range-track { height: 1px; border: 0; background: var(--color-rule); }
.pc-seek::-moz-range-progress { height: 2px; background: var(--color-text); }
.pc-seek::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--color-text); }
.pc-seek:focus { outline: none; }
@media (max-width: 900px) {
  .pc-player { gap: 0.6rem; }
  .pc-play { width: 38px; height: 38px; }   /* cible tactile plus grande */
}

/* ===== Téléphone : vignettes d'épisodes, photos empilées (réglage Panel) ===== */
.pile-gallery,
.podcast-thumb { display: none; }
@media (max-width: 900px) {
  /* Vignettes d'épisodes : carré 80 px à gauche, texte et lecteur à droite */
  .podcast-item.has-thumb {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    column-gap: 0.9rem;
    align-items: start;
  }
  .podcast-item.has-thumb > * { grid-column: 2; }
  .podcast-item.has-thumb > .podcast-thumb {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 80px;
    height: 80px;
    object-fit: cover;
    display: block;
  }
  .podcast-item.has-thumb .audio-player { padding-top: 0.5rem; }

  /* Photos empilées : 1re photo en ouverture (diaporama coupé), les autres sous le texte */
  .mobile-pile .split-media .slideshow img:not(:first-child) { display: none; }
  .mobile-pile .split-media .slideshow img:first-child { opacity: 1; }
  .mobile-pile .pile-gallery { display: block; }
  .mobile-pile .pile-gallery figure { margin: 0 0 0.75rem; }
  .mobile-pile .pile-gallery img { display: block; width: 100%; height: auto; }
  .mobile-pile .pile-gallery figcaption {
    font-size: var(--text-2xs);
    color: var(--color-muted);
    margin-top: 0.25rem;
  }
}

/* Page 404 : chemins pour reprendre la visite */
.error-links { list-style: none; padding: 0; margin: 0; }
.error-links li { margin-bottom: 0.9rem; }
.error-links li:last-child { margin-bottom: 0; }
