
/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.03)"><path d="M0,50 C150,80 350,20 500,50 C650,80 850,20 1000,50 L1000,100 L0,100 Z"/></svg>');
    background-size: cover;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Merriweather', serif;
    font-size: 2.1rem;
    font-weight: 700;
    margin: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.breadcrumb-section {
    /* background: rgba(255, 255, 255, 0.1); */
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.breadcrumb {
    background: transparent;
    margin-bottom: 0;
    padding: 0;
}

.breadcrumb-item {
    font-size: 0.9rem;
    font-family: 'Merriweather', serif;
    color: rgba(255, 255, 255, 0.8) !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: rgba(255, 255, 255, 0.6);
    font-weight: bold;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
    font-weight: 500;
}
.breadcrumb-section .breadcrumb-item.active,
.breadcrumb-section .breadcrumb-item.active i {
    color: #fff !important;
}
.breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: ">" !important;
    color: rgba(255, 255, 255, 0.6);
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
}

/* Decorative wave at bottom */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(45deg, transparent 49%, white 50%, white 51%, transparent 52%);
    background-size: 30px 30px;
}

/* Defil menu*/
.defil-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.defil-navbar {
    display: flex;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.defil-navbar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.defil-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    white-space: nowrap;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    flex-shrink: 0;
}

.defil-item:hover {
    color: var(--primary-color);
    background-color: var(--hover-bg);
}

.defil-item.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);

}

.defil-item i {
    margin-right: 8px;
    font-size: 16px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .defil-container {
        border-radius: 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .defil-navbar {
        padding: 0 10px;
        gap: 0;
    }

    .defil-item {
        padding: 10px 20px;
        font-size: 13px;
    }

    .defil-item .icon {
        margin-right: 6px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .defil-item {
        padding: 16px 16px;
        font-size: 12px;
    }
}

/* Scroll indicators (optional) */
.defil-container::before,
.defil-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    pointer-events: none;
    z-index: 1;
}

.defil-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.8), transparent);
}

.defil-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,0.8), transparent);
}

.defil-container {
    position: relative;
}


/* Main Content */
.section {
    background: var(--bg-light);
    display: none;
    padding: 40px 0;
}

.section.active {
    display: block;
}

/* Page Titles */
.page-title {
    font-family: 'Merriweather', serif;
    color: var(--primary-color);
    font-size: 1.7rem;
    font-weight: 700;
    text-align: center;
}

.page-subtitle {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 40px;
    font-size: 1rem;
    font-weight: 400;
}

/* procedure Section */
.procedure{
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}
.procedure-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.procedure-title {
    font-family: 'Merriweather', serif;
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.alternative-item{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}
.alternative-infos{
    padding: 20px;
    background-color: #b5e9ef26;
}
.alternative-list{
    font-size: 0.9rem;
    color: var(--text-light);
}
.procedure-header{
    border-radius: 10px 10px 0 0 !important;
    padding: 1rem 1.5rem;
}
.p-card {
    background-color: white;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    
}
.procedure-body{
    padding: 20px;
    margin-bottom: 20px;
}
        
.badge {
    position:relative;
    top: -10px;
    font-size: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 50%;
}

.badge-primary {
    background-color: var(--primary-color);
}

.timeline-item {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}
.text-muted{
    font-size: 0.9rem;
}
/* missions Section */
.card{
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);  
}
.card-header {
    font-family: 'Merriweather', serif;
    background-color: var(--secondary-color) !important;
    color: white !important;
    border-radius: 10px 10px 0 0;
    padding: 1rem 1.5rem;
    font-weight: 600;
}
.list-group-item {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 400;
    border: none;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 0.5rem;
    border-radius: 5px;
}
.list-group-item::before {
    content: '>' !important;
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 12px;
}

/*Organisation Section */
.organisation-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.organisation-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);  
    overflow: hidden;
}

.organisation-header {
    font-family: 'Merriweather', serif;
    padding: 10px 15px;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
}

.organisation-content {
    padding: 20px;
}

.organisation-item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-light);
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 10px;
}

