/**
 * Fichier: /assets/css/style.css
 * Styles élaborés pour le site Reverenter.org
 * Une approche sophistiquée inspirée par l'esthétique liturgique traditionnelle
 */

/* Intégration de la police Old London */
@font-face {
    font-family: 'Old London';
    src: url('../../assets/fonts/OldLondon.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ====== VARIABLES GLOBALES ====== */
:root {
    /* Palette de couleurs principale */
    --primary: #800020; /* Bordeaux profond */
    --primary-light: #a33046; /* Bordeaux plus clair */
    --primary-dark: #5c0018; /* Bordeaux plus sombre */
    --secondary: #8B4513; /* Brun sépia */
    --secondary-light: #a56740; /* Brun plus clair */
    --gold: #D4AF37; /* Or traditionnel */
    --gold-light: #e8c357; /* Or plus clair */
    --gold-dark: #b3922a; /* Or plus foncé */
    --cream: #F5F5DC; /* Crème, couleur de parchemin */
    --cream-light: #fffef0; /* Crème plus claire */
    --light-bg: #FBF9F6; /* Fond clair subtil */
    --dark: #2C2C2C; /* Gris très foncé */
    --dark-light: #4e4e4e; /* Gris foncé plus clair */
    
    /* Typographie */
    --font-serif: 'Lora', 'Merriweather', Georgia, serif;
    --font-sans: 'Roboto Serif', Helvetica, Arial, sans-serif;
    
    /* Ombres et effets */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --transition-fast: all 0.2s ease;
    --transition-medium: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Bordures */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
}

/* ====== STYLES DE BASE ====== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--dark);
    background-color: var(--light-bg);
    line-height: 1.6;
    background-image: 
        linear-gradient(rgba(251, 249, 246, 0.97), rgba(251, 249, 246, 0.97)),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23d4af37' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-attachment: fixed;
}

::selection {
    background-color: var(--primary-light);
    color: white;
}

/* ====== TYPOGRAPHIE ====== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

h1 {
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

h1::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--gold), var(--gold-light));
    margin: 0.5rem auto 0;
}

h1.text-center::after {
    margin-left: auto;
    margin-right: auto;
}

h2 {
    color: var(--primary-dark);
    line-height: 1.4;
}

.h5, h5 {
    font-weight: 600;
    color: var(--primary);
}

p {
    margin-bottom: 1.2rem;
    color: var(--dark);
}

.text-primary {
    color: var(--primary) !important;
}

.lead {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--dark-light);
}

/* ====== LIENS ====== */
a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
}

a:hover {
    color: var(--primary-light);
}

a.custom-link {
    font-weight: 500;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}

a.custom-link:hover {
    border-bottom: 1px solid var(--primary);
}

/* ====== BOUTONS ====== */
.btn {
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 0.6rem 1.5rem;
    border-radius: var(--border-radius-md);
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-fast);
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-dark), var(--primary));
    border: none;
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.2);
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    box-shadow: 0 6px 20px rgba(128, 0, 32, 0.3);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-primary {
    color: var(--primary);
    border: 2px solid var(--primary);
    background: transparent;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(128, 0, 32, 0.15);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

/* ====== NAVIGATION ====== */
.navbar {
    padding: 0.8rem 1rem;
    transition: var(--transition-medium);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-scrolled {
    padding: 0.5rem 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: 'Old London', var(--font-serif);
    font-size: 2.2rem;
    font-weight: normal;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
}

.navbar-brand::before, .navbar-brand::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    background-color: var(--gold);
    border-radius: 50%;
    opacity: 0.8;
}

.navbar-brand::before {
    top: 0.5rem;
    left: -14px;
}

.navbar-brand::after {
    bottom: 0.5rem;
    right: -14px;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary)) !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    position: relative;
    transition: var(--transition-fast);
}

.navbar-dark .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: var(--transition-medium);
    transform: translateX(-50%);
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    width: 70%;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
}

.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
    font-weight: 600;
}

/* Style spécial pour la version "grande" du titre sur la page d'accueil */
h1.old-london-title {
    font-family: 'Old London', var(--font-serif);
    font-size: 4rem;
    font-weight: normal;
    letter-spacing: 2px;
    line-height: 1.2;
    margin-bottom: 1.8rem;
}

h1.old-london-title::after {
    margin-top: 1rem;
}

/* Ajustements responsifs */
@media (max-width: 767px) {
    .navbar-brand {
        font-size: 1.8rem;
    }
    
    h1.old-london-title {
        font-size: 3rem;
    }
}

@media (max-width: 575px) {
    .navbar-brand {
        font-size: 1.6rem;
    }
    
    h1.old-london-title {
        font-size: 2.5rem;
    }
}

/* ====== CARTES ET CONTENEURS ====== */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background-color: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-body {
    padding: 2rem;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 2rem;
}

