/* Variables et reset */
:root {
    --bleu-fonce: #1a4b8c;
    --bleu-moyen: #2a6ec6;
    --bleu-clair: #e6f0fa;
    --jaune-or: #ffc72c;
    --jaune-or-fonce: #e6b325;
    --texte-noir: #333333;
    --texte-blanc: #ffffff;
    --gris-clair: #f5f5f5;
    --ombre-portee: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

body {
    padding-top: 80px;
    background: rgba(255, 255, 255, 0.95);
    background-attachment: fixed;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--texte-noir);
    font-weight: 400;
    font-size: 1.05rem;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Effets de fond avec la croix */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '✟';
    position: fixed;
    font-size: 800px;
    color: rgba(26, 75, 140, 0.08) !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

/* S'assurer que le contenu est au-dessus de la croix */
.container,
section {
    position: relative;
    z-index: 1;
}

/* Conteneur principal pour éviter les débordements */
.main-container {
    max-width: 100vw;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--bleu-fonce);
}

/* Hero section */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Content section */
.content {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.content h2 {
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    font-size: 2.1rem;
    text-align: center;
    letter-spacing: 0.3px;
}

.content h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--jaune-or);
    border-radius: 2px;
}

/* Section Présentation */
.presentation {
    background-color: var(--texte-blanc);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--ombre-portee);
    margin-top: 3rem;
    border: 1px solid var(--bleu-clair);
    position: relative;
    overflow: hidden;
    transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.presentation:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(26, 75, 140, 0.15);
}

.presentation::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--bleu-fonce), var(--bleu-moyen));
}

.presentation h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    position: relative;
    text-align: left;
}

.presentation h2::after {
    left: 0;
    transform: none;
    width: 80px;
    background: var(--jaune-or);
}

.presentation img {
    width: 350px;
    height: 250px;
    object-fit: cover;
    border: 4px solid var(--bleu-clair);
    border-radius: 8px;
    margin: 0 2rem 1.5rem 0;
    box-shadow: var(--ombre-portee);
    transition: transform 0.6s ease, box-shadow 0.6s ease;
    float: left;
    shape-outside: margin-box;
}

.presentation img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(26, 75, 140, 0.2);
}

.presentation p {
    font-size: 1.08rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.presentation strong {
    color: var(--bleu-fonce);
    font-weight: 600;
}

.presentation a {
    display: inline-block;
    margin-top: 1rem;
    color: var(--bleu-fonce);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.6s ease;
}

.presentation a:hover {
    color: var(--bleu-moyen);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .presentation {
        padding: 2rem;
    }

    .presentation h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 1rem;
    }

    .presentation img {
        width: 100%;
        height: auto;
        float: none;
        margin: 0 0 1.5rem 0;
    }

    .content h2 {
        font-size: 1.9rem;
    }
}

@media (max-width: 600px) {
    .presentation {
        padding: 1.5rem;
    }

    .presentation h2 {
        font-size: 1.6rem;
    }

    .presentation p {
        font-size: 0.98rem;
    }
}

@media (max-width: 480px) {
    .presentation {
        padding: 1.2rem;
    }

    .presentation::before {
        width: 4px;
    }

    .content h2::after {
        width: 60px;
    }
}



/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.18);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.5s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #1ebe57;
}

/* FAQ Section - Version corrigée */
.faq-box {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.534);
    padding: 24px 20px;
    margin: 0 auto 30px;
    width: 90%;
    max-width: 1000px;
}

.faq-form {
    margin: 0 auto;
    /* Centrage */
    width: 100%;
    /* Pleine largeur */
    max-width: 800px;
    /* Largeur max du formulaire */
}

.faq-box h2 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.8rem;
    /* Taille plus grande */
    padding: 10px 0;
    /* Espacement vertical */
    text-align: center;
}

.faq-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.faq-list li {
    margin-bottom: 20px;
    padding: 0 10px;
    /* Espacement latéral */
}

/* Style FAQ simplifié - remplacé par le style principal plus bas */

.faq-a {
    display: none;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.6;
    padding: 0 5px;
}

.faq-q.open+.faq-a {
    display: block;
}

.faq-form label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3e50;
}

.faq-form input,
.faq-form textarea {
    width: 100%;
    /* Pleine largeur */
    margin-bottom: 15px;
    padding: 10px 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 1rem;
    transition: border 0.6s ease;
}

.faq-form input:focus,
.faq-form textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.faq-form textarea {
    resize: vertical;
    min-height: 100px;
}

.faq-form button {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.6s ease;
    display: block;
    width: auto;
    margin: 0 auto;
}

.faq-form button:hover {
    background: #2980b9;
}

.faq-success {
    color: #2ecc71;
    margin-top: 10px;
    font-size: 1rem;
    text-align: center;
    padding: 10px;
}

