/* 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: 0px solid #dedede;
  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;
  box-shadow: 0 5px 10px #000;
}

#header img {
  display: block;
  max-width: 100%;
  height: auto;
}

#header .banner-title {
  position: absolute;
  opacity: 0.6;
  top: 18%;
  left: 5%;
  transform: translateX(-50%);
  font-size: 1em;
  color: black;
  text-shadow: 1px 1px 1px black;
  z-index: 10;
  font-weight: bold;
}

/* Footer (nouvelle structure) */
#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 versets & liens TMN */
.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: #E4BD58;
  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: #E7E7E7;
  text-shadow: 0 -1px 1px rgba(175, 49, 95, .9), 0 0 5px rgba(255, 255, 255, .8);
  color: #000000;
}

.button:focus span {
  outline: 2px solid #000;
  outline-offset: 3px;
}

.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 propre des blocs de boutons */
.verses-nav,
.tmn-extra-nav {
  text-align: center;
}

.verses-nav .button,
.tmn-extra-nav .button {
  margin: 8px;
}

/* Responsive */
@media screen and (max-width: 640px) {
  #container {
    border-width: 0;
    margin-top: 0;
  }

  #header {
    float: none;
    width: 100%;
  }

  #header .banner-title {
    top: 14%;
    left: 25%;
    font-size: 1.4em;
  }

  p {
    font-size: 18px;
  }

  h1 {
    font-size: 1.4rem;
  }

  /* Boutons un peu plus grands en vertical */
  .button {
    font-size: 26px;
    margin: 12px;
  }

  .button span {
    font-size: 26px;
    padding: 18px 20px;
  }

  #footer {
    font-size: 18px;
  }

  /* en dessous */
    .nwt-tmn-timeline {
    margin: 1em 0;
  }

  .nwt-tmn-timeline li {
    margin-bottom: 1.2em;
  }

  .nwt-tmn-timeline p {
    font-size: 16px;
  }
}

/* Section timeline NWT / TMN */
.nwt-tmn-section {
  margin-top: 4em;
}

.nwt-tmn-section h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5em;
}

.nwt-tmn-timeline {
  list-style: none;
  margin: 1.5em 0;
  padding: 0;
  position: relative;
}

/* Ligne verticale de la timeline */
.nwt-tmn-timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ccc;
}

/* Chaque événement */
.nwt-tmn-timeline li {
  position: relative;
  padding-left: 2.5em;
  margin-bottom: 1.5em;
}

/* Pastille sur la ligne */
.nwt-tmn-timeline li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.45em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #E4BD58;
  border: 2px solid #171c1a;
}

/* Ligne date + badge NWT/TMN */
.nwt-tmn-date {
  font-weight: bold;
  margin-bottom: 0.2em;
  font-family: "georgia", sans-serif;
}

.nwt-tmn-date strong {
  font-size: 1.05em;
}

/* Badges NWT / TMN */
.tag {
  display: inline-block;
  margin-left: 0.5em;
  padding: 0.1em 0.5em;
  border-radius: 999px;
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tag-nwt {
  background: #171c1a;
  color: #ffffff;
}

.tag-tmn {
  background: #E4BD58;
  color: #000000;
}

/* Texte des événements */
.nwt-tmn-timeline p {
  margin: 0.2em 0 0;
  font-size: 18px;
}
