@font-face {
  font-family: "Sansation";
  font-weight: normal;
  font-style: normal;
  src: local("Sansation"), url("../fonts/Sansation/woff/Sansation_Regular.woff") format("woff"), url("../fonts/Sansation/ttf/Sansation_Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Sansation";
  font-weight: bold;
  font-style: normal;
  src: local("Sansation"), url("../fonts/Sansation/woff/Sansation_Bold.woff") format("woff"), url("../fonts/Sansation/ttf/Sansation_Bold.ttf") format("ttf");
}
@font-face {
  font-family: "Sansation";
  font-weight: normal;
  font-style: italic;
  src: local("Sansation"), url("../fonts/Sansation/woff/Sansation_Italic.woff") format("woff"), url("../fonts/Sansation/ttf/Sansation_Italic.ttf") format("truetype");
}
@font-face {
  font-family: "Sansation";
  font-weight: bold;
  font-style: italic;
  src: local("Sansation"), url("../fonts/Sansation/woff/Sansation_Bold_Italic.woff") format("woff"), url("../fonts/Sansation/ttf/Sansation_Bold_Italic.ttf") format("truetype");
}
@font-face {
  font-family: "PROMETHEUS";
  font-weight: normal;
  font-style: normal;
  src: url("../fonts/Prometheus/eot/PROMETHEUS.eot");
  src: local("PROMETHEUS"), url("../fonts/Prometheus/eot/PROMETHEUS.eot?#iefix") format("embedded-opentype"), url("../fonts/Prometheus/woff2/PROMETHEUS.woff2") format("woff2"), url("../fonts/Prometheus/woff/PROMETHEUS.woff") format("woff"), url("../fonts/Prometheus/ttf/PROMETHEUS.ttf") format("truetype");
}


:root {
  --ink: #202b35;
  --muted: #52616d;
  --paper: #ffffff;
  --card: #ffffff;
  --accent: #BBB;
  --accent-light: #65FFFF;
  --grey-light: #EEE;
  --grey-middle: #DDD;
  --color-grey:#555; 
  --border: #bcc;
  --shadow: 0 8px 24px rgba(25, 48, 58, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0 0 48px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Sansation", Verdana, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}

a { color: #006b78; text-decoration: underline; text-underline-offset: 3px; }
a:hover, a:focus-visible { color: #004c56; text-decoration-thickness: 2px; }

.partner-logos {
  display: flex;
  justify-content: left;
  align-items: left;
  flex-wrap: wrap;
  gap: 18px 30px;
  margin: 0 auto 18px;
}

.logos { display: block; width: auto; max-width: min(28vw, 180px); height: 42px; object-fit: contain; }

h1 {
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 14px;
  margin: 8px 0 10px;
  color: var(--accent-light);
  font-family: "Sansation", Verdana, sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: 0.025em;
}

.main-logo { display: block; width: clamp(54px, 7vw, 80px); height: auto; }

h2 {
  margin: 0;
  font-family: "Sansation", Verdana, sans-serif;
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  font-weight: 400;
  line-height: 1.35;
}

h3 {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: "Sansation", Verdana, sans-serif;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.3;
}

.definition {
  max-width: 900px;
  margin: 0 auto 28px;
  padding: 18px 22px;
  color:white;
}

.page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  justify-content: center;
  gap: clamp(16px, 2vw, 26px);
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 clamp(14px, 3vw, 44px);
}




.theme {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: none;
  overflow: hidden;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0 20px 0 30px;
  box-shadow: var(--shadow);
  text-align: left;
}

.theme-video {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 920px;
  justify-self: center;
  padding-bottom: 0;
}

.theme_bandeau {
  padding: 12px 18px;
  color: #000;
  background: var(--grey-middle);

  font-family: "Sansation", Verdana, sans-serif;
  font-size: 1.15rem;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.theme_contenu {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 22px;
  text-align: left;
}

.theme_contenu p { margin: 0; font-size: 0.98rem; }
.theme_contenu p + p { margin-top: 2px; }
.theme_contenu br + br { display: none; }

.video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 8px;
  background: #e7edef;
}

.theme-video .video { border-radius: 0; }

.illustration {
  display: block;
  width: auto;
  max-width: 82%;
  max-height: 230px;
  height: auto;
  margin: 8px auto;
  object-fit: contain;
}

.illustration-spirale { max-width: 70%; }
.illustration-boites { max-height: 190px; }
.book-link { display: block; float: right; margin: 0 0 12px 16px; }
.book-image { display: block; width: auto; max-width: 130px; max-height: 190px; object-fit: contain; }
.link-icon { display: inline-block; width: auto; height: 24px; margin-right: 5px; vertical-align: middle; }

.theme_contenu > p a { font-weight: 600; }
.theme_contenu > p:last-child { margin-bottom: 0; }

@media (min-width: 1050px) {
  .theme { flex-basis: 360px; }
  .theme-video { flex-basis: 100%; }
}

@media (max-width: 650px) {
  body { padding: 16px 12px 30px; font-size: 15px; }
  .partner-logos { gap: 12px 18px; margin-bottom: 16px; }
  .logos { height: 32px; max-width: 27vw; }
  h1 { gap: 9px; margin-bottom: 14px; }
  .definition { margin-bottom: 18px; padding: 15px; }
  .page { grid-template-columns: 1fr; gap: 15px; }
  .theme, .theme-video { width: 100%; max-width: none; }
  .theme-video { grid-column: auto; }
  .theme_contenu { padding: 18px; gap: 11px; }
  .theme_bandeau { padding: 11px 14px; font-size: 1.05rem; }
  .illustration { max-width: 90%; max-height: 210px; }
  .book-image { max-width: 100px; max-height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}



/* Styles complémentaires pour la page du livre */
.page-livre { align-items: stretch; }
.page-livre .theme { max-width: 440px; }
.page-livre .theme-couverture { flex-basis: 280px; max-width: 340px; }
.page-livre .theme-presentation { flex-basis: 380px; }
.page-livre .theme-sommaire { flex-basis: 340px; }
.page-livre .theme-extraits { flex-basis: 340px; }
.contenu-couverture { align-items: center; }
.livre-logo { display: block; width: min(100%, 250px); height: auto; margin: 0 auto 8px; }
.livre-couverture { display: block; width: 100%; max-width: 340px; height: auto; object-fit: contain; }
.livre-points { margin: 8px 0; padding: 16px 12px; text-align: center; background: var(--accent-light); border-radius: 10px; }
.livre-points p { font-weight: 700; }
.livre-points .point-secondaire { color: #52616d; }
.livre-points .point-tertiaire { color: #6f7c84; font-weight: 400; }
.livre-achat { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: auto; padding: 12px; background: var(--accent-light); border: 1px solid #c6e7e8; border-radius: 10px; font-weight: 700; text-align: left; }
.livre-achat img { width: 42px; height: 42px; object-fit: contain; }
.theme-sommaire .theme_contenu { gap: 9px; }
.theme-sommaire h3 { margin-top: 8px; }
.theme-sommaire ul { margin: 0; padding-left: 22px; }
.theme-sommaire li { margin: 0 0 5px; font-size: .96rem; }
.livre-extraits { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 10px; }
.livre-extraits a { flex: 0 1 28%; min-width: 72px; }
.livre-extraits img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 4px; }
.livre-librairie { display: block; align-self: center; margin: 12px auto 0; }
.livre-librairie img { display: block; width: min(150px, 60vw); height: auto; }
@media (max-width: 650px) {
  .page-livre .theme, .page-livre .theme-couverture, .page-livre .theme-presentation,
  .page-livre .theme-sommaire, .page-livre .theme-extraits { flex: 1 1 100%; max-width: none; }
  .livre-couverture { max-width: 280px; }
  .livre-extraits a { flex-basis: 27%; }
}




/* Présentation des auteurs */
.auteurs-liste {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.auteur {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.auteur-photo {
  display: block;
  width: 100px;
  height: 100px;
  flex: 0 0 100px;
  object-fit: cover;
  border-radius: 50%;
}
.auteur-logo {
  object-fit: contain;
  border-radius: 0;
}
.auteur-texte {
  flex: 1;
  min-width: 0;
}
.auteur-texte p {
  margin-top: 0;
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .auteur { gap: 0.75rem; }
  .auteur-photo { width: 76px; height: 76px; flex-basis: 76px; }
}


/* Styles complémentaires à autofocus/styles.css pour la page du podcast. */
.podcast-page {
  max-width: 1500px;
  margin: 0 auto;
}

.podcast-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 30%) minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: 1500px;
  min-height: 40vh;
  margin: 0 auto 30px;
  padding: 30px clamp(22px, 4vw, 60px) 30px clamp(72px, 7vw, 105px);
  color: #fff;
  background: var(--color-grey);
  border-radius: 0 0 0 22px;
  text-align: left;
}

.podcast-header::before {
  content: "RESSOURCES A SECONDE VUE";
  position: absolute;
  top: 50%;
  left: 22px;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  white-space: nowrap;
}

.podcast-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0;
}

.podcast-logo {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
}

.podcast-heading {
  min-width: 0;
  align-self: center;
}

.podcast-header h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: 1.15;
}

.podcast-header .podcast-definition {
  max-width: 850px;
  margin: 0;
  padding: 0;
  color: #fff;
}

.podcast-definition h2 {
  color: #fff;
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  line-height: 1.45;
}


.podcast-rss {
  position: absolute;
  top: 14px;
  right: 18px;
  display: block;
  z-index: 2;
}

.podcast-rss img {
  display: block;
  width: 30px;
  height: auto;
}

.podcast-entretien {
  background: var(--accent);

}




.podcast-intro {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
}

.episode-card {
  width: 100%;
  max-width: none;
  min-width: 0;
  flex: initial;
  background: var(--grey-light);
}

.episode-card .theme_bandeau {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 12px;
  text-align: left;
}

.episode-type {
  display: inline-block;
  padding: 3px 8px;
  color: #07545c;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--accent-light);
  border-radius: 999px;
  font-family: Verdana, Arial, sans-serif;
  font-size: 0.72rem;
  text-transform: none;
  letter-spacing: 0;
}

.podcast-details {
  border: 1px solid var(--border, #dce5e8);
  border-radius: 8px;
  background: #f8fbfb;
}

.podcast-details summary {
  padding: 10px 12px;
  color: #006b78;
  cursor: pointer;
  font-weight: 600;
}

.podcast-description {
  padding: 0 12px 12px;
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

.podcast-description > :first-child { margin-top: 0; }
.podcast-description > :last-child { margin-bottom: 0; }

.episode-description {
  font-size: 0.96rem;
  overflow-wrap: anywhere;
}

.episode-upcoming {
  align-self: flex-start;
  margin: 0;
  padding: 5px 10px;
  color: #8b3e00;
  background: #fff1df;
  border-radius: 6px;
  font-size: 0.82rem !important;
  font-weight: 700;
  text-transform: uppercase;
}

.episode-player {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.episode-player audio {
  display: block;
  width: 100%;
  min-width: 0;
}

.playback-speed {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}

.playback-speed span { margin-right: auto; }

.speed-button {
  min-width: 38px;
  min-height: 36px;
  padding: 5px 12px;
  color: #064c55;
  background: #ccc;
  border: 1px solid var(--border, #dce5e8);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.speed-button:hover,
.speed-button:focus-visible {
  background: #c6e7e8;
}

.podcast-error {
  width: 100%;
  padding: 18px;
  color: #842029;
  background: #f8d7da;
  border-radius: 10px;
}

@media (max-width: 760px) {
  .podcast-header {
    grid-template-columns: minmax(90px, 28%) minmax(0, 1fr);
    gap: 18px;
//    min-height: 180px;
    margin-bottom: 20px;
    padding: 22px 18px 22px 58px;
  }

  .podcast-header::before {
    left: 16px;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .podcast-logo { max-width: 100%; max-height: 115px; }
  .podcast-header h1 { font-size: clamp(1.65rem, 5vw, 2.4rem); }
  .podcast-definition h2 { font-size: 1rem; }
  .podcast-grid { grid-template-columns: 1fr; }
  .podcast-intro { grid-column: auto; }
  .episode-card, .podcast-intro { width: 100%; max-width: none; }
  .episode-card .theme_bandeau { align-items: flex-start; }
}

@media (max-width: 480px) {
  .podcast-header {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    padding: 22px 16px 22px 48px;
    text-align: center;
  }

  .podcast-header::before {
    left: 12px;
    font-size: 0.64rem;
    letter-spacing: 0.08em;
  }

  .podcast-brand { justify-content: center; }
  .podcast-logo { max-height: 90px; }
  .podcast-header h1 { margin-bottom: 8px; }
  .podcast-header .podcast-definition { text-align: center; }
}



/* Ajustements des pages utilisant des cartes de largeur spécifique */
@media (min-width: 1050px) {
  .page-livre {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-livre .theme-video {
    grid-column: 1 / -1;
  }
}

@media (max-width: 650px) {
  .page-livre {
    grid-template-columns: 1fr;
  }
}