/* Animations */
.faq-a {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* Responsive */
@media (max-width: 992px) {
    .faq-box {
        padding: 20px 15px;
        width: 95%;
    }

    .faq-box h2 {
        font-size: 1.6rem;
    }

    .faq-q {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .faq-box {
        padding: 18px 12px;
        border-radius: 8px;
    }

    .faq-box h2 {
        font-size: 1.4rem;
    }

    .faq-form input,
    .faq-form textarea {
        padding: 8px 10px;
    }

    .faq-form button {
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .faq-box {
        padding: 15px 10px;
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
    }

    .faq-box h2 {
        font-size: 1.3rem;
        padding: 5px 0;
    }

    .faq-list li {
        margin-bottom: 15px;
    }

    .faq-form textarea {
        min-height: 80px;
    }
}

/* Hero Carousel Styles */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 90vh;
    margin-top: 0;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    height: 100%;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.carousel-slide:hover img {
    transform: scale(1.02);
}

.carousel-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--texte-blanc);
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    animation: heroContentEntrance 2.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

.hero-content h1 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 4em;
    margin-bottom: 20px;
    color: var(--jaune-or);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    line-height: 1.2;
    animation: titleGlow 3s ease-in-out 0.5s forwards;
    opacity: 0;
}

.hero-content p {
    font-size: 1.25rem;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 300;
    line-height: 1.6;
    animation: textSlideIn 2s ease-out 1s forwards;
    opacity: 0;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 75, 140, 0.7);
    color: var(--texte-blanc);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.carousel-nav:hover {
    background: rgba(26, 75, 140, 0.9);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(26, 75, 140, 0.4);
}

.carousel-prev {
    left: 30px;
}

.carousel-next {
    right: 30px;
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

.carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.6s ease;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.carousel-dot.active {
    background: var(--jaune-or);
    border-color: var(--jaune-or);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Animations améliorées */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 75, 140, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(26, 75, 140, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(26, 75, 140, 0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Nouvelles animations pour hero-content */
@keyframes heroContentEntrance {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3) rotate(-10deg);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
}

@keyframes titleGlow {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.8);
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }
    50% {
        opacity: 1;
        transform: translateY(0) scale(1.05);
        text-shadow: 
            0 0 20px rgba(255, 199, 44, 0.8),
            0 0 40px rgba(255, 199, 44, 0.5),
            2px 2px 4px rgba(0, 0, 0, 0.5);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        text-shadow: 
            0 0 10px rgba(255, 199, 44, 0.6),
            2px 2px 4px rgba(0, 0, 0, 0.5);
    }
}

@keyframes textSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-100px);
        filter: blur(10px);
    }
    60% {
        opacity: 0.8;
        transform: translateX(10px);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Animation classes */
.animate-slide-left {
    animation: slideInFromLeft 0.8s ease-out forwards;
}

.animate-slide-right {
    animation: slideInFromRight 0.8s ease-out forwards;
}

.animate-fade-scale {
    animation: fadeInScale 0.6s ease-out forwards;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Enhanced presentation animations */
.presentation {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.presentation.visible {
    opacity: 1;
    transform: translateY(0);
}

.presentation:nth-child(even) {
    transform: translateX(-30px);
}

.presentation:nth-child(even).visible {
    transform: translateX(0);
}

.presentation:nth-child(odd) {
    transform: translateX(30px);
}

.presentation:nth-child(odd).visible {
    transform: translateX(0);
}

/* Enhanced history period animations */
.history-period {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 0.6s ease;
}

.history-period.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Enhanced FAQ animations */
.faq-list li {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
}

.faq-list li.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Effet de brillance sur les questions FAQ */
.faq-q {
    position: relative;
    overflow: hidden;
}

.faq-q::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 199, 44, 0.3), transparent);
    transition: left 0.6s ease;
}

.faq-q:hover::before {
    left: 100%;
}

/* Read More/Less functionality */
.read-more-content {
    display: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.read-more-content.show {
    display: block;
    opacity: 1;
    max-height: 1000px;
}

.read-more-btn {
    background: var(--bleu-clair);
    color: var(--bleu-fonce);
    border: 2px solid var(--bleu-moyen);
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.read-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 199, 44, 0.3), transparent);
    transition: left 0.5s;
}

.read-more-btn:hover {
    background: var(--bleu-moyen);
    color: var(--texte-blanc);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 110, 198, 0.4);
}

.read-more-btn:hover::before {
    left: 100%;
}

