/* style.css - Feuille de style principale pour Kiz Uni·vers */

/* Reset utile */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --main-bg: #1E0F3F;            /* violet profond */
  --accent-gold: #D4AF37;        /* or chaud */
  --text-light: #f4f4f4;
  --text-muted: #c0bfcf;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Open Sans', sans-serif;
}

/* Base document */
html {
  height: 100%;
  margin: 0;         /* corrige le 'margin: 0;cc' */
  padding: 0;
  overflow-y: auto;  /* permet le scroll si le contenu dépasse */
  overflow-x: hidden;
}

body {
  background-color: var(--main-bg);
  color: var(--text-light);
  font-family: var(--font-body);
  margin: 0;
  padding: 1em;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* page en colonne: header / main / footer */
}

/* Titres, textes */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--accent-gold);
  margin-bottom: 0.5em;
}

h1 {
  text-align: center;
  text-decoration: underline;
  color: black;
  background-color: #b19cd9;
  font-size: 2.5em;
  margin: 0.5em 0.5em 0.2em 0.2em;
}

p { line-height: 1.6; }

a {
  color: var(--accent-gold);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* En-tête / pied */
header, footer {
  background-color: #140b2e;
  padding: 1em;
  text-align: center;
}

header { flex: 0 0 auto; }
footer { flex: 0 0 auto; }

/* Logo */
.logo {
  max-width: 150px;
  margin: 1em auto;
  display: block;
}

/* Nav */
nav ul {
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 0;
  background-color: #1A1032;
}

nav li { margin: 0.5em 1em; }

nav a {
  color: var(--accent-gold);
  font-weight: bold;
  padding: 0.5em;
  text-transform: uppercase;
}

/* Zone principale (fait la hauteur dispo et scrolle) */
main {
  flex: 1 1 auto;
  min-height: 0;      /* IMPORTANT pour autoriser le scroll dans un flex container */
  display: flex;
  flex-direction: column;
  overflow: auto;     /* le scroll se fait ici si besoin */
  padding: 1em;
}

/* Évite que des éléments internes poussent au-delà */
main > * {
  min-width: 0;
}

/* Iframe plein espace disponible dans main */
main iframe {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  border: none;
  overflow: auto;
  -webkit-overflow-scrolling: touch;   /* inertie iOS */
  overscroll-behavior: contain;
}

