/* Corps et fond */
body {
  background: #f0f4f8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: #223344;
  margin: 0;
  padding: 0;
}

h1 {
  font-weight: 700;
  font-size: 3rem;
  margin: 3rem 0 4rem 0;
  text-align: center;
}

h2 {
  font-size: 1.2em;
  margin: 0 0 10px 0;
  text-align: center;
  color: #334455;
}

/* Grilles générales */

.grid {
  display: grid;
  gap: 20px;
  padding: 20px;
}

.ct-slices-grid {
  grid-template-columns: repeat(3, 1fr);
}

.ct-histogram-grid {
  grid-template-columns: 1fr;
  max-width: 600px;
  margin: 40px auto;
}

/* Cartes contenant les plots */

.plot-card {
  background: white;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(34, 51, 68, 0.15);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.plot-card:hover {
  box-shadow: 0 8px 24px rgba(34, 51, 68, 0.3);
}

/* Iframe plots */

iframe {
  width: 100%;
  height: 500px;
  border: none;
  border-radius: 8px;
  user-select: none;
  pointer-events: auto;
}

.ct-slices-grid iframe {
  height: 400px;
}

.ct-histogram-grid iframe {
  aspect-ratio: 1 / 1;
  height: auto;
  max-width: 600px;
  margin: 0 auto;
}

/* Boutons - utile pour index.html ou autre */

button {
  background-color: #0069ff;
  border: none;
  color: white;
  font-size: 1.25rem;
  padding: 0.8rem 2.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
  user-select: none;
}

button:hover {
  background-color: #004ecb;
}

button:focus {
  outline: 3px solid #004ecb;
  outline-offset: 2px;
}

/* Sections de boutons avec images */

.section-button {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(34, 51, 68, 0.15);
  padding: 2rem;
  width: 320px;
  margin: 0 auto 4rem auto;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.section-button:hover {
  box-shadow: 0 8px 24px rgba(34, 51, 68, 0.3);
}

.section-button img {
  max-width: 280px;
  border-radius: 8px;
  margin-bottom: 1rem;
  user-select: none;
  pointer-events: none;
}