.card-footer {
    background-color: rgba(251, 249, 246, 0.5);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 2rem;
}

.card-title {
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.card-subtitle {
    color: var(--dark-light);
    font-weight: 400;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.card-img-top {
    height: 220px;
    object-fit: cover;
}

.abus-img {
    height: 220px;
    object-fit: cover;
    transition: var(--transition-medium);
}

.card:hover .abus-img {
    transform: scale(1.05);
}



/* ====== FORMULAIRES ====== */
.form-control, .form-select {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    border-color: rgba(128, 0, 32, 0.3);
    box-shadow: 0 0 0 0.25rem rgba(128, 0, 32, 0.15);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.form-text {
    color: var(--dark-light);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.input-group-text {
    background-color: var(--cream);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--dark);
}

textarea.form-control {
    min-height: 120px;
}

/* ====== BADGES ====== */
.badge {
    font-weight: 500;
    padding: 0.5em 0.85em;
    border-radius: 30px;
    letter-spacing: 0.3px;
}

.badge.bg-danger {
    background-color: var(--primary) !important;
}

.badge.bg-success {
    background-color: #2a8d46 !important;
}

.badge.bg-secondary {
    background-color: var(--secondary) !important;
}

.badge.bg-warning {
    background-color: var(--gold) !important;
    color: var(--dark);
}

/* ====== ALERTES ====== */
.alert {
    border: none;
    border-radius: var(--border-radius-md);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background-color: #e8f5e9;
    color: #2a8d46;
}

.alert-danger {
    background-color: #ffebee;
    color: #c62828;
}

.alert-warning {
    background-color: #fff8e1;
    color: #f57f17;
}

.alert-info {
    background-color: #e3f2fd;
    color: #1565c0;
}

.alert-heading {
    color: inherit;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* ====== DIVERS COMPOSANTS ====== */
.nav-pills .nav-link {
    color: var(--primary);
    border-radius: var(--border-radius-sm);
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-pills .nav-link:hover {
    background-color: rgba(128, 0, 32, 0.05);
}

.nav-pills .nav-link.active {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(128, 0, 32, 0.2);
}

.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--dark-light);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--dark-light);
}

/* ====== EFFETS SPÉCIAUX ====== */

/* Effet de soulignement animé pour les liens de menu */
.menu-link {
    position: relative;
    padding-bottom: 3px;
    text-decoration: none;
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.menu-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Animation pour les icônes */
.animate-icon {
    transition: var(--transition-medium);
}

.animate-icon:hover {
    transform: translateY(-5px);
    color: var(--primary);
}

/* Icônes avec cercle de fond */
.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--cream);
    border-radius: 50%;
    margin-bottom: 1rem;
    color: var(--primary);
    transition: var(--transition-medium);
}

.card:hover .icon-circle {
    background-color: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* Effet de survol pour les cartes */
.hover-card {
    position: relative;
    overflow: hidden;
}

.hover-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), transparent);
    opacity: 0;
    transition: var(--transition-medium);
    z-index: 1;
}

.hover-card:hover::before {
    opacity: 0.1;
}

/* Animation de chargement */
.loading {
    width: 2.5rem;
    height: 2.5rem;
    border: 4px solid rgba(128, 0, 32, 0.1);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Effet de défilement fluide */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* Effet de scintillement pour les éléments dorés */
.gold-accent {
    position: relative;
    overflow: hidden;
}

.gold-accent::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, rgba(212, 175, 55, 0) 60%);
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

.gold-accent:hover::after {
    opacity: 1;
    animation: glitter 3s infinite;
}

@keyframes glitter {
    0% { transform: scale(0.9); opacity: 0; }
    25% { opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
    100% { transform: scale(0.9); opacity: 0; }
}

/* ====== PIED DE PAGE ====== */
footer {
    background-color: #fff;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.03);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-dark), var(--gold), var(--primary-dark));
}

footer h3 {
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer a {
    color: var(--dark-light);
    transition: var(--transition-fast);
}

footer a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}

/* ====== ANIMATIONS D'ENTRÉE ====== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease forwards;
}

/* Animation de délai pour séquencer les entrées */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ====== DÉCORATION LITURGIQUE ====== */
.divider-ornate {
    position: relative;
    height: 30px;
    margin: 2rem 0;
    text-align: center;
    overflow: hidden;
}

.divider-ornate::before, .divider-ornate::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 43%;
    height: 1px;
    background: linear-gradient(to right, rgba(128, 0, 32, 0), rgba(128, 0, 32, 0.3));
}

.divider-ornate::before {
    left: 0;
}

.divider-ornate::after {
    right: 0;
    background: linear-gradient(to left, rgba(128, 0, 32, 0), rgba(128, 0, 32, 0.3));
}

.divider-ornate span {
    display: inline-block;
    position: relative;
    color: var(--gold);
    font-size: 1.2rem;
}

