/* ================================================================
   COMMON ARTICLE STYLES - EDITORIAL DESIGN
   Optimisé pour une lecture claire et agréable
   ================================================================ */

/* ================================================================
   CSS VARIABLES SPECIFIQUES AUX ARTICLES
   ================================================================ */
:root {
  --article-max-width: 720px;
  --article-wide-width: 900px;
  --article-line-height: 1.85;
  --article-font-size: 1.125rem;
  --article-heading-color: #1a2f1a;
  --article-text-color: #2d3748;
  --article-meta-color: #718096;
  --article-accent: var(--court-green, #1b4d3e);
  --article-accent-light: #e8f5e9;
  --article-border: #e2e8f0;
}

/* ================================================================
   READING PROGRESS BAR
   ================================================================ */
.reading-progress {
  position: fixed;
  top: 70px;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--article-accent), #4caf50);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ================================================================
   MAIN CONTAINER
   ================================================================ */
.container {
  max-width: var(--article-wide-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ================================================================
   ARTICLE HEADER - HERO SECTION
   ================================================================ */
header {
  background: linear-gradient(165deg, var(--article-accent) 0%, #0d2818 100%);
  color: #fff;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, rgba(255,255,255,0.1), transparent);
  pointer-events: none;
}

.hero {
  max-width: var(--article-wide-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

header h1 {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

header .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 24px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

header .meta::before {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--ball-yellow, #ffd700);
  margin-right: 8px;
}

.lead {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  max-width: 650px;
  margin: 0;
}

/* ================================================================
   MAIN CONTENT AREA
   ================================================================ */
main.container,
main {
  background: #fff;
  border-radius: 24px 24px 0 0;
  margin-top: -40px;
  position: relative;
  z-index: 2;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.08);
}

article {
  max-width: var(--article-max-width);
  margin: 0 auto;
  padding: 60px 24px 80px;
}

/* ================================================================
   TYPOGRAPHY - OPTIMIZED FOR READING
   ================================================================ */
article p {
  font-size: var(--article-font-size);
  line-height: var(--article-line-height);
  color: var(--article-text-color);
  margin-bottom: 1.75em;
  font-weight: 400;
  text-align: left;
  hyphens: auto;
}

article h2 {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  color: var(--article-heading-color);
  margin: 3rem 0 1.5rem;
  line-height: 1.25;
  position: relative;
  padding-bottom: 16px;
}

article h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--article-accent), transparent);
  border-radius: 2px;
}

article h2:first-child {
  margin-top: 0;
}

article h3 {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--article-heading-color);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

/* ================================================================
   DROP CAP - ELEGANT FIRST LETTER
   ================================================================ */
.drop-cap:first-letter {
  float: left;
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: 4.5rem;
  line-height: 0.8;
  font-weight: 700;
  color: var(--article-accent);
  margin: 0.05em 0.15em 0 0;
  padding: 0;
}

/* ================================================================
   HIGHLIGHT TEXT
   ================================================================ */
.highlight {
  background: linear-gradient(120deg, var(--article-accent-light) 0%, var(--article-accent-light) 100%);
  background-size: 100% 40%;
  background-position: 0 90%;
  background-repeat: no-repeat;
  padding: 0 4px;
  font-weight: 600;
  color: var(--article-accent);
}

/* ================================================================
   BLOCKQUOTES - ELEGANT CITATIONS
   ================================================================ */
blockquote {
  position: relative;
  background: linear-gradient(135deg, #f8faf8 0%, var(--article-accent-light) 100%);
  border: none;
  border-left: 4px solid var(--article-accent);
  margin: 2.5rem 0;
  padding: 32px 32px 32px 40px;
  border-radius: 0 16px 16px 0;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--article-text-color);
  box-shadow: 0 4px 20px rgba(27, 77, 62, 0.06);
}

blockquote::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--font-display, Georgia, serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--article-accent);
  opacity: 0.15;
}

blockquote p {
  margin: 0 0 12px;
  font-size: inherit;
}

blockquote p:last-of-type {
  margin-bottom: 0;
}

.quote-context {
  display: block;
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 600;
  color: var(--article-accent);
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(27, 77, 62, 0.1);
}

/* Quote Block - Alternative Style */
.quote-block {
  background: linear-gradient(135deg, #f8faf8 0%, var(--article-accent-light) 100%);
  border-left: 4px solid var(--article-accent);
  margin: 2rem 0;
  padding: 24px 28px;
  border-radius: 0 12px 12px 0;
}

.quote-block .quote-text {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--article-text-color);
  margin: 0 0 8px;
}

.quote-block .quote-context {
  border-top: none;
  padding-top: 8px;
  margin-top: 8px;
}

/* ================================================================
   IMAGES & FIGURES
   ================================================================ */
figure {
  margin: 2.5rem 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

figure img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

figure:hover img {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

figcaption {
  font-size: 0.875rem;
  color: var(--article-meta-color);
  text-align: center;
  padding: 12px 16px 0;
  font-style: italic;
  line-height: 1.5;
}

/* Normal Image - In-article */
.normal-image {
  margin: 2rem auto;
  max-width: 100%;
}

.normal-image.smaller {
  max-width: 80%;
}

.normal-image.very-small {
  max-width: 60%;
}

/* Wide Image - Breaks container */
.wide-image {
  margin: 3rem -80px;
  max-width: calc(100% + 160px);
}

@media (max-width: 900px) {
  .wide-image {
    margin: 2rem -24px;
    max-width: calc(100% + 48px);
  }
}

/* ================================================================
   VIDEO CONTAINER
   ================================================================ */
.video-container {
  background: var(--article-accent);
  border-radius: 16px;
  margin: 3rem 0;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(27, 77, 62, 0.2);
}

.video-container h3 {
  color: #fff;
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 20px 24px 12px;
  margin: 0;
}

.video-wrap {
  position: relative;
  padding-top: 56.25%;
  background: #000;
}

.video-wrap iframe,
.video-wrap video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-container .meta {
  color: rgba(255,255,255,0.7);
  padding: 12px 24px;
  margin: 0;
  font-size: 0.8rem;
  text-align: right;
}

/* ================================================================
   MEDIA GRID - GALLERY
   ================================================================ */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 2rem 0;
}

.media-grid figure {
  margin: 0;
  cursor: pointer;
}

.media-grid figure img {
  height: 220px;
  object-fit: cover;
}

/* Gallery Section */
.gallery-section {
  margin: 4rem 0;
  padding: 3rem 0;
  border-top: 1px solid var(--article-border);
  border-bottom: 1px solid var(--article-border);
}

.gallery-title {
  text-align: center;
  margin-bottom: 2rem;
}

.gallery-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.08);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 16px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: #fff;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

.gallery-caption h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.gallery-caption p {
  font-size: 0.8rem;
  margin: 0;
  opacity: 0.85;
  line-height: 1.4;
}

/* ================================================================
   MEDIA + AUDIO CONTAINER (SIDE BY SIDE)
   ================================================================ */
.media-audio-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  margin: 2.5rem 0;
  background: #f8faf8;
  border-radius: 16px;
  padding: 20px;
}

