 :root {
     --primary-color: #FF6B35;
     --white: #FFFFFF;
     --black: #000000;
     --text-color: #1A202C;
     --dark-bg: #1e1e1e;
     --light-gray: #f5f5f5;
     --medium-gray: #666666;
     --dark-gray: #333333;
     --border-gray: #888888;
     --blue-accent: #1a73e8;
     --light-blue: #87CEEB;
     --card-bg: #E8F0FF;
 }

 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 body {
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
     color: var(--text-color);
     background-color: var(--white);
     overflow-x: hidden;
 }

 .article-header {
     background-color: var(--white);
     padding: 2rem 0 1rem;
     border-bottom: 1px solid var(--light-gray);
 }

 .back-to-news {
     display: inline-flex;
     align-items: center;
     gap: 0.5rem;
     color: var(--primary-color);
     text-decoration: none;
     font-weight: 600;
     margin-bottom: 1.5rem;
     transition: all 0.3s ease;
 }

 .back-to-news:hover {
     color: #e05a2b;
     transform: translateX(-5px);
 }

 .article-category {
     display: inline-block;
     background-color: var(--primary-color);
     color: var(--white);
     padding: 0.5rem 1.5rem;
     border-radius: 30px;
     font-weight: 600;
     margin-bottom: 1.5rem;
     font-size: 0.9rem;
 }

 .article-title {
     font-size: 2.5rem;
     font-weight: 800;
     margin-bottom: 1rem;
     line-height: 1.2;
     color: var(--dark-gray);
 }

 .article-meta {
     display: flex;
     align-items: center;
     gap: 2rem;
     margin-bottom: 1.5rem;
     flex-wrap: wrap;
     color: var(--medium-gray);
     font-size: 0.95rem;
 }

 .article-date,
 .article-author,
 .article-reading-time {
     display: flex;
     align-items: center;
     gap: 0.5rem;
 }

 .article-content {
     max-width: 900px;
     margin: 0 auto;
     padding: 2rem 0 4rem;
 }

 .article-body {
     font-size: 1.1rem;
     line-height: 1.8;
     color: var(--text-color);
 }

 .article-body h2 {
     font-size: 1.8rem;
     font-weight: 700;
     margin: 2.5rem 0 1.5rem;
     color: var(--dark-gray);
     padding-top: 0.5rem;
 }

 .article-body h3 {
     font-size: 1.4rem;
     font-weight: 600;
     margin: 2rem 0 1rem;
     color: var(--dark-gray);
 }

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

 .article-body blockquote {
     border-left: 4px solid var(--primary-color);
     padding: 1.5rem 2rem;
     margin: 2rem 0;
     background-color: var(--light-gray);
     font-style: italic;
     font-size: 1.2rem;
     color: var(--dark-gray);
     border-radius: 0 10px 10px 0;
 }

 .article-body ul,
 .article-body ol {
     margin: 1.5rem 0;
     padding-left: 2rem;
 }

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

 /* Images dans le contenu */
 .content-image {
     width: 100%;
     max-height: 500px;
     object-fit: cover;
     border-radius: 12px;
     margin: 1.5rem 0;
     box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
     cursor: pointer;
     transition: transform 0.3s ease;
 }

 .content-image:hover {
     transform: scale(1.01);
 }

 .image-caption {
     text-align: center;
     color: var(--medium-gray);
     font-style: italic;
     margin-top: 0.5rem;
     font-size: 0.95rem;
     margin-bottom: 1rem;
 }

 /* Images côte à côte */
 .image-row {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
     gap: 1.5rem;
     margin: 1.5rem 0;
 }

 .image-row .content-image {
     margin: 0;
     height: 200px;
 }

 /* Vidéos dans le contenu */
 .video-container {
     position: relative;
     width: 100%;
     margin: 2rem 0;
     border-radius: 12px;
     overflow: hidden;
     box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
 }

 .video-player {
     width: 100%;
     height: 350px;
     object-fit: cover;
     background-color: #000;
     cursor: pointer;
 }

 .video-overlay {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(0, 0, 0, 0.3);
     display: flex;
     align-items: center;
     justify-content: center;
     transition: background 0.3s ease;
     cursor: pointer;
 }

 .video-overlay:hover {
     background: rgba(0, 0, 0, 0.2);
 }

 .play-button {
     width: 70px;
     height: 70px;
     background-color: var(--primary-color);
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     color: var(--white);
     font-size: 1.8rem;
     transition: transform 0.3s ease;
 }

 .video-overlay:hover .play-button {
     transform: scale(1.1);
 }

 .video-playing .video-overlay {
     display: none;
 }

 /* Galerie intégrée */
 .inline-gallery {
     margin: 2.5rem 0;
 }

 .gallery-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
     gap: 1rem;
     margin: 1.5rem 0;
 }

 .gallery-item {
     position: relative;
     border-radius: 8px;
     overflow: hidden;
     cursor: pointer;
     aspect-ratio: 4/3;
     transition: transform 0.3s ease;
 }

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

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

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

 .gallery-item.video-item .gallery-overlay {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(0, 0, 0, 0.4);
     display: flex;
     align-items: center;
     justify-content: center;
     color: var(--white);
 }

 .video-indicator {
     position: absolute;
     bottom: 10px;
     right: 10px;
     background-color: rgba(0, 0, 0, 0.7);
     color: var(--white);
     padding: 0.3rem 0.6rem;
     border-radius: 5px;
     font-size: 0.8rem;
 }

 /* Infobox */
 .infobox-title {
     font-size: 1.2rem;
     font-weight: 700;
     margin-bottom: 1rem;
     color: var(--dark-gray);
 }

 /* Tags en bas de l'article */
 .article-tags {
     display: flex;
     flex-wrap: wrap;
     gap: 0.8rem;
     margin: 2rem 0;
     padding-top: 1.5rem;
     border-top: 1px solid var(--light-gray);
 }

 .tag {
     background-color: var(--light-gray);
     color: var(--medium-gray);
     padding: 0.4rem 1rem;
     border-radius: 20px;
     font-size: 0.85rem;
     text-decoration: none;
     transition: all 0.3s ease;
     border: 1px solid var(--border-gray);
 }

 .tag:hover {
     background-color: var(--primary-color);
     color: var(--white);
     border-color: var(--primary-color);
 }

 /* Navigation entre articles */
 .article-navigation {
     display: flex;
     justify-content: space-between;
     padding: 2rem 0;
     border-top: 1px solid var(--light-gray);
     border-bottom: 1px solid var(--light-gray);
     margin: 2rem 0;
 }

 .nav-article {
     display: flex;
     align-items: center;
     gap: 1rem;
     text-decoration: none;
     color: var(--text-color);
     max-width: 45%;
     transition: color 0.3s ease;
 }

 .nav-article:hover {
     color: var(--primary-color);
 }

 .nav-direction {
     font-weight: 600;
     color: var(--medium-gray);
     font-size: 0.85rem;
 }

 .nav-title {
     font-weight: 600;
     font-size: 1rem;
 }

 /* Articles similaires */
 .related-articles {
     margin: 3rem 0;
 }

 .related-title {
     font-size: 1.8rem;
     font-weight: 700;
     margin-bottom: 1.5rem;
     color: var(--dark-gray);
 }

 .related-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
     gap: 1.5rem;
 }

 .related-card {
     background: var(--white);
     border-radius: 12px;
     overflow: hidden;
     box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
     transition: all 0.3s ease;
     text-decoration: none;
     color: var(--text-color);
     border: 1px solid var(--light-gray);
 }

 .related-card:hover {
     transform: translateY(-5px);
     box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
     border-color: var(--primary-color);
 }

 .related-image {
     width: 100%;
     height: 180px;
     object-fit: cover;
 }

 .related-content {
     padding: 1.2rem;
 }

 .related-category {
     display: inline-block;
     background-color: var(--light-gray);
     color: var(--medium-gray);
     padding: 0.2rem 0.8rem;
     border-radius: 20px;
     font-size: 0.75rem;
     margin-bottom: 0.6rem;
 }

 .related-card-title {
     font-size: 1.1rem;
     font-weight: 700;
     margin-bottom: 0.5rem;
     line-height: 1.3;
 }

 .related-card-date {
     color: var(--medium-gray);
     font-size: 0.85rem;
 }

 /* Commentaires */
 .comments-section {
     margin: 3rem 0;
 }

 .comments-title {
     font-size: 1.8rem;
     font-weight: 700;
     margin-bottom: 1.5rem;
     color: var(--dark-gray);
 }

 .comment-form {
     background-color: var(--light-gray);
     border-radius: 12px;
     padding: 1.5rem;
     margin-bottom: 2rem;
 }

 .comment {
     background-color: var(--white);
     border-radius: 8px;
     padding: 1.2rem;
     margin-bottom: 1.2rem;
     box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
     border: 1px solid var(--light-gray);
 }

 #mediaModal .modal-content {
     background: transparent;
     box-shadow: none;
     border: none;
 }

 #mediaModal .modal-header {
     position: absolute;
     top: 10px;
     right: 10px;
     z-index: 1002;
     border: none;
 }

 #mediaModal .modal-body {
     padding: 0;
     position: relative;
 }

 .modal-navigation {
     position: absolute;
     top: 50%;
     left: 0;
     right: 0;
     display: flex;
     justify-content: space-between;
     transform: translateY(-50%);
     z-index: 1001;
     padding: 0 20px;
     pointer-events: none;
 }

 .modal-nav-arrow {
     width: 50px;
     height: 50px;
     background-color: rgba(0, 0, 0, 0.5);
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     color: var(--white);
     font-size: 1.5rem;
     cursor: pointer;
     border: none;
     transition: background-color 0.3s ease;
     pointer-events: all;
 }

 .modal-nav-arrow:hover {
     background-color: rgba(0, 0, 0, 0.8);
 }

 .modal-media {
     width: 100%;
     height: 70vh;
     display: flex;
     justify-content: center;
     align-items: center;
     overflow: hidden;
 }

 .modal-media img {
     max-width: 100%;
     max-height: 100%;
     object-fit: contain;
     border-radius: 5px;
 }

 .modal-media video {
     max-width: 100%;
     max-height: 100%;
     border-radius: 5px;
 }

 .modal-info {
     color: var(--white);
     text-align: center;
     margin-top: 1rem;
     padding: 1rem;
     background-color: rgba(0, 0, 0, 0.5);
     border-radius: 10px;
 }

 @media (max-width: 992px) {
     .article-title {
         font-size: 2.2rem;
     }

     .gallery-grid {
         grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
     }

     .related-grid {
         grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
     }

     .modal-navigation {
         padding: 0 10px;
     }

     .modal-nav-arrow {
         width: 40px;
         height: 40px;
         font-size: 1.2rem;
     }
 }

 @media (max-width: 768px) {
     .article-title {
         font-size: 1.8rem;
     }

     .article-header {
         padding: 1.5rem 0 1rem;
     }

     .article-meta {
         flex-direction: column;
         align-items: flex-start;
         gap: 0.8rem;
     }

     .article-navigation {
         flex-direction: column;
         gap: 1.5rem;
     }

     .nav-article {
         max-width: 100%;
     }

     .image-row {
         grid-template-columns: 1fr;
     }

     .video-player {
         height: 250px;
     }

     .gallery-grid {
         grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
     }

     .modal-media {
         height: 50vh;
     }
 }

 @media (max-width: 480px) {
     .article-title {
         font-size: 1.6rem;
     }

     .article-content {
         padding: 1.5rem 0 3rem;
     }

     .related-grid {
         grid-template-columns: 1fr;
     }

     .modal-nav-arrow {
         width: 35px;
         height: 35px;
         font-size: 1rem;
     }
 }