/* ===========================
   VARIABLES & RESET
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink: #0e0d0b;
  --cream: #f5f0fa;
  --accent: #c4607a;
  --mid: #8a7090;
}

html {
  scroll-behavior: smooth;
  font-size: 112%;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 10;
  opacity: 0.6;
}


/* ===========================
   LAYOUT
   =========================== */
.page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 3fr;
}

.panel-photo {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #2d1b4e;
}

.panel-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  mix-blend-mode: luminosity;
  opacity: 0.92;
  transform: scale(1.04);
  transition: transform 8s ease;
}

.panel-photo:hover img {
  transform: scale(1.0);
}

.panel-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(155,95,207,0.35) 0%, rgba(200,64,26,0.15) 100%);
  mix-blend-mode: color;
  pointer-events: none;
}

.panel-content {
  padding: 5rem 4rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  position: relative;
}

.panel-content::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,64,26,0.07) 0%, transparent 70%);
  pointer-events: none;
}


/* ===========================
   HEADER / HERO
   =========================== */
.name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 0.2em;
  animation: fadeUp 0.9s ease 0.1s both;
}

.name span {
  display: block;
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}

.title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  font-weight: 300;
  color: var(--mid);
  letter-spacing: 0.01em;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  animation: fadeUp 1s ease 0.2s both;
  max-width: 48ch;
}

.rule {
  width: 3rem;
  height: 2px;
  background: var(--accent);
  margin-bottom: 1.5rem;
  animation: expandWidth 1s ease 0.3s both;
}


/* ===========================
   FORMATION + STATS CÔTE À CÔTE
   =========================== */
.formation-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.formation-stats-grid .section--major {
  margin-top: 2rem;
  border-top: none;
  padding-top: 0;
}

.formation-stats-grid .stats-row {
  flex-direction: column;
  gap: 0;
  margin-top: 2rem;
  margin-bottom: 0;
}

.formation-stats-grid .stat-item + .stat-item::before {
  top: 0;
  left: 15%;
  width: 70%;
  height: 1px;
  background: rgba(122, 106, 138, 0.2);
}

@media (max-width: 768px) {
  .formation-stats-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .formation-stats-grid .stats-row {
    flex-direction: row;
    margin-top: 0;
  }
  .formation-stats-grid .stat-item + .stat-item::before {
    top: 20%;
    left: 0;
    width: 1px;
    height: 60%;
  }
}


/* ===========================
   FORMATION
   =========================== */
.formation-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.formation-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
}

.formation-year {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.formation-desc {
  font-size: clamp(0.85rem, 0.95vw, 0.95rem);
  line-height: 1.6;
  color: #3a3530;
}


/* ===========================
   STATS
   =========================== */
.stats-row {
  display: flex;
  gap: 0;
  margin-bottom: 1.2rem;
  margin-top: -0.5rem;
  border: 1px solid rgba(122, 106, 138, 0.2);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.5);
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.2rem 0.8rem;
  position: relative;
  text-align: center;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(122, 106, 138, 0.2);
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 2.8vw, 2.8rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  font-weight: 500;
  line-height: 1.3;
}


/* ===========================
   SECTIONS
   =========================== */
.section {
  margin-top: 2rem;
  animation: fadeUp 1s ease 0.5s both;
}

.section--major {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(122, 106, 138, 0.15);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 1.9vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 2rem;
  display: block;
  position: relative;
  padding-left: 1rem;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.1em;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.section--centered .formation-list {
  text-align: center;
}


/* ===========================
   CARDS — FEATURED
   =========================== */
.balado-item--featured {
  background: white;
  border-left: 3px solid var(--accent);
  padding: 1.8rem 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.balado-item--featured .balado-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: start;
}

.balado-item--featured .balado-title,
.balado-item--secondary .balado-title-sm,
.radio-item .balado-title-sm {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.balado-item--featured .balado-award {
  flex-wrap: nowrap;
  align-items: center;
}

.balado-item--featured .award-text {
  width: auto;
}

.balado-cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}


/* ===========================
   CARDS — SECONDARY GRID
   =========================== */
.balado-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.balado-secondary-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 0;
}

.balado-secondary-grid + .balado-list,
.balado-secondary-grid + .balado-secondary-grid,
.balado-list + .balado-secondary-grid {
  margin-top: 2rem;
}

.balado-secondary-grid .balado-embed {
  padding: 0 1rem 1rem;
}

.balado-item--secondary {
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease;
}

