/* Reset et styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Support RTL */
[dir="rtl"] .main-nav li {
  margin-left: 0;
  margin-right: 2rem;
}

[dir="rtl"] .section.right {
  direction: ltr;
}

[dir="rtl"] .section.right .section-content {
  direction: rtl;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: block;
  text-decoration: none;
}

.logo img {
  height: 70px;
  width: auto;
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav li {
  margin-left: 2rem;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: #007bff;
}

.main-nav li.active a {
  color: #007bff;
}

/* Language Selector */
.language-selector {
  position: relative;
  margin-left: 1rem;
}

.language-toggle {
  display: flex;
  align-items: center;
  background: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: #333;
}

.current-language {
  margin-right: 0.5rem;
}

.language-icon {
  font-size: 0.8rem;
  transition: transform 0.3s;
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 150px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s, opacity 0.3s;
  opacity: 0;
  z-index: 101;
}

.language-selector:hover .language-dropdown,
.language-selector:focus-within .language-dropdown {
  max-height: 300px;
  opacity: 1;
}

.language-selector:hover .language-icon,
.language-selector:focus-within .language-icon {
  transform: rotate(180deg);
}

.language-dropdown li {
  list-style: none;
}

.language-dropdown a {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: #333;
  transition: background-color 0.3s;
}

.language-dropdown a:hover {
  background-color: #f8f9fa;
}

.language-dropdown li.active a {
  background-color: #f0f0f0;
  font-weight: 500;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 12;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 5px 0;
  transition: all 0.3s;
}

/* Hero Section */
.hero {
  min-height: 40dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: #f8f9f9;
  position: relative;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin-top: 90px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-slogan {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  z-index: 2;
}

.hero-slogan h1 {
  position: relative;
  font-size: 3.5rem;
  margin-bottom: 1rem;
  z-index: 2;
}

.hero-slogan p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.hero-slogan a {
  display: inline-block;
  background-color: #007bff;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.hero-slogan a:hover {
  background-color: #0056b3;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero .subtitle {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 2rem;
}

.hero figure {
  margin-top: 2rem;
}

.hero img {
  max-width: 100%;
  height: auto;
}

/* Page Content */
.page-content {
  padding: 4rem 0;
}

.page-content h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.page-image {
  margin: 2rem 0;
  text-align: center;
}

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

.page-image figcaption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

.page-text {
  font-size: 1.1rem;
  line-height: 1.8;
}

.page-text p {
  margin-bottom: 1.5rem;
}

.page-text h2, 
.page-text h3, 
.page-text h4 {
  margin: 2rem 0 1rem;
}

.page-text ul, 
.page-text ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.page-text li {
  margin-bottom: 0.5rem;
}

.page-text a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s;
}

.page-text a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.page-text blockquote {
  margin: 2rem 0;
  padding: 1rem 2rem;
  border-left: 4px solid #007bff;
  background-color: #f8f9fa;
  font-style: italic;
}

.page-text code {
  background-color: #f8f9fa;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
}

.page-text pre {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1rem 0;
}

.page-text pre code {
  background-color: transparent;
  padding: 0;
}

.page-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.page-text th, 
.page-text td {
  padding: 0.75rem;
  border: 1px solid #ddd;
}

.page-text th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.page-text tr:nth-child(even) {
  background-color: #f8f9fa;
}

/* Footer */
.site-footer {
  background-color: #333;
  color: #fff;
  padding: 3rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-column h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: #ccc;
}

/* Section Paroisses */
.parishes-section {
  padding: 4rem 0;
  background-color: #f8f9f9;
}

.parishes-section h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: #333;
}

.parishes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.parish-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.parish-card:hover {
  transform: translateY(-5px);
}

.parish-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.parish-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.parish-card:hover .parish-image img {
  transform: scale(1.05);
}

.parish-content {
  padding: 1.5rem;
}

.parish-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

/* Content Blocks */
.content-blocks {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.block-heading {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #333;
}

.block-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #444;
}

.block-text p {
  margin-bottom: 1.5rem;
}

.block-image {
  margin: 2rem 0;
  text-align: center;
}

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

.block-image figcaption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

.block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.gallery-item figcaption {
  padding: 1rem;
  font-size: 0.9rem;
  color: #666;
  background-color: #fff;
}

.block-quote {
  margin: 3rem 0;
  padding: 2.5rem;
  background-color: #f8f9f9;
  border-left: 5px solid #007bff;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: relative;
}

.block-quote::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 4rem;
  color: rgba(0, 123, 255, 0.2);
  font-family: Georgia, serif;
  line-height: 1;
}

