:root {
  --primary-purple: #3c0d3c;
  --accent-orange: #f78f1e;
  --light-cream: #f9f6f2;
  --grotto-blue: #36578c;
  --grotto-brown: #896658;
  --grotto-red: #aa2617;
  --grotto-yellow: #fda83c;
  --grotto-off-white: #f1f1f1;
  --grotto-gray: #e5e1e0;
  --grotto-text: #886759;
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: var(--grotto-off-white);
  color: #333;
  line-height: 1.6;
}

header {
  display: none;
}

.banner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background-color: var(--grotto-brown);
  padding: 1.5rem 1.2rem;
  flex-wrap: wrap;
  color: white;
}

.banner-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.banner-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin: 0;
}

.banner-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.banner-button {
  background-color: var(--grotto-gray);
  color: var(--grotto-text);
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1.2rem;
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s;
}

.banner-button:hover {
  background-color: #d7d3ce;
}

.banner-button i {
  font-size: 1rem;
}

.logo-icon {
  height: 22px;
  width: auto;
  vertical-align: middle;
  margin-right: 0.4rem;
}

.banner-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  text-align: right;
  font-size: 1rem;
  color: white;
}

.banner-right a {
  color: white;
}

.license-logos {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.license-logos img {
  height: 35px;
}

.container {
  max-width: 1600px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.section {
  margin-bottom: 2rem;
  border-radius: 8px;
  padding: 2rem;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.section-header {
  color: var(--grotto-blue);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 800;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.two-row {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 2rem;
}

ul {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

ul li {
  margin-bottom: 0.75rem;
  position: relative;
}

ul li::before {
  content: "–";
  position: absolute;
  left: -1.25rem;
  color: var(--accent-orange);
}

.highlight {
  background: var(--grotto-off-white);
  padding: 1.5rem;
  border-radius: 6px;
  margin: 1rem 0;
}

.highlight code {
  font-family: monospace;
  background: rgba(0,0,0,0.05);
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

.links a {
  color: var(--primary-purple);
  text-decoration: underline;
  font-weight: 500;
}

.links a:hover {
  color: var(--accent-orange);
}

/* Styles pour la terminal (utilisé dans Z3950.html) */
.terminal {
  background-color: #0d1117;
  color: #e6edf3;
  border-radius: 6px;
  padding: 1rem;
  font-family: monospace;
  overflow-x: auto;
  margin: 1rem 0;
}

.terminal pre {
  margin: 0;
}

.terminal .prompt {
  color: #7ee787;
}

.terminal .command {
  color: #79c0ff;
}

.terminal .output {
  color: #a5d6ff;
}

/* Media queries pour la responsivité */
@media (max-width: 1000px) {
  .banner-buttons {
    justify-content: center;
    max-width: 100%;
  }
  
  .banner-button {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .banner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .banner-left, .banner-right {
    align-items: center;
    text-align: center;
  }
  
  .banner-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 500px) {
  .banner-button {
    margin-bottom: 0.5rem;
    flex: 0 0 calc(50% - 0.5rem);
  }
}