.organisation-item:last-child {
    border-bottom: none;
}

.organisation-item i {
    font-size: 1rem;
    margin-right: 12px;
    width: 20px;
}

.organ-title {
    font-family: 'Merriweather', serif;
    font-weight: 600;
    color: var(--primary-color);
}

.organ-time {
    color: var(--text-light);
    font-size: 0.9rem;
}
.org-node {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    background-color: #f8f9fa;
    cursor: pointer;
    font-family: 'Merriweather', serif;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 500;
    padding-left: 20px;
    padding-top: 18px;
}

.org-node p{
    color: var(--text-light);
    font-size: 0.9rem;
}
.org-node:hover {
    background-color: #e2e6ea;
}
.children {
    margin-left: 30px;
    border-left: 2px dashed #adb5bd;
    padding-left: 15px;
}
/* Magistrats Section */      
.magistrat-title {
    font-family: 'Merriweather', serif;
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
}
.magistrat-section {
    margin-top: 30px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.magistrat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.magistrat-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.magistrat-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.magistrat-info-name{
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.magistrat-info .title {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
}

.magistrat-info .description {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.5;
}

.avocats-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.avocats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.avocat-card {
    text-align: center;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.avocat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(24, 49, 104, 0.15);
}

.avocat-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, #8b7355, #a0956b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.avocat-name {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.avocat-section {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

.bottom-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.info-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.info-category {
    margin-bottom: 15px;
}

.info-titre {
    font-family: 'Merriweather', serif;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.info-list {
    list-style: none;
    padding: 0;
    padding-left: 40px;
}

.info-list li {
    color: #333;
    font-size: 14px;
    position: relative;
    padding-left: 20px;
}

.info-list li::before {
    content: '>';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Animation Effects */
.magistrat-item,
.avocat-card,
.info-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.magistrat-item:nth-child(1) { animation-delay: 0.1s; }
.magistrat-item:nth-child(2) { animation-delay: 0.2s; }
.avocat-card:nth-child(1) { animation-delay: 0.3s; }
.avocat-card:nth-child(2) { animation-delay: 0.4s; }
.avocat-card:nth-child(3) { animation-delay: 0.5s; }
.avocat-card:nth-child(4) { animation-delay: 0.6s; }
.avocat-card:nth-child(5) { animation-delay: 0.7s; }
.avocat-card:nth-child(6) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effects */
.magistrat-item:hover .magistrat-photo {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.info-list li:hover {
    color: var(--primary-color);
    padding-left: 25px;
    transition: all 0.3s ease;
}

/* Print Styles */
@media print {
    .container {
        padding: 0;
    }
    
    .magistrat-section,
    .avocats-section,
    .info-section {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .page-title,
    .magistrat-title {
        color: #000 !important;
    }
}

/* Presentation Section */
.presentation-container {
    display: grid;
    grid-template-columns: 550px 1fr ;
    gap: 40px;
}
.presentation-title {
    font-family: 'Merriweather', serif;
    color: var(--primary-color);
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.presentation-text {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 20px;
}

.presentation-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon {
    background-color: var(--font-bg);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-content-titre {
    font-family: 'Merriweather', serif;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
}

.feature-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.5;
    margin: 0;
}

.presentation-image {
    background: url('../image/ministere_public.jpg') center/cover;
    border-radius: 8px;
    min-height: 300px;
}
.presentation-greffe-image{
    background: url('../image/greffe.jpg') center/cover;
    border-radius: 8px;
    min-height: 300px;
}
.principles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}
.principles-grid-greffe{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}
.principle-card {
    background: white;
    border-top: 3px solid var(--bg-footer);
    border-right: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.principle-icon {
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.principle-title {
    font-family: 'Merriweather', serif;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.principle-description {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
}
/* Responsive Design */
@media (max-width: 850px)  {
    .presentation-container {
        grid-template-columns: 1fr 300px  ;
        gap: 20px;
    }
}
@media (max-width: 768px) {
    .procedure-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .organisation-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .presentation-container {
        grid-template-columns: 1fr ;
        gap: 20px;
    }
    .presentation-content{
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .principles-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .principles-grid-greffe{
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .page-title {
        font-size: 24px;
    }
    .presentation-title {
        font-size: 24px;
    }
    .magistrat-title {
        font-size: 20px;
        margin-bottom: 20px;
        margin-top: 30px;
    }

    .magistrat-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .magistrat-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .magistrat-photo {
        width: 70px;
        height: 70px;
        font-size: 20px;
        margin: 0 auto;
    }

    .avocats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .magistrat-item{
        display: flex;
        align-items: center;
    }
    .avocat-photo {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }

    .bottom-sections {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .magistrat-section,
    .avocats-section,
    .info-section {
        padding: 20px;
    }
    .alternative-item{
        grid-template-columns: 1fr 1fr ;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 20px;
    }
    .presentation-title {
        font-size: 24px;
    }

    .avocat-name {
        font-size: 14px;
    }

    .info-list li {
        font-size: 13px;
    }
    .alternative-item{
        grid-template-columns: 1fr ;
    }
    .principles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .presentation-content{
        grid-template-columns: 1fr;
    }
    .principles-grid-greffe{
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
/* Footer */
.footer {
    background: var(--bg-footer);
    color: rgba(255, 255, 255, 0.664);
    padding: 3rem 0 1rem;
}

.footer-section-titre{
    font-family: 'Merriweather', serif;
    color: white;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}
.footer p{
    line-height: 1.4;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.664);
    line-height: 1.4;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.newsletter {
    display: flex;
    margin-top: 1rem;
}

.newsletter input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
}

.newsletter button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 2rem;
}

.form-icon {
    display: flex;
    gap: 15px;
    list-style: none;
    margin-top: 20px;
}
.form-icon a {
    list-style: none;
    margin-bottom: 5px;
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.form-icon  a:hover {
    color: white;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #333333;
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.664);;
}
.bottom{
    display: flex;
    gap: 15px;
}
.bottom a{
    color: rgba(255, 255, 255, 0.664);;
    text-decoration: none;
    transition: color 0.3s;
    line-height: 1.4;
    font-size: 0.9rem;
}
.bottom a:hover{
     color: white;
}
@media (max-width: 1250px) {
    .container {
        max-width: 1150px;
        margin: 0 auto;
    }
}
@media (max-width: 880px) {
    .footer-bottom, .bottom {
        flex-direction: column;
        align-items: center;
    }
}
/*css de greffe*/
.hierachie{
    padding: 20px;
    margin-bottom: 40px;
}
.hierachie-description{
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: -20px;
}
/* FAQ Section */
.tag-section {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
}
details {
    margin-bottom: 15px;
}
summary {
    font-family: 'Merriweather', serif;
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    padding: 10px;
    border-radius: 4px;
    color: var(--secondary-color);
}
summary:hover {
    background-color: #f0f0f0;
}
.example {
    border-left: 4px solid var(--accent-color);
    margin: 10px 0;
    margin-left: 20px;
    background-color: var(--font-bg);
    padding: 15px;
}
/* Présidente Section (photo à gauche, texte à droite, justification, marges) */
.presidente-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    align-items: flex-start;
    margin-top: 30px;
}
.presidente-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: justify;
    margin-right: 20px;
}
.presidente-title {
    font-family: 'Merriweather', serif;
    color: var(--primary-color);
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.presidente-description {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
    margin-top: 15px;
}
.presidente-image {
    border-radius: 8px;
    min-height: 300px;
    width: 100%;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(24, 49, 104, 0.08);
    margin-left: 0;
}
.social-icons {
    margin-top: 10px;
    gap: 10px;
}
.social-icons a {
    color: var(--primary-color);
    font-size: 1.3rem;
    transition: color 0.2s;
}
.social-icons a:hover {
    color: var(--secondary-color);
}
@media (max-width: 900px) {
    .presidente-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .presidente-image {
        min-height: 220px;
        margin-bottom: 20px;
    }
    .presidente-content {
        margin-right: 0;
    }
}
main {
    max-width: 90%;
    margin-left: 5%;
    margin-top: 3px;
}