.media-audio-container.reverse {
  direction: rtl;
}

.media-audio-container.reverse > * {
  direction: ltr;
}

.media-audio-container figure {
  margin: 0;
  height: 100%;
}

.media-audio-container figure img {
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

.media-audio-container .podcast-container {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  .media-audio-container {
    grid-template-columns: 1fr;
  }
  
  .media-audio-container.reverse {
    direction: ltr;
  }
}

/* ================================================================
   PODCAST CONTAINER
   ================================================================ */
.podcast-container {
  background: linear-gradient(135deg, #f0f7f0 0%, var(--article-accent-light) 100%);
  border: 1px solid rgba(27, 77, 62, 0.15);
  border-radius: 16px;
  padding: 28px;
  margin: 3rem 0;
  position: relative;
}

.podcast-container h3 {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--article-accent);
  margin: 0 0 12px;
}

.podcast-container > p {
  font-size: 0.95rem;
  color: var(--article-text-color);
  margin: 0 0 16px;
  line-height: 1.6;
}

.podcast-player audio {
  width: 100%;
  border-radius: 8px;
  outline: none;
}

/* ================================================================
   COACH PROFILE CARDS
   ================================================================ */
.coach-profile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin: 3rem 0;
}

@media (min-width: 768px) {
  .coach-profile {
    grid-template-columns: 1fr 1fr;
  }
}

.coach-card {
  background: #fff;
  border: 1px solid var(--article-border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.coach-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(27, 77, 62, 0.12);
  border-color: var(--article-accent);
}

.coach-name {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--article-accent);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--article-accent-light);
}

.coach-card figure {
  margin: 0 0 20px;
}

.coach-card figure img {
  height: 200px;
  object-fit: cover;
}

.coach-card p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.coach-card blockquote {
  margin: 1.5rem 0;
  padding: 20px 24px;
  font-size: 1rem;
}

/* ================================================================
   IDOLES VIDEO LINKS
   ================================================================ */
.idoles-videos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 2.5rem 0;
}

