/**
 * Styles principaux - Confrérie Sainte Clotilde
 */

/* Font spéciale */
@font-face {
  font-family: 'OldLondon';
  src: url('../fonts/OldLondon.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('../fonts/EBGaramond-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'EB Garamond';
  src: url('../fonts/EBGaramond-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'EB Garamond';
  src: url('../fonts/EBGaramond-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'EB Garamond';
  src: url('../fonts/EBGaramond-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'EB Garamond';
  src: url('../fonts/EBGaramond-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'EB Garamond';
  src: url('../fonts/EBGaramond-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'EB Garamond';
  src: url('../fonts/EBGaramond-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'EB Garamond';
  src: url('../fonts/EBGaramond-SemiBoldItalic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'EB Garamond';
  src: url('../fonts/EBGaramond-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'EB Garamond';
  src: url('../fonts/EBGaramond-ExtraBoldItalic.ttf') format('truetype');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}



/* Styles généraux */
body {
  font-family: var(--body-font);
  color: var(--text);
  line-height: var(--bs-body-line-height);
  font-size: 16px;
  background: var(--background);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--header-font);
  font-weight: 600;
  /*color: var(--dark-text);*/
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.2rem;
  color: var(--bs-card-title-color);
}

a {
  color: var(--bs-nav-link-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover, a:focus {
  color: var(--bs-nav-link-hover-color);
  text-decoration: underline;
}

hr {
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* Ajustements des composants Bootstrap */
.btn {
  border-radius: var(--bs-btn-primary-border-radius);
  text-transform: uppercase;
  font-weight: var(--bs-btn-font-weight);
  letter-spacing: 0.5px;
  padding: 0.6rem 1.5rem;
  background: var(--bs-btn-primary-bg);
  border-color: var(--bs-btn-primary-border-color);
}

.btn-outline-primary {
  color: var(--bs-btn-primary-color);
  border-radius: var(--bs-btn-primary-border-radius);
  text-transform: uppercase;
  font-weight: var(--bs-btn-font-weight);
  letter-spacing: 0.5px;
  padding: 0.6rem 1.5rem;
  background: var(--bs-btn-primary-bg);
  border-color: var(--bs-btn-primary-border-color);
}

.btn:focus {
  color: var(--bs-btn-primary-hover-color);
  background-color: var(--bs-btn-primary-hover-bg);
  border-color: var(--bs-btn-primary-hover-border-color);
}

.btn:hover {
  color: var(--bs-btn-primary-hover-color);
  background-color: var(--bs-btn-primary-hover-bg);
  border-color: var(--bs-btn-primary-hover-border-color);
}

.btn:active {
  color: var(--bs-btn-primary-active-color);
  background-color: var(--bs-btn-primary-active-bg);
  border-color: var(--bs-btn-primary-active-border-color);
}

.form-control:focus {
  border-color: var(--bs-btn-primary-hover-border-color);
  box-shadow: var(--bs-form-control-focus-box-shadow);
}

.form-control:hover {
  border-color: var(--bs-btn-primary-hover-border-color);
  box-shadow: var(--bs-form-control-focus-box-shadow);
}

.form-control:active {
  border-color: var(--bs-btn-primary-active-border-color);
  box-shadow: var(--bs-form-control-focus-box-shadow);
}

.card {
  border-color: var(--bs-card-border-color);
  border-radius: var(--bs-border-radius);
}

.card-header {
  background-color: var(--bs-card-cap-bg);
  color: var(--bs-body-color);
}

.card-header.bg-primary {
  color: var(--bs-white);
}

.card-title {
  color: var(--bs-card-title-color);
}

/* Personnalisation des alertes */
.alert-primary {
  background-color: var(--bs-alert-primary-bg);
  border-color: var(--bs-alert-primary-border-color);
  color: var(--bs-alert-primary-color);
}

/* En-tête du site */
.site-header {
  background-color: var(--primary);
  box-shadow: var(--bs-box-shadow-sm);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin-right: 15px;
  background-image: url('../images/logo-icon.png');
  background-size: contain;
  background-repeat: no-repeat;
}

.logo-text {
  font-family: var(--header-font);
  font-size: 1.8rem;
  color: #FFFFFF;
  font-weight: 600;
}

.logo-text:first-letter {
  font-family: var(--special-font);
  font-size: 2.5rem;
}

/* Navigation */
.navbar {
  background-color: var(--primary);
  padding: 0;
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--bs-navbar-dark-color);
  font-weight: 600;
  padding: 1rem;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--bs-navbar-dark-hover-color);
  background-color: var(--primary-dark);
}

.navbar .form-control {
  background-color: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  border-radius: var(--bs-border-radius);
}

.navbar .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.navbar .btn-outline-light {
  border-radius: var(--bs-border-radius);
}

.navbar-toggler {
  margin-bottom: 1em;
}

/* Bannière de page */
.page-banner {
  background-color: var(--primary);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  padding: 5rem 0;
  position: relative;
  margin-bottom: 3rem;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.page-banner .container {
  position: relative;
  z-index: 1;
}

.page-title {
  font-size: 3rem;
  margin: 0;
  text-align: center;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Contenu principal */
.main-content {
  min-height: 500px;
  padding-bottom: 4rem;
}

.content-section {
  margin-bottom: 3rem;
}

/* Page d'accueil */
.hero-section {
  background-color: var(--primary);
  background-image: url('../images/hero-background.jpg');
  background-position: center;
  background-size: cover;
  color: #fff;
  padding: 6rem 0;
  position: relative;
  margin-bottom: 4rem;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 400;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.feature-card {
  background: var(--light-background);
  border: 1px solid var(--light-border);
  padding: 2rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: var(--bs-border-radius);
}

.feature-card:hover, .feature-card.hover {
  transform: translateY(-5px);
  box-shadow: var(--bs-box-shadow);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--bs-card-title-color);
}

/* Barre latérale */
.sidebar-block {
  background: var(--light-background);
  border: 1px solid var(--light-border);
  padding: 1.5rem;
  border-radius: var(--bs-border-radius);
}

.sidebar-block h4 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: var(--bs-card-title-color);
  border-bottom: 1px solid var(--light-border);
  padding-bottom: 0.5rem;
}

.prayer-card {
  text-align: center;
}

.prayer-text {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--dark-text);
}

.pilgrimage-schedule ul {
  list-style: none;
  padding-left: auto;
  margin-bottom: 0;
}

.pilgrimage-schedule ul li {
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.pilgrimage-schedule ul li:before {
  content: "•";
  color: var(--primary);
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.useful-links {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.useful-links li {
  margin-bottom: 0.5rem;
}

.useful-links li a {
  display: block;
  padding: 0.5rem;
  background: var(--background);
  border-left: 3px solid var(--primary);
  transition: all 0.3s ease;
}

.useful-links li a:hover {
  background: var(--secondary);
  text-decoration: none;
  transform: translateX(5px);
}

/* Section Histoire */
.history-timeline {
  position: relative;
  padding: 2rem 0;
}

.history-timeline:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: var(--primary);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-content {
  background: var(--light-background);
  border: 1px solid var(--light-border);
  padding: 1.5rem;
  border-radius: var(--bs-border-radius);
  position: relative;
  width: 45%;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

.timeline-content:before {
  content: '';
  position: absolute;
  top: 20px;
  width: 20px;
  height: 2px;
  background-color: var(--primary);
}

.timeline-item:nth-child(odd) .timeline-content:before {
  left: -20px;
}

.timeline-item:nth-child(even) .timeline-content:before {
  right: -20px;
}

.timeline-date {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background-color: var(--primary);
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.5rem;
  border-radius: var(--bs-border-radius-sm);
}

/* Articles et actualités */
.article-card {
  background: var(--light-background);
  border: 1px solid var(--light-border);
  margin-bottom: 2rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: var(--bs-border-radius);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--bs-box-shadow);
}

.article-image {
  height: 200px;
  background-position: center;
  background-size: cover;
}

.article-content {
  padding: 1.5rem;
}

.article-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--bs-card-title-color);
}

.article-meta {
  font-size: 0.8rem;
  color: var(--light-text);
  margin-bottom: 1rem;
}

.article-excerpt {
  margin-bottom: 1rem;
}

/* Formulaire de contact */
.contact-form {
  background: var(--light-background);
  border: 1px solid var(--light-border);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: var(--bs-border-radius);
}

.contact-info {
  margin-bottom: 2rem;
}

.contact-info-item {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
}

.contact-info-icon {
  margin-right: 0.5rem;
  color: var(--primary);
}

.map-container {
  height: 400px;
  margin-bottom: 2rem;
}

/* Pied de page */
.site-footer {
  background-color: var(--primary);
  color: #fff;
  padding: 3rem 0 1rem;
}

.site-footer h4 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
}

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

.footer-links {
  list-style: none;
  padding-left: 0;
}

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

.social-links .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: background-color 0.3s ease;
}

.social-links .social-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

/* Pèlerinage */
.pilgrimage-schedule-detailed {
  background: var(--light-background);
  border: 1px solid var(--light-border);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: var(--bs-border-radius);
}

.pilgrimage-schedule-detailed h3 {
  border-bottom: 1px solid var(--light-border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  color: var(--bs-card-title-color);
}

.pilgrimage-schedule-detailed ul {
  padding-left: 1.5rem;
}

.pilgrimage-map {
  height: 400px;
  margin-bottom: 2rem;
  border: 1px solid var(--light-border);
  border-radius: var(--bs-border-radius);
  overflow: hidden;
}

.directions-list ol {
  padding-left: 1.5rem;
}

/* Galerie d'images */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-gap: 1rem;
  margin-bottom: 2rem;
}

.gallery-item {
  height: 200px;
  background-position: center;
  background-size: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
  border-radius: var(--bs-border-radius);
}

.gallery-item:hover {
  transform: scale(1.03);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  padding: 30px;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  margin: 0 auto;
  border-radius: var(--bs-border-radius);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: -10px;
  font-size: 30px;
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* Page Litanies et prières */
.prayer-section {
  background: var(--light-background);
  border: 1px solid var(--light-border);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: var(--bs-border-radius);
}

.prayer-section h3 {
  color: var(--primary);
  border-bottom: 1px solid var(--light-border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.prayer-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--secondary);
  border: 1px solid var(--light-border);
  margin-bottom: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: var(--bs-border-radius);
}

.prayer-toggle:hover {
  background-color: #e8d8d6;
}

.prayer-toggle h4 {
  margin: 0;
  font-size: 1.1rem;
}

.prayer-content {
  padding: 1rem;
  border: 1px solid var(--light-border);
  border-top: none;
  display: none;
  border-radius: 0 0 var(--bs-border-radius) var(--bs-border-radius);
  margin-top: -1rem;
  background-color: var(--background);
}

.prayer-content.show {
  display: block;
}

/* Page Vie de Sainte Clotilde */
.chronology {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 2rem;
}

.chronology:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background-color: var(--primary);
}

.chronology-item {
  position: relative;
  margin-bottom: 1.5rem;
}

.chronology-item:before {
  content: '';
  position: absolute;
  top: 0.5rem;
  left: -2rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: var(--primary);
}

.chronology-date {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.pull-quote {
  font-family: var(--header-font);
  font-size: 1.5rem;
  font-style: italic;
  padding: 1.5rem;
  margin: 2rem 0;
  color: var(--primary);
  border-left: 4px solid var(--primary);
  background: var(--secondary);
  border-radius: var(--bs-border-radius);
}

/* Effets de hover sur les images */
.image-with-caption {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border-radius: var(--bs-border-radius);
}

.image-with-caption img {
  transition: transform 0.5s ease;
  border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0;
}

.image-with-caption:hover img {
  transform: scale(1.05);
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  font-size: 0.85rem;
}

.image-with-caption:hover .image-caption {
  transform: translateY(0);
}

/* Animation */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

/* Bouton de retour en haut */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
  box-shadow: var(--bs-box-shadow);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: var(--primary-dark);
}

/* Médias queries */
@media (max-width: 991.98px) {
  .site-header .logo {
    margin-bottom: 1rem;
  }
  
  .page-title {
    font-size: 2.5rem;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .history-timeline:before {
    left: 0;
  }
  
  .timeline-content {
    width: 90%;
    margin-left: auto !important;
  }
  
  .timeline-item:nth-child(odd) .timeline-content:before,
  .timeline-item:nth-child(even) .timeline-content:before {
    left: -20px;
  }
}

@media (max-width: 767.98px) {
  .logo-text {
    font-size: 1.5rem;
  }
  
  .site-header .social-links {
    margin-top: 1rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2.3rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .sidebar {
    margin-top: 2rem;
  }
  
  .prayer-section {
    padding: 1rem;
  }
}

@media (max-width: 575.98px) {
  .container {
    padding: 0 1rem;
  }
  
  .logo {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .logo-icon {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  
  .site-header .social-links {
    justify-content: center;
  }
  
  .page-title {
    font-size: 1.8rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-section {
    padding: 4rem 0;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .feature-card {
    margin-bottom: 1rem;
  }
  
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .prayer-toggle h4 {
    font-size: 1rem;
  }
}