* {
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: #333;
  line-height: 1.6;
}

header {
  background: linear-gradient(135deg, #b32b34 0%, #8b1a1a 100%);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
  font-family: 'Playfair Display', serif;
  color: #fbf6ed;
  margin: 0;
  font-size: 2.2rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { text-shadow: 2px 2px 4px rgba(0,0,0,0.5), 0 0 10px rgba(251,246,237,0.5); }
  to { text-shadow: 2px 2px 4px rgba(0,0,0,0.5), 0 0 20px rgba(251,246,237,0.8); }
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 1rem;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background-color 0.3s;
}

nav a:hover {
  background-color: rgba(255,255,255,0.2);
}

.hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 4rem 2rem;
  margin-bottom: 2rem;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
  background: rgba(251,246,237,0.95);
  margin-top: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(21,21,21,0.1);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(179,52,52,0.2);
}

section:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(21,21,21,0.15);
  border-color: rgba(179,52,52,0.4);
}

.section-title {
  color: #b32b34;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(45deg, #b33434, #8b0000);
  border-radius: 2px;
}

ul {
  list-style: none;
  padding: 0;
}

ul li {
  padding: 1rem;
  margin: 0.5rem 0;
  background: linear-gradient(135deg, #fbf6ed 0%, #f7f3e9 100%);
  border-radius: 15px;
  border-left: 5px solid #b33434;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(179,52,52,0.2);
}

ul li:hover {
  transform: translateX(10px);
  box-shadow: 0 5px 15px rgba(179,52,52,0.2);
  background: linear-gradient(135deg, #fbf6ed 0%, #f0e8d8 100%);
  border-color: rgba(179,52,52,0.4);
}

ul li strong {
  color: #b33434;
  font-weight: 700;
}

a {
  color: #b33434;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

a:hover {
  color: #8b0000;
  text-decoration: none;
}

a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(45deg, #b33434, #8b0000);
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
}

h4 {
  color: #b33434;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin: 2rem 0 1rem 0;
  border-bottom: 2px solid rgba(179,52,52,0.3);
  padding-bottom: 0.5rem;
}

footer {
  background: linear-gradient(135deg, #151515 0%, #2a2a2a 100%);
  color: #fbf6ed;
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  border-top: 3px solid #b33434;
}

footer p {
  margin: 0;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 1rem;
  }
  
  nav {
    margin-top: 1rem;
  }
  
  nav a {
    margin: 0 0.5rem;
    font-size: 0.9rem;
  }
  
  .hero h2 {
    font-size: 2.5rem;
  }
  
  section {
    padding: 2rem 1rem;
    margin: 1rem;
  }
}

/* Styles pour l'affichage des fichiers markdown */
.markdown-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.markdown-content h1 {
  color: #b33434;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  border-bottom: 3px solid #b33434;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.markdown-content h2 {
  color: #b33434;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin: 2rem 0 1rem 0;
  border-left: 4px solid #b33434;
  padding-left: 1rem;
}

.markdown-content h3 {
  color: #8b1a1a;
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem 0;
}

.markdown-content p {
  margin: 1rem 0;
  line-height: 1.8;
}

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

.markdown-content li {
  margin: 0.5rem 0;
  padding: 0.5rem;
  background: #f9f9f9;
  border-radius: 5px;
  border-left: 3px solid #b33434;
}

.markdown-content blockquote {
  border-left: 4px solid #b33434;
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 5px;
}

.markdown-content code {
  background: #f4f4f4;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
}

.markdown-content pre {
  background: #f4f4f4;
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
  border-left: 4px solid #b33434;
}

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

.markdown-content th, .markdown-content td {
  border: 1px solid #ddd;
  padding: 0.5rem;
  text-align: left;
}

.markdown-content th {
  background: #b33434;
  color: white;
}

.markdown-content tr:nth-child(even) {
  background: #f9f9f9;
} 