.idole-link-container {
  background: linear-gradient(135deg, #fff 0%, #f8faf8 100%);
  border: 1px solid var(--article-border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.idole-link-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(27, 77, 62, 0.12);
  border-color: var(--article-accent);
}

.idole-link-container h3 {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--article-accent);
  margin: 0 0 8px;
}

.idole-description {
  font-size: 0.9rem;
  color: var(--article-meta-color);
  margin: 0 0 16px;
  line-height: 1.5;
}

.idole-link-button {
  display: inline-block;
  padding: 10px 24px;
  background: var(--article-accent);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.idole-link-button:hover {
  background: #0d2818;
  transform: scale(1.05);
}

.idole-link-container .meta {
  margin-top: 12px;
  font-size: 0.75rem;
}

/* ================================================================
   DATA TABLE
   ================================================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.data-table thead {
  background: var(--article-accent);
  color: #fff;
}

.data-table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}

.data-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--article-border);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: var(--article-accent-light);
}

/* ================================================================
   SUGGESTED READING / BOOKS
   ================================================================ */
.suggested-reading {
  margin: 4rem 0;
  padding: 3rem 0;
  border-top: 2px solid var(--article-border);
}

.suggested-reading h2 {
  text-align: center;
}

.suggested-reading h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.suggested-reading > p {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.book-item {
  background: #fff;
  border: 1px solid var(--article-border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.book-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(27, 77, 62, 0.12);
  border-color: var(--article-accent);
}

.book-cover {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 16px;
  border-radius: 8px;
  background: #f8faf8;
  padding: 12px;
}

.book-title {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--article-accent);
  margin-bottom: 8px;
  line-height: 1.3;
}

.book-author {
  font-size: 0.9rem;
  color: var(--article-text-color);
  font-weight: 500;
  margin-bottom: 8px;
}

.book-theme {
  font-size: 0.85rem;
  color: var(--article-meta-color);
  font-style: italic;
  margin-top: auto;
  padding-top: 12px;
}

.book-link {
  margin-top: 16px;
}

.book-link a {
  display: inline-block;
  padding: 8px 20px;
  background: var(--article-accent);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.book-link a:hover {
  background: #0d2818;
}

/* ================================================================
   CONTENT SECTIONS (pour Erwan article)
   ================================================================ */
.content-section {
  margin-bottom: 3rem;
}

.content-section:last-child {
  margin-bottom: 0;
}

/* ================================================================
   LIGHTBOX
   ================================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(10px);
}

.lightbox.open {
  visibility: visible;
  opacity: 1;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
}

.close-btn:hover {
  background: var(--article-accent);
  color: #fff;
  transform: rotate(90deg);
}

/* ================================================================
   META INFORMATION
   ================================================================ */
.meta {
  font-size: 0.85rem;
  color: var(--article-meta-color);
}

/* ================================================================
   LISTS
   ================================================================ */
article ul,
article ol {
  padding-left: 1.5em;
  margin: 1.5rem 0;
}

article li {
  font-size: var(--article-font-size);
  line-height: var(--article-line-height);
  color: var(--article-text-color);
  margin-bottom: 0.75rem;
}

article li::marker {
  color: var(--article-accent);
}

/* ================================================================
   FEATURED VIDEO SECTION
   ================================================================ */
.featured-video {
  margin: 3rem 0;
}

.featured-video h2 {
  text-align: center;
}

.featured-video h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.featured-video p {
  text-align: center;
  max-width: 600px;
  margin: 1rem auto 0;
}

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

/* ================================================================
   RESPONSIVE DESIGN
   ================================================================ */
@media (max-width: 768px) {
  header {
    padding: 100px 20px 60px;
  }
  
  header h1 {
    font-size: 1.8rem;
  }
  
  .lead {
    font-size: 1.05rem;
  }
  
  article {
    padding: 40px 20px 60px;
  }
  
  article p {
    font-size: 1rem;
  }
  
  article h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1.25rem;
  }
  
  blockquote {
    padding: 24px 20px 24px 28px;
    font-size: 1rem;
    margin: 2rem 0;
  }
  
  .drop-cap:first-letter {
    font-size: 3.5rem;
  }
  
  .media-grid {
    grid-template-columns: 1fr;
  }
  
  .idoles-videos-container {
    grid-template-columns: 1fr;
  }
  
  .normal-image.smaller,
  .normal-image.very-small {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.5rem;
  }
  
  header .meta {
    font-size: 0.8rem;
  }
  
  .lead {
    font-size: 0.95rem;
  }
  
  article h2 {
    font-size: 1.35rem;
  }
  
  article h3 {
    font-size: 1.15rem;
  }
  
  .coach-profile {
    gap: 20px;
  }
  
  .coach-card {
    padding: 20px;
  }
  
  .video-container h3 {
    font-size: 1rem;
    padding: 16px 16px 8px;
  }
}
