/* Agenda — positions relevées sur latraverse42.fr (page de 1031 px). */

.contenu-bois { left: 0; top: 75px; width: 1031px;
  background: url(/static/images/planches-bois.jpg) 0% 0% repeat; }
.pied { display: none; }   /* l'ancien modèle de page Agenda n'a pas de pied de page */

.affiche-filet { left: 46px; top: 114px; width: 30px; height: 1px; background-color: #c9983a; }
.affiche-surtitre { left: 86px; top: 108px; width: 311px; height: 13px; white-space: nowrap;
  font-family: 'DM Mono', sans-serif; font-size: 10px; letter-spacing: 0.5em; text-transform: uppercase;
  font-variant: small-caps; color: #C9983A; }
.affiche-a { left: 40px; top: 108px; width: 160px; height: 141px;
  font-family: 'Playfair Display', serif; font-size: 100px; font-weight: 500; font-variant: small-caps; color: #F5EFE0; }
.affiche-titre { left: 40px; top: 235px; width: 247px; height: 112px; white-space: nowrap;
  font-family: 'PlayfairDisplay-Medium Italic', sans-serif; font-size: 70px; font-weight: 500; font-style: italic;
  color: #E8C46A; }
.affiche-texte { left: 40px; top: 344px; width: 245px; height: 35px;
  font-family: 'PlayfairDisplay-Medium Italic', sans-serif; font-style: italic; color: rgba(245, 239, 224, 0.80); }
.calendrier { display: block; left: 911px; top: 82px; width: 93px; height: 80px;
  background: url(/static/images/agenda-calendrier.png) center center / contain no-repeat; }

/* ===== Tableau des dates =====
   Chaque rangée (en-têtes de groupe et de mois comprises) s'agrandit au survol : code repris de l'ancien site.
   Sur l'ancien site, la classe n'était ajoutée qu'une seconde après le chargement ; ici, dès l'affichage. */
/* Zone de l'agenda, comme la zone répétée WEBDEV : elle coupe la tuile agrandie à gauche et à droite
   (coins carrés) et montre une barre de défilement horizontale quand elle déborde. 22 px plus courte que le tableau. */
.zone-dates { left: 299px; top: 169px; width: 724px; overflow-x: auto; overflow-y: hidden; }
.dates { width: 724px; border-collapse: collapse; border-spacing: 0; }
.dates td { position: relative; padding: 0; vertical-align: top; }
.dates td > * { position: absolute; }

.ligne-cliquable {
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}
.ligne-cliquable:hover {
  transform: scale(1.28);
  z-index: 9999;
}

/* En-tête de groupe (« Dates à Venir (titre) ») suivi du premier mois. */
.rangee-groupe td { height: 51px; }
.groupe-filet { left: 0; top: 0; width: 724px; height: 26px; border-bottom: 1px solid #c9983a; }
.groupe-titre { left: 0; top: 3.5px; width: 599px; height: 19px; white-space: nowrap;
  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16px; color: #E8C46A; }
.rangee-groupe .mois { top: 33px; }
.rangee-mois td { height: 24px; }
.mois { left: 18px; top: 6px; width: 581px; height: 19px; white-space: nowrap;
  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16px; color: #F5EFE0; }
.rangee-fin-mois td { height: 17px; }
.rangee-fin-groupe td { height: 46px; }

/* Tuile d'une date : 580 × 154 px, à 72 px du bord du tableau et 18 px du haut de la rangée. */
.rangee-date td { height: 184px; }
.tuile { left: 72px; top: 18px; width: 580px; height: 154px; border-radius: 12px; background-color: rgb(26, 22, 18); }
.tuile.passee { background-color: rgb(45, 0, 0); }
.tuile > * { position: absolute; }
.tuile-jour-nom { left: 11px; top: 18px; width: 100px; height: 14px; text-align: center;
  font-family: 'DM Mono', sans-serif; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(245, 239, 224, 0.70); }
.tuile-jour { left: 35px; top: 34px; width: 46px; height: 62px; text-align: center;
  font-family: 'Playfair Display', serif; font-size: 46px; font-weight: 900; color: #C9983A; }
.tuile-mois { left: 13px; top: 100px; width: 100px; height: 13px; text-align: center; white-space: nowrap;
  font-family: 'DM Mono', sans-serif; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(245, 239, 224, 0.70); }
.tuile-heure { left: 11px; top: 119px; width: 101px; height: 27px; text-align: center;
  font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 900; color: #E8C46A; }
.tuile-barre { left: 114px; top: 13px; width: 2px; height: 100px; background-color: #60491C; }
/* Titre, commentaire, lieu et tarif se suivent : le lieu descend quand il y a un commentaire. */
.tuile-infos { left: 125px; top: 21px; width: 455px; }
.tuile-infos > div { position: static; }
.tuile-titre { width: 446px; height: 27px;
  font-family: 'Playfair Display', serif; font-size: 20px; font-style: italic; color: #F5EFE0; }
.tuile-commentaire { padding: 7px 0 0 12px; width: 440px;   /* marges intérieures : un commentaire vide garde sa place */
  font-family: 'DM Mono', sans-serif; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(245, 239, 224, 0.60); }
.tuile-lieu { padding-top: 8px; width: 446px;
  font-family: 'DM Mono', sans-serif; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(245, 239, 224, 0.80); }
.tuile-tarif { padding: 14px 0 0 10px; width: 440px; text-align: right;
  font-family: 'DM Mono', sans-serif; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(245, 239, 224, 0.60); }

/* Bouton « Réserver » (nouveau) : style class-agenda-reserver prévu dans l'ancien thème WEBDEV mais jamais utilisé.
   Au premier plan : le bloc de texte de la tuile (titre, lieu, tarif) passe dessous et prendrait le clic. */
.tuile-reserver { z-index: 2; right: 16px; top: 16px; padding: 7px 12px 6px; border: 1px solid #c9983a;
  font-family: 'DM Mono', sans-serif; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #c9983a; text-decoration: none; transition: background-color 0.2s, color 0.2s; }
.tuile-reserver:hover { background-color: #e8c46a; color: #18181a; }

/* Écran tactile (tablette, téléphone) : pas de survol, la tuile touchée s'agrandit (classe posée par agenda.js),
   la même animation que le survol à la souris. */
.ligne-cliquable.agrandie { transform: scale(1.28); z-index: 9999; }
@media (hover: none) {
  .ligne-cliquable:hover { transform: none; z-index: 1; }
  .ligne-cliquable.agrandie { transform: scale(1.28); z-index: 9999; }
}

/* ===== Téléphone : titre, puis les dates les unes sous les autres, sur les planches ===== */
@media (max-width: 820px) {
  .page-agenda #page { background: url(/static/images/planches-bois.jpg) 0% 0% repeat; }
  .contenu-bois, .calendrier { display: none !important; }
  #page > .pied { order: 9; }
  #page > .affiche-filet { order: 1; flex: 0 0 30px; height: 1px; margin: 30px 10px 0 16px; align-self: center; }
  #page > .affiche-surtitre { order: 2; flex: 0 0 calc(100% - 56px); width: auto; height: auto; margin-top: 30px; white-space: normal; font-size: 11px;
    letter-spacing: 0.35em; }
  #page > .affiche-a { order: 3; flex: 0 0 auto; width: auto; height: auto; margin: 4px 0 0 16px; padding-right: 0.25em;
    font-size: 64px; line-height: 1; }
  #page > .affiche-titre { order: 4; flex: 0 0 auto; width: auto; height: auto; font-size: 48px; line-height: 1; }
  #page > .affiche-texte { order: 5; width: auto; height: auto; margin: 10px 0 18px; padding: 0 16px; font-size: 17px; line-height: 1.35; }

  #page > .zone-dates { order: 6; width: auto; height: auto !important; overflow: visible; padding: 0 16px; }
  .dates, .dates tbody, .dates tr, .dates td { display: block; width: auto; height: auto !important; }
  .dates td > * { position: relative; left: auto; top: auto; }
  .groupe-filet { display: none; }
  .groupe-titre { width: auto; height: auto; white-space: normal; padding: 22px 0 8px; border-bottom: 1px solid #c9983a;
    font-size: 17px; line-height: 1.3; }
  .mois, .rangee-groupe .mois { width: auto; height: auto; padding: 14px 0 0 4px; top: auto; font-size: 16px; }
  .rangee-fin-mois td, .rangee-fin-groupe td { display: none; }
  /* Seules les tuiles des dates s'agrandissent au toucher, et moins qu'à l'écran large : elles occupent toute la largeur. */
  .rangee-groupe, .rangee-mois { transform: none !important; }
  .ligne-cliquable.agrandie, .ligne-cliquable:hover { transform: none; }
  .rangee-date.agrandie { transform: scale(1.06); z-index: 9999; }
  .rangee-date.agrandie .tuile { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(201, 152, 58, 0.6); }

  /* Tuile : date à gauche (nom du jour, jour, mois, heure), barre dorée, puis les informations. */
  .tuile { width: auto; height: auto; margin: 12px 0 0; padding: 14px 14px 14px 0; display: grid;
    grid-template-columns: 92px 2px 1fr; grid-template-rows: auto auto auto auto 1fr; column-gap: 12px; }
  .tuile > * { position: static !important; width: auto !important; height: auto !important; }
  .tuile-jour-nom { grid-column: 1; grid-row: 1; font-size: 11px; color: rgba(245, 239, 224, 0.85); }
  .tuile-jour { grid-column: 1; grid-row: 2; line-height: 1.25; }
  .tuile-mois { grid-column: 1; grid-row: 3; font-size: 11px; letter-spacing: 0.15em; color: rgba(245, 239, 224, 0.85); }
  .tuile-heure { grid-column: 1; grid-row: 4; margin-top: 6px; }
  .tuile-barre { grid-column: 2; grid-row: 1 / span 5; }
  .tuile-infos { grid-column: 3; grid-row: 1 / span 4; }
  .tuile-infos > div { width: auto; height: auto; }
  .tuile-titre { font-size: 21px; line-height: 1.25; }
  .tuile-commentaire { padding: 6px 0 0; font-size: 11px; line-height: 1.5; color: rgba(245, 239, 224, 0.8); }
  .tuile-lieu { padding-top: 8px; font-size: 13px; line-height: 1.5; letter-spacing: 0.12em; color: rgba(245, 239, 224, 0.9); }
  .tuile-tarif { padding: 10px 0 0; text-align: left; font-size: 11px; line-height: 1.5; color: rgba(245, 239, 224, 0.8); }
  .tuile-reserver { grid-column: 3; grid-row: 5; justify-self: start; align-self: end; margin-top: 12px; padding: 10px 14px 9px;
    font-size: 12px; }
}