.quote-text {
  font-size: 1.5rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #333;
  position: relative;
  z-index: 1;
}

.quote-text p {
  margin-bottom: 1rem;
}

.quote-text p:last-child {
  margin-bottom: 0;
}

.quote-citation {
  text-align: right;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.quote-citation cite {
  display: block;
  font-size: 1.1rem;
  color: #555;
  font-style: normal;
  font-weight: 500;
}

.block-video {
  margin: 2rem 0;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.block-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.block-button {
  text-align: center;
  margin: 2rem 0;
}

.block-button .button {
  display: inline-block;
  background-color: #007bff;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.block-button .button:hover {
  background-color: #0056b3;
}

/* News List */
.news-list {
  padding: 4rem 0;
  background-color: #f8f9f9;
}


.news-list h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: #333;
}

.news-list .no-news {
  text-align: center;
  font-size: 1.5rem;
  color: #333;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.news-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-card-image {
  height: 200px;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.05);
}

.news-card-content {
  padding: 1.5rem;
}

.news-date {
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.news-card-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.news-card-content h3 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-card-content h3 a:hover {
  color: #007bff;
}

.news-summary {
  margin-bottom: 1.5rem;
  color: #555;
  line-height: 1.5;
}

.read-more {
  display: inline-block;
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Pagination */
.news-list nav {
  margin-top: 3rem;
  text-align: center;
}

.news-list nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list nav li {
  margin: 0 0.25rem;
}

.news-list nav a,
.news-list nav span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: #fff;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.news-list nav a:hover {
  background-color: #007bff;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.news-list nav a[aria-current="page"] {
  background-color: #007bff;
  color: #fff;
  font-weight: 600;
}

.news-list nav span {
  color: #ccc;
  background-color: #f5f5f5;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    min-height: 60dvh;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1.2rem;
  }
  
  .hero-slogan {
    font-size: 1.8rem;
  }
  
  .hero-slogan h1 {
    font-size: 2.5rem;
  }
  
  .hero-slogan p {
    font-size: 1.2rem;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: #fff;
    padding: 2rem;
    transition: right 0.3s;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
  }
  
  .main-nav li {
    margin: 1rem 0;
  }
  
  .language-dropdown {
    position: static;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
  }
  
  .language-selector:hover .language-dropdown,
  .language-selector:focus-within .language-dropdown {
    max-height: 300px;
  }
  
  .page-content {
    padding: 2rem 0;
  }
  
  .page-content h1 {
    font-size: 2rem;
  }
  
  .parishes-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  
  .parishes-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .content-blocks {
    padding: 3rem 1rem;
  }
  
  .block-heading {
    font-size: 2rem;
  }
  
  .block-gallery {
    grid-template-columns: 1fr;
  }
  
  .block-quote {
    padding: 2rem 1.5rem;
  }
  
  .quote-text {
    font-size: 1.2rem;
  }
  
  .quote-citation cite {
    font-size: 1rem;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  
  .news-list h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .news-list nav ul {
    flex-wrap: wrap;
  }
  
  .news-list nav li {
    margin: 0.15rem;
  }
  
  .news-list nav a,
  .news-list nav span {
    width: 2rem;
    height: 2rem;
    font-size: 0.9rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .home-articles h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .article-content {
    padding: 1rem;
  }
  
  .article-content h3 {
    font-size: 1.1rem;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .works-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .work-content {
    padding: 1rem;
  }
  
  .work-content h3 {
    font-size: 1.3rem;
  }
} 


.block-type-image img{
width: 100%;
max-width: 575px;
margin: 0 auto;
padding: 18px 0;
display: block;
}

/* Home Articles */
.home-articles {
  padding: 4rem 0;
  background-color: #f8f9fa;
}

.home-articles h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: #333;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.article-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.article-image {
  position: relative;
  padding-top: 60%;
  overflow: hidden;
}

.article-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-content h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #333;
}

.article-content p {
  color: #666;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #888;
  margin-top: auto;
}

.article-date {
  font-style: italic;
}

.article-church {
  color: #007bff;
}

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .home-articles h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .article-content {
    padding: 1rem;
  }
  
  .article-content h3 {
    font-size: 1.1rem;
  }
}

/* Works Section */
.works-section {
  padding: 4rem 0;
  background-color: #f8f9fa;
}

.works-section h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: #333;
}

.works-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.work-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.work-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.work-card:hover .work-image img {
  transform: scale(1.05);
}

.work-content {
  padding: 1.5rem;
}

.work-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.work-content p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
}