.presentation img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* History section styles */
.history-section {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.section-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.history-period {
    margin-bottom: 30px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.period-title {
    color: #3498db;
    margin-top: 0;
    font-size: 1.4rem;
    border-left: 4px solid #3498db;
    padding-left: 10px;
}

.period-content {
    line-height: 1.6;
}

.timeline-list {
    list-style-type: none;
    padding-left: 20px;
}

.timeline-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.timeline-list li:before {
    content: "•";
    color: #3498db;
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: -3px;
}

/* Timeline des curés - Version moderne avec cartes */
.priests-timeline-modern {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 0;
}

.priests-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    position: relative;
}

/* Ligne de connexion entre les cartes */
.priests-cards-container::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: linear-gradient(90deg, var(--bleu-fonce), var(--jaune-or), var(--bleu-moyen));
    border-radius: 3px;
    z-index: 0;
}

.priest-card {
    background: linear-gradient(135deg, var(--texte-blanc), var(--bleu-clair));
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(26, 75, 140, 0.1);
    border: 2px solid transparent;
    z-index: 1;
    animation-fill-mode: forwards;
}

.priest-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 199, 44, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.priest-item:hover::before {
    transform: translateX(100%);
}

.priest-item h1 {
    font-size: 0.7rem;
    margin: 8px 4px 4px;
    color: var(--bleu-fonce);
    line-height: 1.2;
    font-weight: 600;
    text-shadow: none;
}

.priest-item p {
    font-size: 0.65rem;
    margin: 4px;
    color: var(--texte-noir);
    font-weight: 500;
    background: rgba(255, 199, 44, 0.2);
    padding: 2px 4px;
    border-radius: 4px;
}

/* Hauteurs différentes pour créer l'effet histogramme */
.priest-item:nth-child(1) { height: 120px; animation: riseUp 0.8s ease-out 0.2s forwards; }
.priest-item:nth-child(2) { height: 140px; animation: riseUp 0.8s ease-out 0.4s forwards; }
.priest-item:nth-child(3) { height: 130px; animation: riseUp 0.8s ease-out 0.6s forwards; }
.priest-item:nth-child(4) { height: 110px; animation: riseUp 0.8s ease-out 0.8s forwards; }
.priest-item:nth-child(5) { height: 105px; animation: riseUp 0.8s ease-out 1.0s forwards; }
.priest-item:nth-child(6) { height: 105px; animation: riseUp 0.8s ease-out 1.2s forwards; }
.priest-item:nth-child(7) { height: 115px; animation: riseUp 0.8s ease-out 1.4s forwards; }
.priest-item:nth-child(8) { height: 125px; animation: riseUp 0.8s ease-out 1.6s forwards; }
.priest-item:nth-child(9) { height: 135px; animation: riseUp 0.8s ease-out 1.8s forwards; }
.priest-item:nth-child(10) { height: 100px; animation: riseUp 0.8s ease-out 2.0s forwards; }
.priest-item:nth-child(11) { height: 160px; animation: riseUp 0.8s ease-out 2.2s forwards; }

.priest-item.current {
    background: linear-gradient(to top, var(--jaune-or), #fff3b8);
    border-color: var(--jaune-or-fonce);
    box-shadow: 0 0 20px rgba(255, 199, 44, 0.4);
    animation: riseUpCurrent 1s ease-out 2.2s forwards;
}

.priest-item.current::after {
    content: '⭐';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    animation: starBounce 2s infinite ease-in-out;
}

.priest-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 25px rgba(26, 75, 140, 0.3);
    z-index: 10;
}

.priest-item:hover h1 {
    color: var(--jaune-or-fonce);
}

/* Animations */
@keyframes riseUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes riseUpCurrent {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translateY(-5px) scale(1.1);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes starBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Tooltip pour plus d'informations */
.priest-item .tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bleu-fonce);
    color: var(--texte-blanc);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 20;
}

.priest-item .tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--bleu-fonce);
}

.priest-item:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* Légende de l'histogramme */
.timeline-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: var(--texte-blanc);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    opacity: 0;
    animation: fadeInLegend 0.5s ease-out 3s forwards;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.legend-color.normal {
    background: var(--bleu-clair);
    border: 2px solid var(--bleu-moyen);
}

.legend-color.current {
    background: var(--jaune-or);
    border: 2px solid var(--jaune-or-fonce);
}

@keyframes fadeInLegend {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes priestParticle {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -80px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -120px) scale(0.5);
    }
}

/* Animation de la ligne de base */
.priests-timeline::before {
    background: linear-gradient(to right, var(--bleu-fonce) var(--line-width, 0%), transparent var(--line-width, 0%));
    transition: all 2s ease-in-out;
}

/* Effet de brillance sur hover pour tout l'histogramme */
.priests-timeline:hover .priest-item {
    filter: brightness(1.1);
}

.priests-timeline:hover .priest-item:not(:hover) {
    filter: brightness(0.8);
    opacity: 0.7;
}

/* Responsive pour l'histogramme */
@media (max-width: 768px) {
    .priests-grid {
        gap: 4px;
        min-height: 250px;
        padding: 0 10px;
    }
    
    .priest-item {
        min-width: 60px;
        max-width: 90px;
    }
    
    .priest-item h1 {
        font-size: 0.6rem;
        margin: 6px 2px 2px;
    }
}

