
/* 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-top: 20px;
    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;
}

.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);
}

.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;
}
/* 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;
}
/*organigram*/
.organigramme {
    padding: 20px 0;
    
}

.tree .niveau {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.tree .li {
    list-style-type: none;
    text-align: center;
    position: relative;
    padding: 20px 10px 0 10px;
}

/* Lignes de connexion */
.tree .li::before,
.tree .li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 3px solid var(--accent-color);
    width: 50%;
    height: 20px;
}

.tree .li::after {
    right: auto;
    left: 50%;
    border-left: 3px solid var(--accent-color);
}

.tree .li:only-child::before,
.tree .li:only-child::after {
    display: none;
}

.tree .li:only-child {
    padding-top: 0;
}

.tree .li:first-child::before,
.tree .li:last-child::after {
    border: 0 none;
}

.tree .li:last-child::before {
    border-right: 3px solid var(--accent-color);
    border-radius: 0 8px 0 0;
}

.tree .li:first-child::after {
    border-radius: 8px 0 0 0;
}

/* Style des cartes */
.card-centered {
    width: 35%;
    margin: 0 auto; /* Centre horizontalement la carte */
}
.card img {
    height: 30vh;
}
.card {
    border: 1px solid var(--accent-color);
    margin-bottom: 20px;
}
.card-taille {
    display: inline-block;
    
}
.poste-card {
    background: white;
    padding: 1rem;
    transition: all 0.4s ease;
    position: relative;
    border-radius: 10px;
}

.card:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    border-color: var(--accent-color);
}

.card-header {
    border-bottom: 1.5px solid var(--primary-color);
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
}

.poste-card .subtitle {
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight:400;
}

.card-header-title {
    font-family: 'Merriweather', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}



 /* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color:  rgba(106, 121, 160, 0.4);
    backdrop-filter: blur(5px);

}

.modal-content p{
    font-size: 0.9rem;
    color: var(--text-light);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content-titre {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.modal-contents ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.modal-contents li {
    margin-bottom: 8px;
    color: var(--text-light);
}

.close-modal {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;font-size: 0.95rem;
}

.close-modal:hover {
    background: linear-gradient(135deg, var(--hover-color), var(--primary-color));
    transform: translateY(-2px);
}

.btn-toggle {
    background: var(--accent-color);
    border: none;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    width: 100%;
    margin-top: 10px;
}

.btn-toggle:hover {
    color: white;
    background: var(--hover-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-toggle:focus {
    box-shadow: 0 0 0 3px rgba(44, 52, 93, 0.25);
}

.president-card .card-header {
    border-bottom-color: var(--bg-footer);
}

.icon-badge {
    position: absolute;
    top: -20px;
    right: 25px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.president-card .icon-badge {
    background: #8b4513;
}
@media (max-width: 1100px) {
    .tree .li::before,
    .tree .li::after {
        display: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .tree .niveau {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: center;
    }
    
    .tree .li {
    margin: 10px 0;
    }
}
/* 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;
    }
}

/* Réduction de la taille des images à partir du niveau 3 */
.tree .niveau-n3 img,
.tree .niveau-n4 img,
.tree .niveau-n5 img {
    height: 15vh !important;
    object-fit: cover;
}


