/* ===== Base ===== */
html { font-size: 100%; }

body {
  font: 400 1em/1.5 Helvetica, Arial, sans-serif;
  color: rgba(0, 0, 0, .8);
  background:url(bg_balaam.gif);
  margin: 0 auto;
}

a {
  color: blue;
  text-decoration: underline;
}

/* Titraille */
h1 {
  font-family: times, "Times New Roman", times-roman, georgia, serif;
  color: #444;
  margin: 0;
  padding: 10px;
  font-size: 50px;
  line-height: 44px;
  letter-spacing: -2px;
  font-weight: bold;
  text-align: center;
}

h2 {
  font-family: "Times New Roman", Georgia, serif;
  color: #444;
  font-size: 30px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin: 2.2rem 0 0.8rem;
  padding: 0;
}

h3 {
  font-family: "lemon", Georgia, serif;
  color: #444;
  font-size: 27px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin: 2.2rem 0 0.8rem;
  padding: 0;
}

img {
  border: 0;
  max-width: 100%;
  height: auto;
}

/* ===== Layout ===== */
#container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-left: 1px solid #222;
  border-right: 1px solid #222;
  box-shadow: 0 0 10px #000;
}

#main {
  max-width: 95%;
  margin: 0 auto;
}

#header { position: relative; background-color: #171c1a; }

#header .logo {
  display: block;
  /* ne pas fixer la hauteur: l'image devient responsive */
  box-shadow: 0 5px 10px #000;
}

#header .logo img {
  display: block;
  width: 100%;
  height: auto;
}

#content { line-height: 1.5; }
#content h1 { margin-top: .7em; }

#inner-content { padding: 1em 2em 2em; }

#content, #inner-content, #main { overflow: hidden; }

/* ===== Typo ===== */
p {
  color: #555;
  font-size: 22px;
  padding: 0 !important;
  font-family: georgia, serif;
  border: 0;
}

a{color: blue;}
a:hover{color: red;}