/* Amélioration mobile générale */
@media (max-width: 480px) {
    /* FAQ responsive */
    .faq-box {
        margin: 0 10px 20px;
        padding: 15px;
        width: calc(100% - 20px);
    }
    
    .faq-q {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .faq-a {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    /* Amélioration des sections de contenu */
    .presentation {
        padding: 1rem;
        margin: 15px 10px;
    }
    
    .presentation img {
        width: 100%;
        margin: 10px 0;
    }
    
    /* Footer responsive */
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: 20px;
    }
    
    /* Histoire section responsive */
    .history-period {
        padding: 15px;
        margin: 10px 0;
    }
    
    .period-title {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    /* Listes responsive */
    .baptism-list, .timeline-list {
        padding-left: 20px;
    }
    
    .baptism-list li, .timeline-list li {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
}
    
    .priest-item p {
        font-size: 0.55rem;
        margin: 2px;
        padding: 1px 2px;
    }
    
    .priest-item:nth-child(1) { height: 100px; }
    .priest-item:nth-child(2) { height: 120px; }
    .priest-item:nth-child(3) { height: 110px; }
    .priest-item:nth-child(4) { height: 90px; }
    .priest-item:nth-child(5) { height: 85px; }
    .priest-item:nth-child(6) { height: 85px; }
    .priest-item:nth-child(7) { height: 95px; }
    .priest-item:nth-child(8) { height: 105px; }
    .priest-item:nth-child(9) { height: 115px; }
    .priest-item:nth-child(10) { height: 80px; }
    .priest-item:nth-child(11) { height: 140px; }


.vocations-container {
    display: flex;
    gap: 30px;
}

.vocations-column {
    flex: 1;
}

/* Améliorations responsives pour les vocations */
@media (max-width: 768px) {
    .vocations-container {
        flex-direction: column;
        gap: 20px;
    }
}

/* Améliorations pour les images */
img {
    max-width: 100%;
    height: auto;
}

/* Conteneurs flexibles pour éviter les débordements */
.content, .presentation, .history-section {
    max-width: 100%;
    overflow-x: hidden;
}

/* Tableaux responsives */
table {
    width: 100%;
    overflow-x: auto;
    display: block;
    white-space: nowrap;
}

@media (max-width: 768px) {
    table {
        font-size: 0.8rem;
    }
}

/* Améliorations pour les listes */
ul, ol {
    padding-left: 20px;
}

@media (max-width: 480px) {
    ul, ol {
        padding-left: 15px;
    }
}

.daughter-parishes {
    padding-left: 20px;
}

@media (max-width: 900px) {
    .faq-box {
        max-width: 100%;
    }

    .vocations-container {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .priests-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive Hero Carousel */
@media (max-width: 992px) {
    .hero-carousel {
        height: 100vh;
    }
    
    .hero-content h1 {
        font-size: 3.2em;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .carousel-nav {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .carousel-prev {
        left: 20px;
    }
    
    .carousel-next {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .hero-carousel {
        height: 100vh;
    }
    
    .hero-content {
        max-width: 90%;
    }
    
    .hero-content h1 {
        font-size: 2.8em;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .carousel-nav {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .carousel-prev {
        left: 15px;
    }
    
    .carousel-next {
        right: 15px;
    }
    
    .carousel-indicators {
        bottom: 20px;
        gap: 10px;
    }
    
    .carousel-dot {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 600px) {
    .hero-carousel {
        height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2.1rem;
        line-height: 1.1;
    }
    
    .hero-content p {
        font-size: 0.95rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        height: 350px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .carousel-indicators {
        bottom: 15px;
        gap: 8px;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}

/* Ajouter à asset/styles/index.css */
.faq-list li {
    margin-bottom: 20px;
    padding: 5px;
    background: transparent;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.faq-list li:hover {
    transform: translateY(-2px);
}

.faq-q {
    font-weight: 600;
    color: var(--bleu-fonce);
    cursor: pointer;
    display: block;
    padding: 12px 15px;
    background: var(--texte-blanc);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.faq-q:hover {
    background: var(--bleu-clair);
    border-color: var(--bleu-moyen);
    transform: translateY(-1px);
}

.faq-q.open {
    background: var(--jaune-or);
    color: var(--texte-noir);
    border-color: var(--jaune-or-fonce);
    font-weight: 700;
}

/* Ajout d'icônes pour indiquer l'état */
.faq-q::after {
    content: '+';
    float: right;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--bleu-moyen);
    transition: all 0.3s ease;
}

.faq-q.open::after {
    content: '−';
    color: var(--texte-noir);
    transform: rotate(180deg);
}

.faq-a {
    display: none;
    padding: 15px;
    margin-top: 10px;
    background: #f8fafe;
    border-radius: 6px;
    border-left: 4px solid var(--jaune-or);
    line-height: 1.7;
    color: var(--texte-noir);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}

.faq-q.open + .faq-a {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   AMÉLIORATIONS RESPONSIVES CONSOLIDÉES
   ============================================ */

/* Améliorations pour très petits écrans */
@media (max-width: 320px) {
    body {
        font-size: 0.9rem;
        padding-top: 70px;
    }
    
    .nav-logo h2 {
        font-size: 1rem;
    }
    
    .hero-carousel {
        height: 300px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.8rem;
    }
    
    .presentation {
        padding: 0.8rem;
        margin: 10px 5px;
    }
    
    .faq-box {
        margin: 0 5px 15px;
        padding: 12px;
    }
}

/* Améliorations pour orientation paysage sur mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-carousel {
        height: 400px;
    }
    
    .nav-menu {
        height: 100vh;
        overflow-y: auto;
    }
}

/* Améliorations pour tablettes en mode portrait */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-carousel {
        height: 550px;
    }
    
    .presentation {
        padding: 2rem 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Corrections pour les débordements horizontaux */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Amélioration des interactions tactiles */
@media (hover: none) and (pointer: coarse) {
    .carousel-nav,
    .nav-link,
    .faq-q,
    .read-more-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .carousel-nav {
        opacity: 0.8;
    }
}

/* ============================================
   STYLES POUR LA TIMELINE MODERNE DES CURÉS
   ============================================ */

.priest-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 199, 44, 0.1), rgba(26, 75, 140, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
}

.priest-card:hover::before {
    opacity: 1;
}

.priest-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(26, 75, 140, 0.2);
    border-color: var(--jaune-or);
}

.priest-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--bleu-moyen), var(--bleu-fonce));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--texte-blanc);
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(26, 75, 140, 0.3);
    transition: all 0.3s ease;
}

.priest-card:hover .priest-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(26, 75, 140, 0.4);
}

.priest-card h4 {
    color: var(--bleu-fonce);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.2;
}

.priest-card .period {
    display: block;
    color: var(--jaune-or-fonce);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.priest-card .duration {
    display: inline-block;
    background: var(--jaune-or);
    color: var(--texte-noir);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.priest-card .description {
    color: var(--texte-noir);
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    opacity: 0.8;
}

/* Styles spéciaux pour différents types de curés */
.priest-card.founder .priest-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

/* Tous les autres curés précédents gardent le style par défaut (bleu) */

.priest-card.current {
    border: 2px solid var(--jaune-or);
    background: linear-gradient(135deg, #fff9e6, var(--bleu-clair));
}

.priest-card.current .priest-icon {
    background: linear-gradient(135deg, var(--jaune-or), #f39c12);
    color: var(--texte-noir);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Légende moderne */
.timeline-legend-modern {
    margin-top: 40px;
    padding: 25px;
    background: var(--texte-blanc);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.legend-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--bleu-fonce);
    font-size: 1rem;
}

.stat-item i {
    color: var(--jaune-or);
    font-size: 1.2rem;
}

.legend-colors {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.color-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--texte-noir);
}

.color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.color-dot.founder {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.color-dot.normal {
    background: linear-gradient(135deg, var(--bleu-moyen), var(--bleu-fonce));
}

.color-dot.current {
    background: linear-gradient(135deg, var(--jaune-or), #f39c12);
    animation: pulse 2s infinite;
}

/* Responsive pour la timeline moderne */
@media (max-width: 768px) {
    .priests-cards-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .priests-cards-container::before {
        display: none;
    }
    
    .priest-card {
        padding: 20px;
    }
    
    .priest-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .legend-stats {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .legend-colors {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .priest-card {
        padding: 15px;
    }
    
    .priest-card h4 {
        font-size: 1rem;
    }
    
    .timeline-legend-modern {
        padding: 20px;
    }
}

/* ============================================
   STYLES POUR LES PÉRIODES HISTORIQUES
   ============================================ */

/* Styles communs pour les intro de périodes */
.period-intro {
    margin-bottom: 30px;
    text-align: center;
}

.period-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    gap: 15px;
}

.timeline-marker {
    background: linear-gradient(135deg, var(--bleu-moyen), var(--bleu-fonce));
    color: var(--texte-blanc);
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(26, 75, 140, 0.3);
}

.timeline-marker.start {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.timeline-marker.end {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.timeline-line {
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, var(--bleu-fonce), var(--jaune-or), var(--bleu-moyen));
    border-radius: 3px;
}

.period-description {
    font-size: 1.1rem;
    color: var(--texte-noir);
    font-style: italic;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* PÉRIODE 1 - Évangélisation */
.evangelization-content {
    display: grid;
    gap: 25px;
}

.evangelization-card {
    background: linear-gradient(135deg, var(--texte-blanc), #f8f9fa);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(26, 75, 140, 0.1);
    transition: all 0.3s ease;
}

.evangelization-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 75, 140, 0.15);
}

.evangelization-card.highlight {
    border-color: var(--jaune-or);
    background: linear-gradient(135deg, #fff9e6, var(--bleu-clair));
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.card-header h4 {
    color: var(--bleu-fonce);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.year-badge {
    background: var(--bleu-moyen);
    color: var(--texte-blanc);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.year-badge.special {
    background: linear-gradient(135deg, var(--jaune-or), #f39c12);
    color: var(--texte-noir);
}

.baptized-names {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.baptized-person {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.7);
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid var(--jaune-or);
}

.person-number {
    background: var(--jaune-or);
    color: var(--texte-noir);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.person-name {
    font-weight: 600;
    color: var(--bleu-fonce);
    font-size: 0.9rem;
}

.regions-covered {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.region-tag {
    background: var(--bleu-clair);
    color: var(--bleu-fonce);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* PÉRIODE 2 - Missionnaire */
.missionary-timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.milestone-card {
    display: flex;
    gap: 25px;
    background: linear-gradient(135deg, var(--texte-blanc), #f8f9fa);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(26, 75, 140, 0.1);
    transition: all 0.3s ease;
}

.milestone-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(26, 75, 140, 0.15);
}

.milestone-card.featured {
    border-color: var(--jaune-or);
    background: linear-gradient(135deg, #fff9e6, var(--bleu-clair));
}

.milestone-card.founding {
    border-color: #27ae60;
    background: linear-gradient(135deg, #f0fff4, var(--texte-blanc));
}

.milestone-year {
    background: linear-gradient(135deg, var(--bleu-moyen), var(--bleu-fonce));
    color: var(--texte-blanc);
    padding: 15px;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(26, 75, 140, 0.3);
}

.milestone-content h4 {
    color: var(--bleu-fonce);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.missionaries-list {
    display: flex;
    gap: 15px;
    margin: 10px 0;
}

.missionary-name {
    background: var(--bleu-clair);
    color: var(--bleu-fonce);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.host-family {
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    border-left: 4px solid var(--jaune-or);
}

.host-label {
    font-weight: 600;
    color: var(--bleu-fonce);
    display: block;
    margin-bottom: 8px;
}

.host-names {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.host-person {
    font-weight: 500;
    color: var(--texte-noir);
}

.host-person.special {
    color: var(--jaune-or-fonce);
    font-weight: 600;
}

.host-relation {
    font-size: 0.9rem;
    color: var(--texte-noir);
    opacity: 0.8;
    font-style: italic;
}

.founding-events {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.founding-event {
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--bleu-moyen);
}

.founding-event.main-event {
    border-left-color: #27ae60;
    background: rgba(39, 174, 96, 0.05);
}

.event-date {
    background: var(--jaune-or);
    color: var(--texte-noir);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
}

.parish-name {
    color: var(--bleu-fonce);
    font-weight: 700;
    background: var(--bleu-clair);
    padding: 2px 8px;
    border-radius: 12px;
}

.event-note {
    font-size: 0.9rem;
    color: var(--texte-noir);
    opacity: 0.8;
    font-style: italic;
    margin-top: 5px;
}

/* PÉRIODE 3 - Diocèse */
.diocesan-connection {
    max-width: 800px;
    margin: 0 auto;
}

.connection-intro {
    text-align: center;
    margin-bottom: 40px;
}

.connection-description {
    font-size: 1.1rem;
    color: var(--texte-noir);
    line-height: 1.6;
    font-style: italic;
    opacity: 0.9;
}

.diocesan-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.diocesan-step {
    position: relative;
    display: flex;
    align-items: center;
}

.step-connector {
    position: absolute;
    left: 60px;
    top: 80px;
    width: 3px;
    height: 60px;
    background: linear-gradient(180deg, var(--bleu-moyen), var(--jaune-or));
}

.step-connector.first {
    background: linear-gradient(180deg, transparent, var(--bleu-moyen));
    height: 30px;
    top: 80px;
}

.step-connector.last {
    background: linear-gradient(180deg, var(--jaune-or), transparent);
    height: 30px;
    top: -30px;
}

.step-card {
    background: linear-gradient(135deg, var(--texte-blanc), #f8f9fa);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(26, 75, 140, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    margin-left: 100px;
}

.step-card:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(26, 75, 140, 0.15);
}

.step-card.highlight {
    border-color: var(--jaune-or);
    background: linear-gradient(135deg, #fff9e6, var(--bleu-clair));
}

.step-date {
    position: absolute;
    left: -80px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--bleu-moyen), var(--bleu-fonce));
    color: var(--texte-blanc);
    padding: 10px;
    border-radius: 50%;
    width: 120px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(26, 75, 140, 0.3);
    text-align: center;
    line-height: 1.2;
}

.step-title {
    color: var(--bleu-fonce);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.origin-note, .impact-note {
    background: rgba(255, 255, 255, 0.7);
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
}

.origin-label, .impact-text {
    font-size: 0.9rem;
}

.origin-label {
    font-weight: 600;
    color: var(--bleu-fonce);
}

.origin-source {
    color: var(--jaune-or-fonce);
    font-weight: 500;
}

.impact-text {
    color: var(--texte-noir);
    font-style: italic;
}

.institutional-summary {
    margin-top: 40px;
    text-align: center;
}

.summary-card {
    background: linear-gradient(135deg, var(--bleu-clair), #f0f7ff);
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    border: 2px solid rgba(26, 75, 140, 0.1);
}

.summary-icon {
    font-size: 2rem;
    color: var(--jaune-or);
}

.summary-text h5 {
    color: var(--bleu-fonce);
    font-size: 1.2rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.summary-text p {
    color: var(--texte-noir);
    margin: 0;
    line-height: 1.5;
}

/* Responsive pour les périodes historiques */
@media (max-width: 768px) {
    .period-timeline {
        flex-direction: column;
        gap: 10px;
    }
    
    .timeline-line {
        width: 30px;
        transform: rotate(90deg);
    }
    
    .evangelization-content {
        gap: 20px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .baptized-names {
        flex-direction: column;
        gap: 10px;
    }
    
    .milestone-card {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .milestone-year {
        width: 60px;
        height: 60px;
        font-size: 1rem;
        align-self: center;
    }
    
    .step-card {
        margin-left: 0;
    }
    
    .step-date {
        position: static;
        transform: none;
        width: 100px;
        height: 50px;
        margin-bottom: 15px;
        align-self: center;
    }
    
    .step-connector {
        display: none;
    }
    
    .summary-card {
        flex-direction: column;
        text-align: center;
    }
}

/* PÉRIODE 4 - Développement et infrastructures */
.development-timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.development-section {
    background: linear-gradient(135deg, var(--texte-blanc), #f8f9fa);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(26, 75, 140, 0.1);
    transition: all 0.3s ease;
}

.development-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 75, 140, 0.15);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h4 {
    color: var(--bleu-fonce);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.section-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--texte-blanc);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.leadership-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.education-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.construction-icon {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.vision-icon {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.development-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid var(--bleu-moyen);
    transition: all 0.3s ease;
}

.development-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
}

.development-card.featured {
    border-left-color: var(--jaune-or);
    background: linear-gradient(135deg, #fff9e6, rgba(255, 255, 255, 0.9));
}

.development-card.presidential {
    border-left-color: #27ae60;
    background: linear-gradient(135deg, #f0fff4, rgba(255, 255, 255, 0.9));
}

.card-title {
    color: var(--bleu-fonce);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.education-projects {
    display: grid;
    gap: 20px;
}

.project-year {
    background: var(--jaune-or);
    color: var(--texte-noir);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

.construction-phases {
    display: grid;
    gap: 20px;
}

.construction-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(26, 75, 140, 0.1);
}

.detail-label {
    font-weight: 600;
    color: var(--bleu-fonce);
}

.detail-value {
    color: var(--jaune-or-fonce);
    font-weight: 500;
}

.presidential-contribution {
    margin-top: 15px;
}

.contributor-name {
    color: var(--bleu-fonce);
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 10px;
}

.contribution-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.contribution-item {
    background: rgba(39, 174, 96, 0.1);
    color: var(--texte-noir);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
}

.vision-comparison {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
    gap: 20px;
    flex-wrap: wrap;
}

.vision-then, .vision-now {
    flex: 1;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    min-width: 200px;
}

.vision-then {
    background: rgba(231, 76, 60, 0.1);
    border: 2px solid rgba(231, 76, 60, 0.3);
}

.vision-now {
    background: rgba(39, 174, 96, 0.1);
    border: 2px solid rgba(39, 174, 96, 0.3);
}

.vision-period {
    display: block;
    font-weight: 700;
    color: var(--bleu-fonce);
    margin-bottom: 5px;
}

.vision-status {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.vision-desc {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
}

.vision-arrow {
    font-size: 2rem;
    color: var(--jaune-or);
    font-weight: 700;
}

.vision-message {
    background: rgba(155, 89, 182, 0.1);
    padding: 15px;
    border-radius: 10px;
    font-style: italic;
    margin-top: 15px;
    border-left: 4px solid #9b59b6;
}

/* PÉRIODE 5 - Présence religieuse féminine */
.religious-presence {
    max-width: 900px;
    margin: 0 auto;
}

.congregation-spotlight {
    background: linear-gradient(135deg, var(--texte-blanc), #f8f9fa);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(26, 75, 140, 0.1);
}

.congregation-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.congregation-icon .icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e91e63, #c2185b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--texte-blanc);
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.congregation-info h4 {
    color: var(--bleu-fonce);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.arrival-period {
    background: var(--jaune-or);
    color: var(--texte-noir);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.mission-description {
    background: rgba(233, 30, 99, 0.05);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 4px solid #e91e63;
}

.mission-description p {
    color: var(--texte-noir);
    line-height: 1.6;
    margin: 0;
    font-size: 1.1rem;
}

.service-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.service-category {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(26, 75, 140, 0.1);
    transition: all 0.3s ease;
}

.service-category:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--texte-blanc);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.service-icon.spiritual {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.service-icon.education {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.service-icon.social {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.service-icon.community {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.service-content h5 {
    color: var(--bleu-fonce);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.service-content p {
    color: var(--texte-noir);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    opacity: 0.8;
}

.impact-summary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.impact-card {
    display: flex;
    gap: 20px;
    background: linear-gradient(135deg, #fff9e6, var(--bleu-clair));
    padding: 25px;
    border-radius: 12px;
    border: 2px solid rgba(255, 199, 44, 0.3);
}

.impact-icon {
    font-size: 2rem;
    color: var(--jaune-or);
    flex-shrink: 0;
}

.impact-text h5 {
    color: var(--bleu-fonce);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.impact-text p {
    color: var(--texte-noir);
    line-height: 1.5;
    margin: 0;
}

.legacy-note {
    background: rgba(233, 30, 99, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(233, 30, 99, 0.2);
}

.legacy-content {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.legacy-label {
    font-weight: 700;
    color: #e91e63;
    font-size: 1rem;
}

.legacy-text {
    color: var(--texte-noir);
    line-height: 1.5;
    font-style: italic;
}

/* Responsive pour les périodes 4 et 5 */
@media (max-width: 768px) {
    .development-section {
        padding: 20px;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
    }
    
    .section-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .contribution-list {
        grid-template-columns: 1fr;
    }
    
    .vision-comparison {
        flex-direction: column;
    }
    
    .vision-arrow {
        transform: rotate(90deg);
    }
    
    .congregation-header {
        flex-direction: column;
        text-align: center;
    }
    
    .congregation-icon .icon-circle {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .service-areas {
        grid-template-columns: 1fr;
    }
    
    .service-category {
        flex-direction: column;
        text-align: center;
    }
    
    .impact-card {
        flex-direction: column;
        text-align: center;
    }
    
    .legacy-content {
        flex-direction: column;
        gap: 5px;
    }
}

/* ============================================
   STYLES POUR LES PAROISSES ISSUES
   ============================================ */

.parishes-intro {
    font-size: 1.1rem;
    color: var(--texte-noir);
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: center;
    font-style: italic;
    opacity: 0.9;
}

.daughter-parishes-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.parish-card {
    background: linear-gradient(135deg, var(--texte-blanc), #f8f9fa);
    border-radius: 12px;
    padding: 25px;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(26, 75, 140, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.parish-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(26, 75, 140, 0.15);
    border-color: var(--jaune-or);
}

.parish-number {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--bleu-moyen), var(--bleu-fonce));
    color: var(--texte-blanc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 3px 10px rgba(26, 75, 140, 0.3);
}

.parish-card h4 {
    color: var(--bleu-fonce);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 15px 0 10px;
    line-height: 1.3;
}

.parish-description {
    color: var(--texte-noir);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.8;
}

/* Section résumé des paroisses */
.parishes-summary {
    margin-top: 40px;
    padding: 25px;
    background: linear-gradient(135deg, var(--bleu-clair), #f0f7ff);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    border: 2px solid rgba(26, 75, 140, 0.1);
}

.summary-stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bleu-fonce);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--texte-noir);
    font-weight: 600;
    opacity: 0.8;
}

.summary-text {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.summary-text p {
    color: var(--bleu-fonce);
    font-size: 1rem;
    font-style: italic;
    margin: 0;
    font-weight: 500;
}

/* Animation d'apparition progressive */
.parish-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.parish-card:nth-child(1) { animation-delay: 0.1s; }
.parish-card:nth-child(2) { animation-delay: 0.2s; }
.parish-card:nth-child(3) { animation-delay: 0.3s; }
.parish-card:nth-child(4) { animation-delay: 0.4s; }

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

/* Responsive pour les paroisses */
@media (max-width: 768px) {
    .daughter-parishes-modern {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .parish-card {
        padding: 20px;
    }
    
    .parish-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        top: -12px;
        left: 15px;
    }
    
    .parishes-summary {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .parishes-intro {
        font-size: 1rem;
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .parish-card {
        padding: 18px;
        margin-top: 15px;
    }
    
    .parish-card h4 {
        font-size: 1.1rem;
    }
    
    .parish-description {
        font-size: 0.9rem;
    }
    
    .parishes-summary {
        padding: 20px;
    }
}