.divider-ornate span::before, .divider-ornate span::after {
    content: "✝";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 1rem;
}

.divider-ornate span::before {
    left: -20px;
}

.divider-ornate span::after {
    right: -20px;
}

/* Décoration liturgique pour les sections */
.section-decoration {
    position: relative;
    overflow: hidden;
}

.section-decoration::before {
    content: "†";
    position: absolute;
    top: -30px;
    right: 30px;
    font-size: 10rem;
    color: rgba(212, 175, 55, 0.07);
    font-family: var(--font-serif);
    transform: rotate(10deg);
    z-index: 0;
}

/* ====== ADAPTATIONS RESPONSIVES ====== */
@media (max-width: 1199px) {
    .divider-ornate::before, .divider-ornate::after {
        width: 40%;
    }
}

@media (max-width: 991px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .navbar-dark .navbar-nav .nav-link {
        padding: 0.7rem 0.5rem;
        margin: 0;
    }
    
    .navbar-dark .navbar-nav .nav-link::after {
        display: none;
    }
    
    .divider-ornate::before, .divider-ornate::after {
        width: 35%;
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .nav-pills .nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .divider-ornate::before, .divider-ornate::after {
        width: 30%;
    }
    
    .section-decoration::before {
        font-size: 8rem;
        top: -20px;
        right: 20px;
    }
}

@media (max-width: 575px) {
    h1::after {
        width: 60px;
    }
    
    .btn {
        padding: 0.5rem 1.2rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .divider-ornate {
        height: 20px;
    }
    
    .divider-ornate::before, .divider-ornate::after {
        width: 25%;
    }
    
    .divider-ornate span::before, .divider-ornate span::after {
        font-size: 0.8rem;
    }
    
    .section-decoration::before {
        font-size: 6rem;
        right: 10px;
    }
}

/* ====== UTILITAIRES ====== */
.text-gold {
    color: var(--gold) !important;
}

.bg-cream {
    background-color: var(--cream) !important;
}

.bg-gold {
    background-color: var(--gold) !important;
}

.border-gold {
    border-color: var(--gold) !important;
}

.shadow-custom {
    box-shadow: var(--shadow-md) !important;
}

.rounded-custom {
    border-radius: var(--border-radius-md) !important;
}

.transition-all {
    transition: var(--transition-medium) !important;
}

/* Pour activer les animations au défilement */
.reveal {
    opacity: 0;
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 1s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 1s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}



/* ====== CITATIONS ET BLOCKQUOTES AMÉLIORÉS ====== */

/* Nouveaux styles pour les bannières de citation */
.citation-banner {
    background-color: transparent;
    border-left: none;
    position: relative;
    overflow: visible;
    padding: 3.5rem 2.5rem 2rem;
    margin: 3rem 0;
    box-shadow: none;
    transition: var(--transition-medium);
}

/* Création d'un cadre élégant */
.citation-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid var(--gold);
    opacity: 0.3;
    border-radius: var(--border-radius-md);
    z-index: -1;
    transform: scale(0.98);
    transition: var(--transition-medium);
}

/* Effet de survol pour le cadre */
.citation-banner:hover::before {
    transform: scale(1);
    opacity: 0.5;
}

/* Coins décoratifs */
.citation-banner::after {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    width: 25px;
    height: 25px;
    border-top: 2px solid var(--gold);
    border-left: 2px solid var(--gold);
    opacity: 0.7;
}

.citation-banner .corner-tr {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 25px;
    height: 25px;
    border-top: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
    opacity: 0.7;
}

.citation-banner .corner-bl {
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 25px;
    height: 25px;
    border-bottom: 2px solid var(--gold);
    border-left: 2px solid var(--gold);
    opacity: 0.7;
}

.citation-banner .corner-br {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 25px;
    height: 25px;
    border-bottom: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
    opacity: 0.7;
}

/* Guillemets décoratifs */
.citation-banner .quote-mark-start {
    position: absolute;
    top: 10px;
    left: 15px;
    font-family: Georgia, serif;
    font-size: 4rem;
    line-height: 1;
    color: var(--gold);
    opacity: 0.4;
}

.citation-banner .quote-mark-end {
    position: absolute;
    bottom: 0;
    right: 15px;
    font-family: Georgia, serif;
    font-size: 4rem;
    line-height: 1;
    color: var(--gold);
    opacity: 0.4;
    transform: rotate(180deg);
}

/* Fond texturé subtil */
.citation-banner .texture-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 18c3.8 0 7-3.1 7-7s-3.1-7-7-7-7 3.1-7 7 3.1 7 7 7zm64 18c3.8 0 7-3.1 7-7s-3.1-7-7-7-7 3.1-7 7 3.1 7 7 7zM8 64c3.8 0 7-3.1 7-7s-3.1-7-7-7-7 3.1-7 7 3.1 7 7 7zm64 18c3.8 0 7-3.1 7-7s-3.1-7-7-7-7 3.1-7 7 3.1 7 7 7z' fill='%23d4af37' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E"),
        linear-gradient(to bottom, var(--cream-light), white);
    opacity: 0.8;
    z-index: -2;
    border-radius: var(--border-radius-md);
}

