/* css/style.css */
:root {
  --max-width: 1030px;
  --gap: 1rem;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  color: #333;
  background: #fff;
}
header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--gap);
  text-align: center;
  background: #fff;
}
footer {
  background-color: #fff; /* gris très clair */
  /* facultatif : un peu de padding pour l’aération */
  padding: 1em;
  max-width: var(--max-width);
  margin: 0 auto;
}
.banner {
  width: 100%;
  height: auto;
}
.ticker {
  overflow: hidden;
  white-space: nowrap;
  animation: ticker 15s linear infinite;
  margin-top: 0.5rem;
}
@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
.container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--gap);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--gap);
}
aside {
  background: #fff;
  padding: var(--gap);
  border-radius: 8px;
}
.news h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.news ul {
  list-style: none;
  margin-bottom: var(--gap);
}
.news li {
  margin-bottom: 0.5rem;
}
.comic {
  text-align: center;
  margin-top: var(--gap);
}
.comic img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
footer nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: var(--gap);
  align-items: center;
}

footer img {
  max-width: 100%;
  height: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
  }
}
body {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #1D5EA5;
    text-decoration: none;
    scrollbar-arrow-color: white;
    scrollbar-base-color: #0D7CBF;
    scrollbar-track-color: white;
}

html {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
}

h1, .h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5em; }
h2, .h2 { font-size: 2rem;   font-weight: 600; margin-bottom: 0.5em; }
h3, .h3 { font-size: 1.75rem; font-weight: 600; margin-bottom: 0.5em; }
h4, .h4 { font-size: 1.5rem; font-weight: 500; margin-bottom: 0.5em; }
h5, .h5 { font-size: 1.25rem; font-weight: 500; margin-bottom: 0.5em; }
h6, .h6 { font-size: 1rem;   font-weight: 500; margin-bottom: 0.5em; }

table {
    width: 350px;
    border-collapse: collapse;
    margin-bottom: 20px;
}
th {
    text-align: left;
    padding: 8px 0;
    font-size: 1.1em;
}
td {
    padding: 6px;
    vertical-align: middle;
}

.photo {
    width: 61px;
    height: 61px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
}
.date {
    width: 50px;
}
.photo-cell {
    width: 61px;
    height: 61px;
    padding: 0;
    text-align: center;
    vertical-align: middle;
}

/* Pour remplacer le style inline dans anniriri.php */
.error {
    color: red;
}
a:link {
  color: #1D5EA5;     /* couleur des liens non visités */
}

a:visited {
  color: purple;   /* couleur des liens visités */
}
a.visiter-link,
a.visiter-link:link,
a.visiter-link:visited {
  text-decoration: none;
}

a.visiter-link:hover,
a.visiter-link:focus {
  text-decoration: underline;  /* facultatif : si vous voulez un effet au survol */
}
.ticker-wrapper {
  max-width: var(--max-width); /* 1030px comme défini dans :root */
  margin: 0 auto;              /* centré horizontalement */
  overflow: hidden;            /* masque le texte hors zone */
  position: relative;
}

.ticker {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 15s linear infinite;
  padding: 0.5rem 0;
}
.header {
  display: flex;
  align-items: center;
}
.logo img {
  height: 75px;
  /* ajustez selon vos besoins */
}
.date-auj {

  margin-left: 1rem;
  font-size: 0.9rem;
  color: #555;
}
a:link,
a:visited {
  text-decoration: none;
}
a:visited {
  /* couleur des liens visités */
  color: purple;
  text-decoration: none;
}
a:hover,
a:focus {
  text-decoration: underline;
}
/* Pour que les largeurs soient strictes */
footer table {
  table-layout: fixed;
  width: 100%; /* ou largeur fixe si vous préférez */
}

/* Colonne 1 = 350px */
footer table th:first-child,
footer table td:first-child {
  width: 120px;
}

/* Colonne 2 = 650px */
footer table th:nth-child(2),
footer table td:nth-child(2) {
  width: 900px;
}

/* === Ajout pour forcer l’aside du footer en haut === */
footer .container {
  /* aligne tous les enfants de la .container dans le footer en haut */
  align-items: start;
}

footer .container aside {
  /* garantit que seul l’aside reste collé en haut */
  align-self: start;
}
.page-titre {
  max-width: var(--max-width);
  margin: 2rem auto 1rem auto;  /* espace au-dessus et en dessous */
  padding: 0 1rem;
  text-align: left;
}

.page-titre h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1D5EA5;  /* bleu cohérent avec le thème du site */
  margin: 0;
}

/* Correction du menu pour alignement gauche et compacité */
nav#menu-principal a {
  text-align: left;
  padding: 6px 12px;
  line-height: 1.3;
}

nav#menu-principal ul ul a {
  padding: 5px 12px;
  font-size: 0.95em;
}

nav#menu-principal li {
  margin: 0;
}