/* Styles spécifiques pour les pages intérieures */

/* Fil d'Ariane */
.breadcrumb-container {
    background-color: #f8fafc;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-light);
}

[data-theme="dark"] .breadcrumb-container {
    background-color: var(--light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--gray);
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: var(--gray);
}

.breadcrumb a {
    color: var(--gray);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb li[aria-current="page"] {
    color: var(--primary);
    font-weight: 500;
}

/* En-tête de page */
.page-header {
    padding: 3rem 0;
    /*background-color: white;*/
    border-bottom: 1px solid var(--gray-light);
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/vignes_bandeau.jpg') no-repeat bottom /cover;
    color: white;
}

[data-theme="dark"] .page-header {
    background-color: var(--light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    /*color: var(--dark);*/
    color: white;
}

.page-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-date {
    display: flex;
    align-items: center;
    /* color: var(--gray);*/
    color: white;
    font-size: 0.875rem;
}

.page-date i {
    margin-right: 0.5rem;
    /*color: var(--primary);*/
    color: white;
}

.page-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    /*color: var(--gray);*/
    color: white;
    font-size: 0.875rem;
}

.page-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f8fafc;
    color: var(--gray);
    transition: var(--transition);
}

[data-theme="dark"] .page-share a {
    background-color: rgba(255, 255, 255, 0.1);
}

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

/* Layout de contenu */
.page-content {
    padding: 3rem 0 5rem;
}

.content-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2.5rem;
}

.content-layout.full-width {
    grid-template-columns: 1fr;
    /* La colonne principale prend 100% */
}

/* Sidebar */
.page-sidebar {
    position: sticky;
    top: calc(var(--top-bar-height) + var(--header-height) + 20px);
    height: max-content;
}

.sidebar-widget {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .sidebar-widget {
    background-color: var(--light);
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
}

.documents-title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-light);
    color: var(--dark);
}

[data-theme="dark"] .documents-title {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    color: var(--dark);
    transition: var(--transition);
}

.sidebar-menu a:hover {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--primary);
}

.sidebar-menu li.active a {
    background-color: var(--primary);
    color: white;
    font-weight: 500;
}

.document-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.document-list li {
    margin-bottom: 0.75rem;
}

.document-link {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background-color: #f8fafc;
    border-radius: var(--radius);
    color: var(--dark);
    transition: var(--transition);
}

[data-theme="dark"] .document-link {
    background-color: rgba(255, 255, 255, 0.05);
}

.document-link i {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    color: var(--primary);
}

.document-link:hover {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--primary);
}

.contact-info {
    color: var(--dark);
}

.contact-info p {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    width: 20px;
    margin-right: 0.75rem;
    color: var(--primary);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Contenu principal */
.main-content {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

[data-theme="dark"] .main-content {
    background-color: var(--light);
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
}

.lead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.main-content h1 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
    color: var(--dark);
}

.main-content h2 {
    font-size: 1.75rem;
    margin: 2rem 0 1rem;
    color: var(--dark);
}

.main-content h3 {
    font-size: 1.35rem;
    margin: 1.75rem 0 1rem;
    color: var(--dark);
}

.info-box {
    background-color: rgba(52, 152, 219, 0.1);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1.5rem 0;
}

.info-box h3 {
    display: flex;
    align-items: center;
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.info-box h3 i {
    margin-right: 0.75rem;
}

.image-container {
    margin: 2rem 0;
    max-height: 50%;
    overflow: hidden;

    /*  display: flex;
    justify-content: center; */
    align-items: center;
}

.responsive-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.image-caption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray);
    margin-top: 0.75rem;
}

.carte {
    height: 40vh;
    width: 100%;
    z-index: 90;
    border-radius: 20px;
    margin-bottom: 5%;
}

#carte-content {
    display: none;
}

.styled-list {
    padding-left: 1.5rem;
    margin: 1.5rem 0;
}

.styled-list li {
    margin-bottom: 0.75rem;
    position: relative;
}

.styled-list li::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.content-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-light);
}

#dynamic-content ul {
    list-style-type: disc;
    /* Ou un autre type de puce */
    padding-left: 20px;
    /* Ajouter un peu d'espace à gauche pour la puce */
}

#dynamic-content li {
    margin-bottom: 10px;
    /* Espacement entre les éléments */
}

[data-theme="dark"] .content-actions {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Pages associées */
.related-content {
    padding: 4rem 0;
    background-color: #f8fafc;
}

[data-theme="dark"] .related-content {
    background-color: rgba(255, 255, 255, 0.02);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.related-card {
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: var(--dark);
}

[data-theme="dark"] .related-card {
    background-color: var(--light);
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
}

.related-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.related-image {
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 1.5rem;
}

.related-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.related-card:hover .related-content h3 {
    color: var(--primary);
}

.related-content p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/*pop up pdf*/
/* Style global de la modal */
/* .pdf-modal {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 600px;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    color: black;
} */

.pdf-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-in-out;
}

.title-modal {
    justify-items: center;
}

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 23px;
    right: 30px;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.close-modal:hover {
    transform: scale(1.2);
}

.pdf-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.pdf-list li {
    margin-bottom: 15px;
    font-size: 16px;
}

.pdf-list li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.2s;
}

.pdf-list li a:hover {
    color: #0C64B2;
}

.pdf-list i {
    margin-right: 10px;
    font-size: 18px;
    color: #0C64B2;
}





/* Responsive styles */
@media (max-width: 992px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .content-layout>*:first-child {
        order: 1;
    }

    .content-layout>*:last-child {
        order: 2;
    }

    .page-sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-container {
        display: none;
    }

    .title h1 {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 0;
        color: var(--primary);
    }

}

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

    .page-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-content {
        padding: 1.5rem;
    }

    .content-actions {
        flex-direction: column;
        gap: 1rem;
    }

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

    .title h1 {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 0;
        color: var(--primary);
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.75rem;
    }

    .breadcrumb {
        font-size: 0.75rem;
    }

    .title h1 {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 0;
        color: var(--primary);
    }
}