/* Style du texte de citation */
.citation-banner blockquote {
    border-left: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.citation-banner blockquote p {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--dark);
    margin-bottom: 1rem;
    position: relative;
    text-align: center;
    font-style: italic;
}

.citation-banner blockquote footer {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-style: normal;
    color: var(--dark-light);
    position: relative;
    text-align: right;
    margin-top: 1rem;
    opacity: 0.8;
	background-color:transparent;
	box-shadow:none;
}

/* Ligne décorative entre la citation et la source */
.citation-banner blockquote footer::before {
    content: "";
    display: block;
    width: 30%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 0.5rem 0 0.5rem auto;
}

/* Ornement central */
.citation-banner .ornament {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20' viewBox='0 0 40 20'%3E%3Cpath d='M20 0C13 0 7 2 0 6V9c7-4 13-6 20-6s13 2 20 6V6C33 2 27 0 20 0z' fill='%23d4af37' fill-opacity='0.3'/%3E%3C/svg%3E") no-repeat center;
    opacity: 0.8;
}

.citation-banner .ornament-top {
    top: -10px;
}

.citation-banner .ornament-bottom {
    bottom: -10px;
    transform: translateX(-50%) rotate(180deg);
}

/* Animation discrète au survol */
.citation-banner:hover {
    transform: translateY(-3px);
}

.citation-banner:hover blockquote p {
    color: var(--primary-dark);
}

/* Adaptation mobile */
@media (max-width: 767px) {
    .citation-banner {
        padding: 3rem 1.5rem 1.5rem;
        margin: 2.5rem 0;
    }
    
    .citation-banner blockquote p {
        font-size: 1rem;
    }
    
    .citation-banner .quote-mark-start,
    .citation-banner .quote-mark-end {
        font-size: 3rem;
    }
}

/* Styles pour rendre le tableau des abus liturgiques plus adapté aux mobiles */

/* Amélioration de la table-responsive de Bootstrap */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    margin-bottom: 1rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

/* Styles de base pour le tableau */
.table-abus {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

.table-abus th,
.table-abus td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.table-abus thead th {
    vertical-align: bottom;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    background-color: var(--cream);
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Adaptation pour les mobiles - tableau en format carte */
@media (max-width: 767px) {
    /* Masquer le tableau standard sur mobile */
    .table-abus-desktop {
        display: none;
    }
    
    /* Afficher les cartes mobiles */
    .table-abus-mobile {
        display: block;
    }
    
    /* Style pour chaque carte */
    .abus-card {
        margin-bottom: 1.5rem;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: var(--border-radius-md);
        overflow: hidden;
        box-shadow: var(--shadow-sm);
        background-color: white;
    }
    
    .abus-card-header {
        background-color: var(--cream);
        padding: 0.75rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        font-weight: bold;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .abus-card-body {
        padding: 1rem;
    }
    
    .abus-card-row {
        margin-bottom: 0.75rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-bottom: 0.75rem;
    }
    
    .abus-card-row:last-child {
        margin-bottom: 0;
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .abus-card-label {
        font-weight: 600;
        color: var(--dark-light);
        margin-bottom: 0.25rem;
    }
    
    .abus-card-value {
        color: var(--dark);
    }
}

/* Masquer les cartes par défaut sur desktop */
@media (min-width: 768px) {
    .table-abus-mobile {
        display: none;
    }
    
    .table-abus-desktop {
        display: table;
    }
}

/* Styles pour les badges dans le tableau */
.table-abus .badge {
    display: inline-block;
    padding: 0.4em 0.65em;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 30px;
}

/* Adaptation de la taille du texte dans le tableau */
@media (max-width: 991px) {
    .table-abus {
        font-size: 0.9rem;
    }
    
    .table-abus th,
    .table-abus td {
        padding: 0.5rem;
    }
}

/* Indicateur de défilement horizontal sur mobile */
@media (max-width: 767px) {
    .table-scroll-hint {
        display: block;
        text-align: center;
        padding: 0.5rem 0;
        color: var(--dark-light);
        font-style: italic;
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .table-responsive {
        position: relative;
        padding-bottom: 2px;
    }
    
    .table-responsive::after {
        content: "";
        position: absolute;
        bottom: 0;
        right: 0;
        width: 50px;
        height: 100%;
        background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.7));
        pointer-events: none;
        z-index: 1;
    }
}

@media (min-width: 768px) {
    .table-scroll-hint {
        display: none;
    }
}