:root {
   --primary-color: #FF4B6C;
    --text-dark: #1A1A1A;
    --text-light: #666666;
    --background-color: #ffffff;
    --accent-gradient: linear-gradient(135deg, #FF4B6C, #FF8C9E);
    --spacing-unit: clamp(1rem, 2vw, 2rem);
    --container-width: min(92%, 1200px);
    --font-title: 'Plus Jakarta Sans', sans-serif; /* Police forte sans serif */
}

/* Assurer que tout passe sous le menu */
.site-main {
    position: relative;
    z-index: 1; /* Le menu doit avoir un z-index supérieur, par exemple 1000 */
}

/* Styles pour les métadonnées */
.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.meta-item.photo-credit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.meta-item.photo-credit svg {
    color: var(--primary-color);
}

.meta-item.date svg {
    color: var(--primary-color);
}

.meta-item.reading-time svg {
    color: var(--primary-color);
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Style du titre */
.article-title {
    font-family: var(--font-title);
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Source de l'image */
.featured-image-credit {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    text-align: right;
}

/* Style des icônes SVG */
.meta-item svg,
color: var(--primary-color);
}
.share-button svg {
    stroke: currentColor;
    fill: none;
    color: var(--primary-color);
}

.share-button svg {
    transition: transform 0.3s ease;
}

.share-button:hover svg {
    transform: scale(1.1);
}

/* Structure principale */
.article-container {
  margin: 0 auto;
  overflow-x: hidden;
}

/* Hero Header */
.article-hero {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease-out;
}

/* Article Header */
.article-header {
  width: var(--container-width);
  margin: -120px auto 0;
  position: relative;
  z-index: 2;
  background: var(--background-color);
  padding: var(--spacing-unit);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -20px 40px rgba(0,0,0,0.1);
}

.article-category {
  color: var(--primary-color);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: var(--spacing-unit);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.article-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: var(--spacing-unit);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

/* Meta information */
.article-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-unit);
  margin-bottom: var(--spacing-unit);
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out 0.4s forwards;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.meta-item i {
  color: var(--primary-color);
}

/* Sharing and Newsletter section */
.article-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-unit) 0;
  border-top: 1px solid rgba(0,0,0,0.1);
  margin-top: var(--spacing-unit);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out 0.6s forwards;
}

.share-buttons {
  display: flex;
  gap: 1rem;
}

.share-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.share-button:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.newsletter-button {
  padding: 0.8rem 1.5rem;
  background: var(--accent-gradient);
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 75, 108, 0.2);
}

.newsletter-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 75, 108, 0.3);
}

/* Article Content */
.article-content {
  width: var(--container-width);
  margin: 0 auto;
  padding: var(--spacing-unit) 0;
  font-family: var(--font-sans);
  line-height: 1.8;
}

.article-chapo {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: var(--spacing-unit);
  font-weight: 500;
}

.article-content h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin: 2.5rem 0 1.5rem;
  color: var(--text-dark);
}

.article-content h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--text-dark);
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-exergue {
  margin: var(--spacing-unit) -5vw;
  padding: var(--spacing-unit);
  background: var(--accent-gradient);
  color: white;
  border-radius: 10px;
  font-size: 1.5rem;
  font-family: var(--font-serif);
  line-height: 1.6;
  text-align: center;
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .article-actions {
    flex-direction: column;
    gap: var(--spacing-unit);
  }
  
  .article-exergue {
    margin: var(--spacing-unit) 0;
    font-size: 1.25rem;
  }
}

/* Suite du CSS précédent */

/* Lecture Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    z-index: 1000;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Article Images */
.article-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: var(--spacing-unit) 0;
}

.article-content figure {
    margin: calc(var(--spacing-unit) * 2) 0;
}

.article-content figcaption {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Article Lists */
.article-content ul,
.article-content ol {
    margin: var(--spacing-unit) 0;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* Article Blockquotes */
.article-content blockquote {
    margin: calc(var(--spacing-unit) * 2) 0;
    padding: var(--spacing-unit);
    border-left: 4px solid var(--primary-color);
    background: rgba(255, 75, 108, 0.05);
    border-radius: 0 12px 12px 0;
}

.article-content blockquote p {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: italic;
    margin: 0;
}

/* Article Links */
.article-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.article-content a:hover {
    border-bottom-color: var(--primary-color);
}

/* Article Code Blocks */
.article-content pre {
    background: #f8f9fa;
    padding: var(--spacing-unit);
    border-radius: 12px;
    overflow-x: auto;
    margin: var(--spacing-unit) 0;
}

.article-content code {
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
}

/* Article Tables */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-unit) 0;
}

.article-content th,
.article-content td {
    padding: 0.75rem;
    border: 1px solid #eee;
}

.article-content th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Newsletter Modal */
.newsletter-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.newsletter-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.newsletter-content {
    background: white;
    padding: calc(var(--spacing-unit) * 2);
    border-radius: 20px;
    width: min(90%, 500px);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.newsletter-modal.active .newsletter-content {
    transform: translateY(0);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    :root {
        --spacing-unit: 1rem;
    }

    .article-hero {
        height: 60vh;
    }

    .article-header {
        margin-top: -60px;
        padding: var(--spacing-unit);
    }

    .share-buttons {
        justify-content: center;
        width: 100%;
    }

    .newsletter-button {
        width: 100%;
        text-align: center;
    }

    .article-content blockquote {
        margin: var(--spacing-unit) 0;
        padding: calc(var(--spacing-unit) / 2);
    }

    .article-content blockquote p {
        font-size: 1.1rem;
    }
}

/* Print Styles */
@media print {
    .article-hero,
    .article-actions,
    .reading-progress {
        display: none;
    }

    .article-content {
        font-size: 12pt;
        line-height: 1.5;
    }

    .article-content a {
        text-decoration: none;
        color: #000;
    }

    .article-content a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --text-light: #000000;
        --primary-color: #000000;
    }

    .article-content {
        color: #000000;
    }

    .article-exergue {
        background: #000000;
        color: #ffffff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    .scroll-animate {
        opacity: 1;
        transform: none;
    }
}