/* Base */
html {
  font-size: 100%;
}

body {
  font: 400 1em/1.5 Helvetica, Arial, sans-serif;
  background: #2e342a;
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: rgba(0, 0, 0, 0.8);
}

p {
  color: #555;
  font-size: 22px;
  padding: 0 !important;
  font-family: "georgia", sans-serif;
  border: 0;
  margin: 0 0 1em;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.75em;
  padding: 0;
}

/* H1 plus doux visuellement */
h1 {
  font-size: 1.6rem;
  line-height: 1.3;
  font-weight: bold;
  color: #333333;
  font-family: "georgia", sans-serif;
}

a {
  text-decoration: none;
  color: rgba(0, 0, 0, 0.8);
}

a:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}

img {
  border: 0;
  max-width: 100%;
  height: auto;
  display: block;
}

table {
  width: 100%;
  margin-bottom: 1em;
  border-collapse: collapse;
}

td {
  padding: .5em;
}

/* Layout principal */
#container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  border: 1px solid #222;
  border-width: 0 1px;
  margin: 0 auto;
  box-shadow: 0 0 10px #000;
}

#main {
  background: #FFFFFF;
  overflow: hidden;
}

#inner-content {
  overflow: hidden;
  padding: 1em 2em 2em;
}

/* Header */
#header {
  position: relative;
  background-color: #171c1a;
}

#header .logo {
  position: relative;
  display: block;
  height: auto;
  -moz-box-shadow: 0 5px 10px #000;
  -webkit-box-shadow: 0 5px 10px #000;
  box-shadow: 0 5px 10px #000;
}

#header img {
  display: block;
  max-width: 100%;
  height: auto;
}

#header .banner-title {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 30px;
  color: white;
  text-shadow: 1px 1px 1px black;
  z-index: 10;
  font-weight: bold;
}

/* Footer (structure harmonisée) */
#footer {
  background: #171c1a;
  padding: 1em 2%;
  border-top: 1px solid #222221;
  color: #e7e5e4;
  font-family: "Avant Garde", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-serif;
  font-size: 20px;
  text-align: center;
}

#footer a {
  text-decoration: none;
  color: #e7e5e4;
}

.footer-inner {
  text-align: center;
}

.footer-links {
  margin-bottom: 0.5em;
}

.footer-links a {
  font-size: 0.8em;
}

.footer-social {
  margin: 0.5em 0;
}

/* Boutons de navigation */
.button {
  display: inline-block;
  margin: 10px;
  border-radius: 8px;
  box-shadow: 0 8px 0 silver, 0 15px 20px rgba(0, 0, 0, .35);
  transition: box-shadow .1s ease-in-out;
  font-size: 26px;
  color: #000000;
}

.button span {
  display: inline-block;
  padding: 16px 20px;
  background-color: #A4CBDF;      /* <-- nouveau bleu */
  border-radius: 8px;
  box-shadow: inset 0 -1px 1px rgba(255, 255, 255, .15);
  font-family: 'Pacifico', Arial, sans-serif;
  line-height: 1;
  text-shadow: 0 -1px 1px rgba(175, 49, 95, .7);
  transition: background-color .2s ease-in-out, transform .1s ease-in-out;
}

.button:hover span {
  background-color: #B7D7E6;      /* <-- bleu un peu plus clair au survol */
  text-shadow: 0 -1px 1px rgba(175, 49, 95, .9), 0 0 5px rgba(255, 255, 255, .8);
  color: #000000;
}

.button:active,
.button:focus {
  box-shadow: 0 8px 0 #000000, 0 12px 10px rgba(0, 0, 0, .3);
}

.button:active span {
  transform: translate(0, 4px);
}

/* Centrage des groupes de boutons */
.divinite-nav,
.divinite-extra-nav {
  text-align: center;
}

.divinite-nav .button,
.divinite-extra-nav .button {
  margin: 8px;
}

/* Illustration Megiddo */
.illustration {
  margin: 1em auto;
  max-width: 500px;
}

.illustration img,
.size-shadow {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  border-radius: 6px;
}

/* Responsive */
@media screen and (max-width: 640px) {
  #container {
    border-width: 0;
    margin-top: 0;
  }

  #header {
    float: none;
    width: 100%;
  }

  #header .banner-title {
    font-size: 1.3em;
    top: 14%;
    left: 50%;
  }

  p {
    font-size: 18px;
  }

  h1 {
    font-size: 1.4rem;
  }

  /* Boutons un peu plus grands sur mobile vertical */
  .button {
    font-size: 26px;
    margin: 12px;
  }

  .button span {
    font-size: 26px;
    padding: 18px 20px;
  }

  #footer {
    font-size: 18px;
  }
}

/* Liens "Voir aussi" plus visibles */
.divinite-refs .ref-link {
  color: #0b63d1;
  text-decoration: underline;
  font-weight: 600;
}

.divinite-refs .ref-link::after {
  content: " ↗";
  font-size: 0.9em;
}

.divinite-refs .ref-link:hover {
  text-decoration: none;
}
