/* Variables globales */
:root {
    --primary-color: #223142;
    --secondary-color: #d6ba8c;
    --accent-color: #d6ba8c;
    --text-color: #333;
    --text-light: #666;
    --background-light: #f5f5f5;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
    --primary-yellow: #d6ba8c;
    --dark-yellow: #b89c6c;
    --primary-blue: #223142;
    --section-padding: 40px 0;
    --container-padding: 0 15px;
    --border-radius: 6px;
    --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --section-bg-1: #f8f9fa;
    --section-bg-2: #ffffff;
    --section-bg-3: #f0f2f5;
    --section-bg-4: #ffffff;
    --section-bg-5: #f8f9fa;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Header et Navigation */
.main-header {
    padding: 10px 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: transform 0.4s ease-in-out;
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo-image {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.logo-text {
    font-family: 'Crimson Text', serif;
    font-size: 20px;
    font-weight: 600;
    color: #223142;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 20px;
    position: relative;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #d6ba8c;
    background-color: rgba(214, 186, 140, 0.1);
}

.nav-links a.active {
    color: #d6ba8c;
    font-weight: 600;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 100;
    overflow: hidden;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    padding: 12px 15px;
    display: block;
    font-size: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #223142;
    transition: 0.3s;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.menu-toggle:hover {
    color: #d6ba8c;
    background: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 400px;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
	/*background-image: url("images/IMG-2.jpg");*/
	/*background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/library-bg.jpg") no-repeat center center;*/
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1920') no-repeat center center;
    background-size: cover;
}

.hero-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--border-radius);
    max-width: 700px;
    margin: 0 auto;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: slideInDown 1s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-subtitle {
    color: #ffffff !important;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: slideInUp 1s ease-out 0.5s;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries for Hero Section */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
}

/* About Section */
.about-section {
    padding: 30px 0;
    background-color: var(--section-bg-1);
}

.about-content {
    display: flex;
    gap: 20px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.about-description {
    color: var(--text-color);
    line-height: 1.6;
}

.about-description p {
    margin-bottom: 1rem;
}

/* Section Numéro Actuel */
.current-issue {
    padding: 5rem 0;
    background-color: var(--section-bg-2);
}

.current-issue .about-text {
    text-align: center;
    margin-bottom: 3.5rem;
}

.current-issue .about-text h2 {
    font-size: 2.8rem;
    color: var(--text-color);
    font-family: 'Crimson Text', serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

.issue-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.issue-image {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 100%;
}

.issue-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-height: 600px;
}

.issue-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 0;
}

.issue-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 0.5rem;
}

.issue-number, .issue-date {
    font-size: 1.1rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.issue-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.issue-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.issue-actions {
    display: flex;
    gap: 1rem;
}

@media (max-width: 992px) {
    .issue-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .issue-image {
        max-height: 400px;
    }

    .issue-image img {
        max-height: 400px;
    }

    .issue-details {
        padding: 0;
    }

    .current-issue .about-text h2 {
        font-size: 2.4rem;
    }

    .issue-title {
        font-size: 1.8rem;
    }

    .issue-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .current-issue {
        padding: 4rem 0;
    }

    .current-issue .about-text {
        margin-bottom: 2.5rem;
    }

    .current-issue .about-text h2 {
        font-size: 2rem;
    }

    .issue-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .issue-actions {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* Button Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-family: 'Crimson Text', serif;
    font-weight: 600;
    margin: 0;
    padding-bottom: 1rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    min-width: 140px;
    transition: background-color 0.3s ease;
    text-decoration: none !important;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 3rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header h2::after {
        width: 60px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
}

/* Section Articles */
.articles-section {
    padding: 30px 0;
    background-color: var(--section-bg-3);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--text-color);
    font-family: 'Crimson Text', serif;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.article-card {
    background: var(--white);
    border-radius: 4px;
    padding: 15px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.article-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.article-card h3 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 700;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--text-light);
}

.author, .read-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.article-excerpt {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.article-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    min-width: 140px;
    transition: background-color 0.3s ease;
    text-decoration: none !important;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}

@media (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2.2rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .article-card {
        padding: 1.5rem;
    }

    .article-actions {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-numbers a,
.page-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-numbers a:hover,
.page-nav:hover {
    background-color: var(--background-light);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.page-numbers a.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.page-nav {
    background-color: var(--white);
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Pagination personnalisée */
.pagination .page-link {
    color: var(--primary-color);
    border: none;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    color: var(--white);
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    border-radius: 4px;
}

@media (max-width: 768px) {
    .article-abstract {
        height: auto;
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 30px 0 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.footer-section h4 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-section i {
    margin-right: 10px;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 1rem;
        box-shadow: 0 2px 4px var(--shadow-color);
    }

    .main-nav.active {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Section Styles */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: 'Crimson Text', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* About Section */
.about-section {
    background-color: var(--section-bg-1);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-text {
    text-align: justify;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Current Issue Section */
.current-issue-section {
    background-color: var(--section-bg-2);
    padding: 30px 0;
}

.issue-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
} 

.issue-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #f5f5f5;
    border-radius: var(--border-radius);
}

.meta-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.issue-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Articles Section */
.articles-section {
    background-color: var(--section-bg-3);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.article-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.article-tag {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-card h3 {
    padding: 20px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.article-meta {
    padding: 0 20px;
    margin-bottom: 20px;
}

.author {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: var(--light-text);
}

.article-excerpt {
    padding: 0 20px;
    margin-bottom: 20px;
    color: var(--light-text);
}

.article-actions {
    padding: 20px;
    display: flex;
    gap: 15px;
}

/* Benefits Section */
.benefits-section {
    background-color: var(--section-bg-4);
    padding: 30px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.benefit-card {
    background: #fff;
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #1a2533;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #c4a876;
}

/* Responsive Design */
@media (max-width: 992px) {
    .section-header h2 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

   
}

@media (max-width: 768px) {
    :root {
        --section-padding: 30px 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 20px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .issue-actions {
        flex-direction: column;
    }


}