.balado-item--secondary:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.balado-item--secondary .balado-inner-sm {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.balado-cover-sm {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* ===========================
   CARD BODY & META
   =========================== */
.balado-card-body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.balado-source {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.balado-role {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--mid);
  margin-bottom: 0.3rem;
}

.balado-years {
  font-size: 0.75rem;
  color: var(--mid);
  margin-bottom: 1rem;
}

.balado-desc {
  font-size: clamp(0.85rem, 0.95vw, 0.95rem);
  line-height: 1.75;
  color: #3a3530;
  margin-bottom: 0.8rem;
}

.balado-embed {
  margin-top: 1.2rem;
}

.balado-embed iframe {
  width: 100%;
  border-radius: 4px;
  display: block;
}

.balado-title a,
.balado-title-sm a {
  color: inherit;
  text-decoration: none;
  font: inherit;
}

.balado-title a:hover,
.balado-title-sm a:hover {
  opacity: 0.75;
}


/* ===========================
   AWARDS
   =========================== */
.balado-awards {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
  border: 1px solid #d9d0c4;
  border-radius: 5px;
  padding: 0.65rem 0.85rem;
  background: rgba(255,255,255,0.55);
}

.balado-awards::before {
  content: "🏅";
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1.4;
}

.balado-awards-inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.balado-award {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #5a4f45;
}

.award-text {
  width: 100%;
}

.award-year {
  font-size: 0.65rem;
  color: var(--mid);
  white-space: nowrap;
  flex-shrink: 0;
}

.award-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15em 0.5em;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.award-badge--gold,
.award-badge--argent {
  background: #f0e4c8;
  color: #7a5c1a;
}

.award-badge--nomination {
  background: #e8e4f0;
  color: #4a3a7a;
}

.award-badge--finaliste {
  background: #e0f0ec;
  color: #1a5a4a;
}

.award-badge--mention {
  background: #fef3e2;
  color: #7a4a00;
}


/* ===========================
   LIVRES
   =========================== */
.livres-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.livre-cover-wrap {
  width: 100%;
  height: 330px;
  background: #f0eaf5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.livre-cover-uniform {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .livres-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .livres-grid { grid-template-columns: 1fr; }
}


/* ===========================
   RADIO
   =========================== */
.radio-card {
  background: white;
  border-left: 3px solid var(--accent);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  overflow: hidden;
}

.radio-card-cover {
  width: 100%;
  background: #f26522;
  padding: 1.2rem 1.5rem;
}

.radio-logo-img {
  display: block;
  width: 33.5%;
  height: auto;
}

.radio-card-items {
  padding: 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.radio-item {
  padding-bottom: 1.5rem;
}

.radio-item--sep {
  padding-top: 1.5rem;
  padding-bottom: 0;
  border-top: 1px solid #ede8df;
}

.radio-shows-list {
  list-style: none;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.radio-shows-list li {
  font-size: clamp(0.82rem, 0.9vw, 0.9rem);
  line-height: 1.5;
  color: #3a3530;
  padding-left: 0.9rem;
  position: relative;
}

.radio-shows-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--mid);
}

.radio-show-years {
  color: var(--mid);
  font-size: 0.78rem;
}


/* ===========================
   JOURNALISME
   =========================== */
.journal-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-left: 0.9rem;
}

.journal-links-list li {
  position: relative;
}

.journal-links-list li::before {
  content: "–";
  position: absolute;
  left: -0.9rem;
  color: var(--mid);
}

.section--journalisme .balado-secondary-grid {
  margin-top: 1.5rem;
}

.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: inherit;
}

.inline-link:hover {
  opacity: 0.75;
}


/* ===========================
   GRILLE COMPACTE (Journalisme & TV)
   =========================== */
.balado-secondary-grid--compact {
  grid-template-columns: repeat(3, 1fr);
}

.balado-cover-sm--short {
  aspect-ratio: 3/1;
}

@media (max-width: 768px) {
  .balado-secondary-grid--compact { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .balado-secondary-grid--compact { grid-template-columns: 1fr; }
}


/* ===========================
   LECTEUR AUDIO
   =========================== */
.audio-player {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(196, 96, 122, 0.06);
  border-radius: 6px;
  border: 1px solid rgba(196, 96, 122, 0.2);
}

.audio-play-btn {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background 0.2s, transform 0.15s;
}

.audio-play-btn:hover {
  background: #a84d66;
  transform: scale(1.05);
}

.audio-play-btn svg {
  width: 1.7rem;
  height: 1.7rem;
}

.audio-progress-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.audio-progress-bar {
  position: relative;
  height: 4px;
  background: rgba(196, 96, 122, 0.2);
  border-radius: 2px;
  cursor: pointer;
}

.audio-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  pointer-events: none;
}

.audio-progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  transition: transform 0.1s;
}

.audio-progress-bar:hover .audio-progress-thumb {
  transform: translate(-50%, -50%) scale(1.3);
}

.audio-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--mid);
  letter-spacing: 0.05em;
}


/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes expandWidth {
  from { width: 0; opacity: 0; }
  to   { width: 3rem; opacity: 1; }
}


/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  .page { display: block; }

  .panel-photo {
    position: relative;
    height: 75vw;
    max-height: 420px;
    width: 100%;
  }

  .panel-photo img { object-position: center 20%; }

  .panel-content {
    padding: 2.5rem 1.5rem 3rem;
    min-height: unset;
  }

  .panel-content::before { display: none; }

  .name { font-size: clamp(2.8rem, 11vw, 4rem); }

  .title {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
  }

  .formation-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .balado-item--featured { padding: 1.4rem 1.2rem; }
}

@media (max-width: 600px) {
  .balado-item--featured .balado-inner { grid-template-columns: 1fr; }
  .balado-secondary-grid { grid-template-columns: 1fr; }
  .radio-card-items { padding: 1.4rem 1.2rem; }
  .radio-card-cover { padding: 1rem 1.2rem; }
  .stats-row { gap: 1.2rem; }
  .stat-number { font-size: 1.4rem; }
}

.balado-desc--mt {
  margin-top: 0.65rem;
}


/* ===========================
   ACCESSIBILITÉ
   =========================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
