:root {
     --bleu-fonce: #1a365d;
     --bleu-moyen: #2563eb;
     --bleu-clair: #60a5fa;
     --jaune-or: #ffc72c;
     --texte-blanc: #ffffff;
     --texte-gris: #64748b;
     --bg-section: #f8fafc;
 }

 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 body {
     font-family: 'Inter', sans-serif;
     background: rgba(255, 255, 255, 0.95);
     background-attachment: fixed;
     color: var(--bleu-fonce);
     line-height: 1.6;
     min-height: 100vh;
     position: relative;
     overflow-x: hidden;
 }

 /* 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;
 }

 /* Hero section */
 .hero-messe {
     background: linear-gradient(135deg, var(--bleu-fonce) 0%, var(--bleu-moyen) 100%);
     color: var(--texte-blanc);
     padding: 6rem 2rem 4rem;
     text-align: center;
     position: relative;
     overflow: hidden;
     margin-top: 80px; /* Marge par défaut */
 }

 .hero-messe::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 1440 320"><path fill="rgba(255,199,44,0.1)" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,197.3C1248,203,1344,149,1392,122.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
     background-size: cover;
     opacity: 0.3;
     animation: wave 15s ease-in-out infinite;
 }

 @keyframes wave {

     0%,
     100% {
         transform: translateX(0) translateY(0);
     }

     50% {
         transform: translateX(-25px) translateY(-10px);
     }
 }

 .hero-messe h1 {
     font-family: 'Playfair Display', serif;
     font-size: 3rem;
     margin-bottom: 1rem;
     position: relative;
     z-index: 1;
     animation: fadeInDown 1s ease-out;
 }

 .hero-messe .fa-church{
    color: var(--jaune-or);
    font-size: 50px;
    margin-right: 10px;
}

 .hero-messe .subtitle {
     font-size: 1.2rem;
     opacity: 0.95;
     position: relative;
     z-index: 1;
     animation: fadeInUp 1s ease-out 0.3s both;
     margin-bottom: 2rem;
     font-weight: 500;
 }

 @keyframes fadeInDown {
     from {
         opacity: 0;
         transform: translateY(-30px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 @keyframes fadeInUp {
     from {
         opacity: 0;
         transform: translateY(30px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 .context-info {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
     gap: 1.5rem;
     max-width: 1000px;
     margin: 2rem auto 0;
     position: relative;
     z-index: 1;
 }

 .info-card {
     background: rgba(255, 255, 255, 0.1);
     backdrop-filter: blur(10px);
     padding: 1.5rem;
     border-radius: 12px;
     display: flex;
     align-items: center;
     gap: 1rem;
     border: 1px solid rgba(255, 255, 255, 0.2);
     animation: fadeIn 1s ease-out 0.5s both;
 }

 .info-card i {
     font-size: 2rem;
     color: var(--jaune-or);
 }

 .info-content h5 {
     font-size: 0.9rem;
     opacity: 0.8;
     margin-bottom: 0.25rem;
 }

 .info-content p {
     font-size: 1.1rem;
     font-weight: 600;
 }

 .container {
     max-width: 1200px;
     margin: 0 auto;
     padding: 4rem 2rem;
     position: relative;
     z-index: 1;
 }

 .section-title {
     text-align: center;
     font-family: 'Playfair Display', serif;
     font-size: 2.5rem;
     color: var(--bleu-fonce);
     margin-bottom: 3rem;
     position: relative;
     animation: fadeIn 1s ease-out;
 }

 .section-title::after {
     content: '';
     display: block;
     width: 80px;
     height: 4px;
     background: var(--jaune-or);
     margin: 1rem auto 0;
     border-radius: 2px;
     animation: expandWidth 1s ease-out 0.5s both;
 }

 @keyframes expandWidth {
     from {
         width: 0;
     }

     to {
         width: 80px;
     }
 }

 .section-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 2rem;
     flex-wrap: wrap;
     gap: 1rem;
 }

 .section-header h3 {
     font-family: 'Playfair Display', serif;
     color: var(--bleu-fonce);
     font-size: 1.8rem;
 }

 .legend {
     display: flex;
     gap: 1rem;
     flex-wrap: wrap;
 }

 .legend-item {
     display: flex;
     align-items: center;
     gap: 0.5rem;
     padding: 0.5rem 1rem;
     border-radius: 8px;
     font-size: 0.9rem;
     font-weight: 500;
 }

 .legend-item.today {
     background: rgba(255, 199, 44, 0.2);
     color: var(--bleu-fonce);
 }

 .legend-item.soon {
     background: rgba(37, 99, 235, 0.1);
     color: var(--bleu-moyen);
 }

 .messe-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
     gap: 2rem;
     margin-top: 2rem;
 }

 .messe-card {
     background: white;
     border-radius: 16px;
     padding: 2rem;
     box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
     transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     position: relative;
     overflow: hidden;
     opacity: 0;
     transform: translateY(30px);
     animation: slideInUp 0.6s ease-out forwards;
 }

 .messe-card.today {
     border: 2px solid var(--jaune-or);
     box-shadow: 0 4px 20px rgba(255, 199, 44, 0.3);
 }

 .messe-card.soon {
     border: 2px solid var(--bleu-clair);
 }

 .messe-card:nth-child(1) {
     animation-delay: 0.1s;
 }

 .messe-card:nth-child(2) {
     animation-delay: 0.2s;
 }

 .messe-card:nth-child(3) {
     animation-delay: 0.3s;
 }

 .messe-card:nth-child(4) {
     animation-delay: 0.4s;
 }

 .messe-card:nth-child(5) {
     animation-delay: 0.5s;
 }

 .messe-card:nth-child(6) {
     animation-delay: 0.6s;
 }

 .messe-card:nth-child(7) {
     animation-delay: 0.7s;
 }

 @keyframes slideInUp {
     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 .messe-card::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 5px;
     background: linear-gradient(90deg, var(--bleu-moyen), var(--jaune-or));
     transform: scaleX(0);
     transform-origin: left;
     transition: transform 0.4s ease;
 }

 .messe-card:hover {
     transform: translateY(-8px);
     box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
 }

 .messe-card:hover::before {
     transform: scaleX(1);
 }

 .messe-jour {
     display: flex;
     align-items: center;
     gap: 1rem;
     margin-bottom: 1rem;
 }

 .jour-icon {
     width: 50px;
     height: 50px;
     background: linear-gradient(135deg, var(--bleu-moyen), var(--bleu-clair));
     color: white;
     border-radius: 12px;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 1.5rem;
 }

 .jour-nom {
     font-family: 'Playfair Display', serif;
     font-size: 1.5rem;
     color: var(--bleu-fonce);
     font-weight: 600;
     text-transform: capitalize;
 }

 .messe-details {
     margin-top: 1.5rem;
     padding-top: 1.5rem;
     border-top: 2px solid var(--bg-section);
 }

 .detail-item {
     display: flex;
     align-items: center;
     gap: 0.75rem;
     margin-bottom: 1rem;
     transition: transform 0.3s ease;
 }

 .detail-item:hover {
     transform: translateX(5px);
 }

 .detail-icon {
     width: 40px;
     height: 40px;
     background: rgba(37, 99, 235, 0.1);
     color: var(--bleu-moyen);
     border-radius: 8px;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 1rem;
     transition: all 0.3s ease;
 }

 .detail-item:hover .detail-icon {
     background: var(--bleu-moyen);
     color: white;
     transform: rotate(360deg);
 }

 .detail-text {
     flex: 1;
 }

 .detail-label {
     font-size: 0.85rem;
     color: var(--texte-gris);
     display: block;
 }

 .detail-value {
     font-size: 1.1rem;
     color: var(--bleu-fonce);
     font-weight: 600;
 }

 .status-badge {
     display: inline-block;
     padding: 0.5rem 1rem;
     border-radius: 20px;
     font-size: 0.9rem;
     font-weight: 600;
     margin-top: 1rem;
 }

 .status-badge.scheduled {
     background: rgba(37, 99, 235, 0.1);
     color: var(--bleu-moyen);
 }

 .status-badge.today {
     background: linear-gradient(135deg, var(--jaune-or), #ffb700);
     color: var(--bleu-fonce);
     animation: shimmer 3s ease-in-out infinite;
 }

 .status-badge.soon {
     background: rgba(96, 165, 250, 0.2);
     color: var(--bleu-moyen);
 }

 @keyframes shimmer {

     0%,
     100% {
         box-shadow: 0 0 10px rgba(255, 199, 44, 0.3);
     }

     50% {
         box-shadow: 0 0 20px rgba(255, 199, 44, 0.6);
     }
 }

 .spiritual-resources {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
     gap: 2rem;
     margin: 4rem 0;
 }

 .resource-card {
     background: white;
     border-radius: 16px;
     padding: 2rem;
     box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
     display: flex;
     gap: 1.5rem;
     transition: all 0.3s ease;
     animation: fadeInUp 1s ease-out 0.8s both;
 }

 .resource-card:hover {
     transform: translateY(-5px);
     box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
 }

 .resource-icon {
     width: 60px;
     height: 60px;
     background: linear-gradient(135deg, var(--bleu-moyen), var(--bleu-clair));
     color: white;
     border-radius: 12px;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 1.8rem;
     flex-shrink: 0;
 }

 .resource-content h4 {
     font-family: 'Playfair Display', serif;
     color: var(--bleu-fonce);
     margin-bottom: 0.5rem;
 }

 .resource-content p {
     color: var(--texte-gris);
     font-size: 0.95rem;
     margin-bottom: 1rem;
 }

 .btn {
     display: inline-flex;
     align-items: center;
     gap: 0.5rem;
     padding: 0.75rem 1.5rem;
     border: none;
     border-radius: 8px;
     font-weight: 600;
     text-decoration: none;
     transition: all 0.3s ease;
     cursor: pointer;
     font-size: 0.95rem;
 }

 .btn-bible {
     background: var(--bleu-moyen);
     color: white;
 }

 .btn-bible:hover {
     background: var(--bleu-fonce);
     transform: translateX(5px);
 }

 .btn-prayer {
     background: var(--jaune-or);
     color: var(--bleu-fonce);
 }

 .btn-prayer:hover {
     background: #ffb700;
     transform: scale(1.05);
 }

 .main-actions {
     margin: 4rem 0;
     animation: fadeIn 1s ease-out 1s both;
 }

 .actions-header {
     text-align: center;
     margin-bottom: 3rem;
 }

 .actions-header h3 {
     font-family: 'Playfair Display', serif;
     font-size: 2rem;
     color: var(--bleu-fonce);
     margin-bottom: 0.5rem;
 }

 .actions-header p {
     color: var(--texte-gris);
     font-size: 1.1rem;
 }

 .action-buttons {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
     gap: 2rem;
 }

 .action-card {
     background: white;
     border-radius: 16px;
     padding: 2rem;
     text-align: center;
     box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
     transition: all 0.3s ease;
 }

 .action-card:hover {
     transform: translateY(-8px);
     box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
 }

 .action-icon {
     width: 80px;
     height: 80px;
     background: linear-gradient(135deg, var(--bleu-moyen), var(--bleu-clair));
     color: white;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 2.5rem;
     margin: 0 auto 1.5rem;
     transition: all 0.3s ease;
 }

 .action-card:hover .action-icon {
     transform: rotate(360deg);
 }

 .action-content h4 {
     font-family: 'Playfair Display', serif;
     color: var(--bleu-fonce);
     margin-bottom: 0.75rem;
     font-size: 1.3rem;
 }

 .action-content p {
     color: var(--texte-gris);
     margin-bottom: 1.5rem;
 }

 .btn-messe,
 .btn-don {
     background: var(--bleu-moyen);
     color: white;
 }

 .btn-messe:hover,
 .btn-don:hover {
     background: var(--bleu-fonce);
     color: white;
 }

 .btn-events {
     background: var(--jaune-or);
     color: var(--bleu-fonce);
 }

 .btn-events:hover {
     background: #ffb700;
 }

 .practical-info {
     background: white;
     border-radius: 16px;
     padding: 3rem 2rem;
     box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
     margin-top: 4rem;
     animation: fadeInUp 1s ease-out 1.2s both;
 }

 .info-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
     gap: 2rem;
 }

 .info-item {
     display: flex;
     align-items: center;
     gap: 1rem;
 }

 .info-item i {
     font-size: 2rem;
     color: var(--bleu-moyen);
 }

 .info-item h5 {
     font-size: 0.9rem;
     color: var(--texte-gris);
     margin-bottom: 0.25rem;
 }

 .info-item p {
     font-size: 1.05rem;
     color: var(--bleu-fonce);
     font-weight: 600;
 }

 .empty-state {
     text-align: center;
     padding: 4rem 2rem;
     animation: fadeIn 1s ease-out;
 }

 .empty-state i {
     font-size: 4rem;
     color: var(--texte-gris);
     opacity: 0.5;
     margin-bottom: 1rem;
 }

 .empty-state p {
     font-size: 1.2rem;
     color: var(--texte-gris);
 }

 @keyframes fadeIn {
     from {
         opacity: 0;
     }

     to {
         opacity: 1;
     }
 }

 /* Ajustements responsive pour hero-messe */
 @media (max-width: 1200px) {
     .hero-messe {
         margin-top: 90px;
     }

     .container {
         max-width: 95%;
     }

     .messe-grid {
         grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
     }
 }

 @media (max-width: 992px) {
     .hero-messe {
         margin-top: 100px;
         padding: 5rem 1.5rem 3rem;
     }

     .spiritual-resources {
         grid-template-columns: 1fr;
         gap: 1.5rem;
     }

     .action-buttons {
         grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
     }
 }

 @media (max-width: 768px) {
     .hero-messe {
         margin-top: 110px;
         padding: 3rem 1rem;
     }

     .hero-messe h1 {
         font-size: 2rem;
     }

     .hero-messe .subtitle {
         font-size: 1rem;
     }

     .context-info {
         grid-template-columns: 1fr;
         gap: 1rem;
     }

     .info-card {
         padding: 1rem;
     }

     .messe-card {
         padding: 1.5rem;
     }

     .jour-icon {
         width: 40px;
         height: 40px;
         font-size: 1.2rem;
     }

     .jour-nom {
         font-size: 1.3rem;
     }

     .detail-item {
         margin-bottom: 0.75rem;
     }

     .detail-value {
         font-size: 1rem;
     }

     .btn {
         width: 100%;
         justify-content: center;
     }
 }

 @media (max-width: 576px) {
     .hero-messe {
         margin-top: 120px;
         padding: 4rem 1rem 2rem;
     }

     .section-title {
         font-size: 1.8rem;
     }

     .section-header h3 {
         font-size: 1.5rem;
     }

     .legend {
         width: 100%;
         justify-content: space-between;
     }

     .legend-item {
         padding: 0.4rem 0.8rem;
         font-size: 0.8rem;
     }

     .resource-card {
         flex-direction: column;
         text-align: center;
         padding: 1.5rem;
     }

     .resource-icon {
         margin: 0 auto;
     }

     .action-card {
         padding: 1.5rem;
     }

     .practical-info {
         padding: 2rem 1rem;
     }

     .info-grid {
         grid-template-columns: 1fr;
     }
 }

 /* Optimisations pour petits écrans */
 @media (max-width: 360px) {
     .hero-messe h1 {
         font-size: 1.8rem;
     }

     .messe-card {
         padding: 1rem;
     }

     .detail-icon {
         width: 35px;
         height: 35px;
     }

     .btn {
         padding: 0.6rem 1rem;
         font-size: 0.9rem;
     }
 }

 /* Optimisations pour l'orientation paysage sur mobile */
 @media (max-height: 500px) and (orientation: landscape) {
     .hero-messe {
         padding: 3rem 1rem 2rem;
     }

     .context-info {
         grid-template-columns: repeat(2, 1fr);
     }
 }

 @media (prefers-reduced-motion: reduce) {
     * {
         animation-duration: 0.01ms !important;
         animation-iteration-count: 1 !important;
         transition-duration: 0.01ms !important;
     }
 }

