/* Global styles */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

/* Header container */
.site-header {
  display: flex;
  align-items: center;
  justify-content: center; /* Centrage horizontal */
  gap: 2rem;
  padding: 2em 1em 1em;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}

/* Image */
.header-flag {
  width: 200px;
  height: auto;
  border-radius: 4px;
}

/* Text block */
.header-text {
  text-align: center;
}

/* Title */
.header-text h1 {
  margin: 0;
  font-size: 2.6em;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #0a2a66;
}

/* Date */
.updated {
  display: block;
  font-size: 0.95em;
  color: green;
  margin-top: 0.5em;
}

/* Intro section */
#intro {
  max-width: 800px;
  margin: 2em auto;
  padding: 0 1em;
  text-align: center;
  font-size: 1.2em;
  font-family: 'Nunito', sans-serif;
}

.coffee-line {
  margin-top: 1em;
  font-weight: bold;
}

/* Referral grid */
#referral-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5em;
  max-width: 1200px;
  margin: 2em auto;
  padding: 0 1em;
}

/* Referral card */
.referral-card {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1.5em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.2s ease;
  width: 280px;
  flex: 0 0 auto;
}

.referral-card:hover {
  transform: translateY(-3px);
}

/* Logo */
.referral-logo {
  width: 100px;
  height: auto;
  margin-bottom: 0.8em;
}

/* Title */
.referral-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 0.5em;
}

/* Description */
.referral-description {
  white-space: pre-line;
  margin-bottom: 0.8em;
  word-break: break-word;
}

.description a {
  word-break: break-word;
  overflow-wrap: anywhere;
  color: #0645ad;
  text-decoration: underline;
}

/* Referral code */
.referral-code {
  background-color: #0078D4;
  color: white;
  padding: 0.5em 1em;
  border-radius: 4px;
  display: inline-block;
  margin: 0.5em 0;
  cursor: pointer;
  font-weight: bold;
}

/* Links */
.referral-link {
  display: block;
  margin-top: 0.5em;
  color: #0078D4;
  text-decoration: underline;
  font-weight: 500;
  word-break: break-word;
}

/* Donate section */
#donate-section {
  text-align: center;
  margin: 3em 0;
}

.donate-message {
  font-size: 1.2em;
  margin-bottom: 1em;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.donate-image {
  width: 220px;
  height: auto;
  cursor: pointer;
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.9em;
  color: #666;
  padding: 2em 1em;
  background-color: #fff;
  border-top: 1px solid #ddd;
}

/* Toast */
#copy-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background-color: #333;
  color: #fff;
  padding: 0.6em 1.2em;
  border-radius: 6px;
  font-size: 1em;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  pointer-events: none;
}

/* SEO enhancements */

/* Visually hidden content for accessibility or SEO */
.visually-hidden {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Optional SEO section styling */
.seo-section {
  max-width: 800px;
  margin: 3em auto;
  padding: 0 1em;
  font-size: 1em;
  color: #444;
  font-family: 'Nunito', sans-serif;
  line-height: 1.5;
}

/* FAQ list styling */
.faq-list {
  list-style: none;
  padding: 0;
  margin-top: 1em;
}

.faq-list li {
  margin-bottom: 1em;
}

.faq-list strong {
  display: block;
  color: #0a2a66;
  margin-bottom: 0.3em;
}

.faq-answer {
  margin-top: 0.3em;
  font-size: 0.95em;
  color: #444;
  transition: all 0.3s ease;
}
