/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  color: black;
  background: white;
}

/* HEADER */
.topbar {
  width: 100%;
  padding: 2rem 0;
  display: flex;
  justify-content: center;
}

.menu {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  font-size: 1.3rem;
}

/* TITRES */
#agence,
#projet {
  cursor: pointer;
  font-weight: 300;
  letter-spacing: 0.03em;
  transition: all .2s ease;
  padding: 0 1.5rem;
}

#agence:hover,
#projet:hover,
.active {
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
}

/* LOGO */
.logo {
  font-size: 3rem;
  display: flex;
  align-items: center;
  gap: .2em;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
}

.plus-wrapper {
  width: 1.1em;
  height: 1.1em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ROTATION ANIMÉE DU X */
.plus-rotator {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotate(45deg) scale(1.3);
}

.plus-svg line {
  stroke: #000;
  stroke-width: 10;
}

/* ZONE CENTRALE */
.center {
  width: 100%;
  height: calc(100vh - 150px);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* IMAGE */
#mainImage {
  max-width: 80vh;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* CONTENU TEXTE / TABLEAU */
#content {
  width: 50vw;
  font-size: 0.95rem;
  line-height: 1.5;
  display: none;
}

/* MODE AGENCE : texte justifié et centré */
#content.agence-mode {
  text-align: justify;
  text-align-last: center;
  margin: 0 auto;
}

/* Ligne noire fine */
#content.agence-mode hr {
  border: none;
  border-top: 1px solid black;
  width: 100%;
  margin: 1.5rem 0;
}

/* MODE TABLEAU : 75vw CENTRÉ SUR LA PAGE */
#content.table-mode {
  width: 75vw;
  max-width: none;
  margin: 0 auto;
}

/* TABLEAU */
#content.table-mode table {
  width: 75vw;
  margin: 0 auto;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.95rem;
}

/* COLONNE ANNÉE (gauche) */
#content.table-mode td:nth-child(1) {
  width: 10vw;
  text-align: left;
}

/* COLONNE PROGRAMME (centrée dans le tableau ET sur la page) */
#content.table-mode td:nth-child(2) {
  width: 55vw;
  text-align: center;
}

/* COLONNE LIEU (droite) */
#content.table-mode td:nth-child(3) {
  width: 10vw;
  text-align: right;
}

/* LIGNES */
#content.table-mode td {
  padding: .25rem 0;
  border-bottom: 1px solid black;
}

#content a {
  color: inherit;        /* garde la couleur du texte environnant */
  text-decoration: none; /* enlève le soulignement */
}

#content a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