.ombre{ text-shadow: 1px 1px 1px #000; color:#000; }
.ombreRed{ text-shadow: 1px 1px 1px #000; color:red; }
.ombreBlue{ text-shadow: 1px 1px 1px #000; color:#005580; }
.ombreBrown{ text-shadow: 1px 1px 1px #000; color:#802A00; }
.ombreGreen{ text-shadow: 1px 1px 1px #000; color:green; }
.ombreMaroon{ text-shadow: 1px 1px 1px #000; color:purple; }

/*---------- COLOR ----------*/
.yellow { background: #F8F6AE; padding: 1px; }
.purple { background: #E0D8E8; padding: 1px; }
.pink { background: pink; padding: 1px; }
.green { background: #99FF99; padding: 1px; }
.orange { background: #FFE099; padding: 1px; }
.red { background: red; padding: 1px; }
.blue { background: #A9BCF5; 1px; }
.white { background:#F2F5A9 1px; }
.gold { background:gold 1px; }
/*---------- COLOR ----------*/

/* Liste utilisée */
.list {
  font-size: 22px;
  font-family: georgia, serif;
}

/* ===== Cadre Citation ===== */
.cadre {
  color: #555;
  width: 97%;
  border-width: 3px;
  border-style: solid;
  border-color: #F2F2F2;
  box-shadow: 3px 3px 3px black inset;
  padding: 19px;
  font-size: 22px;
  font-family: "georgia", sans-serif;
}

/* ===== Encadrés bibliques ===== */
.cadre2 {
  width: 97%;
  color: #555;
  font-size: 22px;
  font-family: georgia, serif;
  background-color: #fff;
  border-left: 3px solid black;
  border-radius: 4px;
  padding: 5px;
  box-shadow: 2px 2px 10px gray;
}

.cadre2 p {
  margin-bottom: 10px;
  font-size: 1em;
}

/* ===== Tableau des dates ===== */
#inner-content .dates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 0 auto;
}

#inner-content .dates-grid a {
  display: grid;
  place-items: center;
  border: 1px solid #000;
  border-radius: 6px;
  background: #E2E2E2;
  text-decoration: none;
  color: #000;
  font-family: "Times New Roman", serif;
  font-size: clamp(24px, 6vw, 60px);
  line-height: 1.2;
  padding: 18px 8px;
  transition: background .2s ease;
}

#inner-content .dates-grid a:hover {
  background: #1877F2;
  color: white;
}

/* ===== Responsive ===== */

/* Tablette */
@media (max-width: 900px) {
  h1 { font-size: 2em; }
  h2 { font-size: 1.6em; }
  p, .list, .cadre2 { font-size: 20px; }
  #inner-content { padding: 1em 1.25em 1.5em; }

  .TabDate td {
    font-size: 42px;
    line-height: 70px;
    height: 70px;
    width: 25%; /* conserve 4 colonnes si possible */
  }
}

/* Mobile large */
@media (max-width: 640px) {
  body { margin-top: 15px; }
  #container { border-width: 0; box-shadow: none; }
  #inner-content { padding: 1em; }
  h1 { font-size: 2.3em; }
  h2 { font-size: 1.8em; }
  p, .list, .cadre2 { font-size: 20px; }

  /* Passe à 2 colonnes lisibles */
  .TabDate td {
    width: 50%;
    font-size: 34px;
    line-height: 64px;
    height: 64px;
  }
}

/* Mobile étroit */
@media (max-width: 380px) {
  h1 { font-size: 1.5em; }
  h2 { font-size: 1.2em; }
  p, .list, .cadre2 { font-size: 16px; }

  /* Toujours 2 colonnes, mais texte plus compact */
  .TabDate td {
    font-size: 28px;
    line-height: 56px;
    height: 56px;
  }
}

/* Bloc de liens juste avant le footer */
.page-links {
  max-width: 900px;
  margin: 3rem auto 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0; /* petite séparation avec le contenu */
}

/* Titre "Pour aller plus loin" */
.page-links-title {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #555;
  text-align: center;
}

/* Liste des liens */
.page-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

/* Style des liens (pastilles noires sur fond blanc) */
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.3;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    transform 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.15s ease;
}

/* Petit chevron discret à droite */
.page-link::after {
  content: "›";
  font-size: 1.1rem;
  margin-left: 0.6rem;
  opacity: 0.7;
}

/* Hover : inversion noir/blanc, cohérent avec footer noir */
.page-link:hover {
  background: #000;
  color: #fff;
  border-color: #000;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

/* Focus clavier */
.page-link:focus {
  outline: none;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px #000;
}

/* Sur écrans plus larges : 2 colonnes */
@media (min-width: 720px) {
  .page-links-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .page-links-list li {
    flex: 0 1 calc(50% - 0.75rem);
    display: flex;
    justify-content: center;
  }
}

/* Bloc citation de verset (1 Pierre et King James / David Martin, etc.) */
.verse-box {
  position: relative;
  margin: 1.5rem auto;
  padding: 1.4rem 1.6rem 1.2rem;
  background: #f7f7f9;
  border-radius: 6px;
  border: 1px solid #d4d7dd;
  border-left: 4px solid #4b5a73;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  color: #444;
  font-size: 22px;
  font-family: "Georgia", serif;
}

.verse-box p {
  margin: 0.4em 0;
}

/* Référence du verset en bas à droite */
.verse-ref {
  margin-top: 0.8em;
  font-size: 0.95em;
  text-align: right;
  font-style: italic;
  font-weight: bold;
}

/* Petite icône Bible dans le coin haut-gauche */
.verse-icon {
  position: absolute;
  top: -16px;
  left: 18px;
  padding: 3px 6px;
  background: rgba(247, 247, 249, 0.9);
  border-radius: 999px;
}

.verse-icon-svg {
  width: 28px;
  height: 18px;
  fill: none;
  stroke: #4b5a73;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
}

/* Titre principal dans le header */
.page-header {
  text-align: center;
  margin: 1.5rem 0 1rem;
  margin-bottom: 90px;
}

.page-title {
  font-family: "Times New Roman", Georgia, serif;
  font-size: 2.5rem;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -1px;
  color: #444;
}

/* Séparateur horizontal */
.section-divider {
  margin: 1.5rem 0;
  border: 0;
  border-top: 1px solid #ccc;
}

/* Lien de retour type “bouton” */
.back-link-wrapper {
  text-align: center;
  margin: 1.5rem 0 0;
}

.back-link {
  display: inline-block;
  padding: 0.6em 1.4em;
  border-radius: 999px;
  border: 1px solid #e7e5e4;
  background: #131313;
  color: #e7e5e4;
  font-family: "Avant Garde", "Century Gothic", system-ui, sans-serif;
  font-size: 1.1rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.back-link:hover {
  background: #1f1f1f;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.back-link:active {
  transform: translateY(1px);
  box-shadow: none;
}

footer{
  display:flex;
  flex-direction: column;
  align-items:center;
  gap:14px;
  padding:20px 0;
  background:#131313;
}
.footer-actions{ display:flex; justify-content:center; }

.wt{
  position: relative;
  max-width: 95%;
  margin: 1.4rem auto 1.8rem;
  padding: 2.5rem 1.2rem 1.1rem;
  background: #ECECEC;
  border-radius: 6px;
  border: 3px solid #C3CBD5;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  font-size: 1.25em;
  color: #5a4a32;
}

.wt::before{          
  opacity:0.3;
  content: "";
  position: absolute;
  top: 0;
  left: 1.1rem;

  width: 80px;
  height: 80px;

  background: no-repeat center / contain url("watchtower.svg");
}

.content{
  padding: 0 18px;
}
@media (min-width: 900px){
  .content{ padding: 0 28px; }
}

/* Alignements utilitaires */
.text-center {
  text-align: center;
}

/* Soulignement ondulé rouge (TMN) */
.vagues {
  text-decoration-line: underline;
  text-decoration-color: red;
  text-decoration-style: wavy;
  /* + visibilité */
  text-decoration-thickness: 2px;   /* plus épais */
  text-underline-offset: 3px;         /* légèrement décollé du texte */
}

.underline {border-bottom: 2px solid red;}

.size-shadow {
  max-width: 100%;
  height: auto;
  box-shadow: 2px 2px 10px gray;
  -moz-box-shadow: 2px 2px 10px gray;
  -webkit-box-shadow: 8px 8px 10px gray;
  border-radius: 15px;
}
.note-box {
  position: relative;
  max-width: 95%;
  margin: 1.4rem auto 1.8rem;
  padding: 1rem 1.2rem 1.1rem;
  background: #f8f4e9;
  border-radius: 6px;
  border: 1px solid #e3d8c3;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  font-size: 1.25em;
  color: #5a4a32;
}

/* Cartouche "Note" */
.note-box::before {
  content: "Note";
  position: absolute;
  top: -0.7rem;
  left: 1.2rem;
  padding: 0.12rem 0.7rem;
  background: #f8f4e9;
  border-radius: 999px;
  border: 1px solid #e3d8c3;
  font-size: 0.8em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7b6740;
}

/* Texte interne des notes */
.note-box p {
  margin: 0.35rem 0;
  font-size: 1em;
}

fieldset{font-size:21px;}
legend{font-size:21px;}

.verse-num{
  color:#4A6DC5;
  font-weight:700;
  margin-right:.25em;
}

.rad{border-radius: 15px;}
