/* Albi Brand Colors & Common Styles */

:root {
  /* Palette inspirée de la brique rouge d'Albi et l'architecture médiévale */
  --terracotta-primary: #C9573C;
  --terracotta-dark: #8B3A2A;
  --brick-red: #B34936;
  --warm-cream: #F5EFE6;
  --soft-gold: #D4AF87;
  --heritage-brown: #704C3A;
  --warm-white: #FDFBF7;
  --success-green: #7BA05B;
  --text-primary: #3E2723;
  --text-secondary: #5D4037;
  --shadow-warm: rgba(139, 58, 42, 0.12);
  --shadow-light: rgba(112, 76, 58, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--warm-cream) 0%, var(--warm-white) 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

/* Subtle decorative background pattern inspired by medieval Albi */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 60px,
      rgba(201, 87, 60, 0.02) 60px,
      rgba(201, 87, 60, 0.02) 120px
    );
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  background: var(--warm-white);
  border-radius: 20px;
  padding: 60px 50px;
  box-shadow: 
    0 20px 60px var(--shadow-warm),
    0 0 0 1px rgba(201, 87, 60, 0.08);
  text-align: center;
  border-top: 4px solid var(--terracotta-primary);
}

/* Decorative accent line */
.container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--soft-gold), transparent);
  border-radius: 2px;
}

h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--terracotta-dark);
  margin-bottom: 20px;
  font-weight: 600;
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.subtitle {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--text-secondary);
  font-size: clamp(16px, 3vw, 18px);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 24px;
  opacity: 0.85;
}

p {
  color: var(--text-secondary);
  margin-bottom: 18px;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
}

a {
  color: var(--terracotta-primary);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

a:hover {
  color: var(--terracotta-dark);
  border-bottom-color: var(--terracotta-dark);
}

a:focus {
  outline: 2px solid var(--terracotta-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Responsive design for mobile */
@media (max-width: 600px) {
  .container {
    padding: 45px 30px;
    border-radius: 16px;
  }
  
  h1 {
    margin-bottom: 16px;
  }
  
  .subtitle {
    margin-bottom: 20px;
  }
}

@media (max-width: 400px) {
  body {
    padding: 15px;
  }
  
  .container {
    padding: 35px 25px;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .container {
    border: 2px solid var(--terracotta-dark);
  }
  
  a {
    text-decoration: underline;
  }
}
