body {
	background-color: #999794;
    font-family: sans-serif;
}

a {
	color:white;
}

a:link {
	text-decoration:none;
}

a:hover {
	color:#333300;
	text-decoration:none;
}

/* Text utilities - replacing deprecated <font> tags */
/* Matching browser default rendering of deprecated font tags */
/* Reduced to 90% of standard sizes */
.text-small { font-size: 10px !important; }
.text-medium-small { font-size: 13px !important; }
.text-large { font-size: 1.5rem !important; }
.text-xlarge { font-size: 2rem !important; }
.text-darkred { color: darkred !important; }
.text-green { color: #335500 !important; }
.nowrap { white-space: nowrap !important; }

.docutils.footnote { font-size: .8em;}

/* Shared
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.button {
  border-radius: 100px;
}

/* Sections
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.section {
  padding: 8rem 0 7rem;
  text-align: center;
}
.section-heading,
.section-description {
  margin-bottom: 1.2rem;
}

ul {
  list-style-type: none;
}

/* Hero
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.phones {
  position: relative;
}
.phone {
  position: relative;
  max-width: 80%;
  margin: 3rem auto -12rem;
}
.phone + .phone {
  display: none;
}

/* Values
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.values {
  background-image: url('../images/values-bg.jpg');
  background-size: cover;
  color: #fff;
  padding-bottom: 5rem;
}
.value-multiplier {
  margin-bottom: .5rem;
  color: #11DFC7;
}
.value-heading {
  margin-bottom: .3rem;
}
.value-description {
  opacity: .8;
  font-weight: 300;
}

/* Help
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.get-help {
  border-bottom: 1px solid #ddd;
}

/* Categories
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.categories {
  background-image: url('../images/values-bg.jpg');
  background-size: cover;
  color: #fff;
}
.categories .section-description { 
  margin-bottom: 4rem;
}

/* Bigger than 550 */
@media (min-width: 550px) {
  .section {
    padding: 12rem 0 11rem;
  }
  .hero {
    padding-bottom: 12rem;
    text-align: left;
    height: 165px;
  }
  .phone {
    position: absolute;
    top: -7rem;
    right: 3rem;
    max-height: 362px;
    z-index: 3;
  }
  .phone + .phone {
    top: -6rem;
    display: block;
    max-width: 73.8%;
    right: 0;
    z-index: 2;
    max-height: 338px;
  }
  .hero-heading {
    font-size: 2.4rem;
  }
}

/* Bigger than 750 */
@media (min-width: 750px) {
  .hero {
    height: 190px;
  }
  .hero-heading {
    font-size: 2.6rem;
  }
  .section { 
    padding: 14rem 0 15rem;
  }
  .hero {
    padding: 16rem 0 14rem;
  }
  .section-description {
    max-width: 60%;
    margin-left: auto;
    margin-right: auto;
  }
  .phone {
    top: -14rem;
    right: 5rem;
    max-height: 510px;
  }
  .phone + .phone {
    top: -12rem;
    max-height: 472px;
  }
  .categories {
    padding: 15rem 0 8rem;
  }
}

/* Bigger than 1000 */
@media (min-width: 1000px) {
  .section {
    padding: 20rem 0 19rem;
  }
  .hero {
    padding: 22rem 0;
  }
  .hero-heading {
    font-size: 3.0rem;
  }
  .phone {
    top: -16rem;
    max-height: 615px;
  }
  .phone + .phone {
    top: -14rem;
    max-height: 570px;
  }
}

/* Schedule Grid
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.schedule-container {
  width: 100%;
  padding: 0 5px;
  color: #fff;
  margin-top: -1.5em;
}

.schedule-container h1 {
  text-align: left;
  margin-bottom: 10px;
  color: #fff;
  font-size: 1.2em;
}

.schedule-grid {
  display: grid;
  grid-template-columns: auto repeat(3, 1fr);
  gap: 3px 8px;
}

.time-label {
  font-size: 11px;
  color: #000;
  text-align: right;
  padding-right: 8px;
  padding-top: 2px;
}

/* Horizontal rules spanning columns (for empty areas) */
.schedule-rule {
  border-top: 1px solid rgba(255,255,255,0.4);
  pointer-events: none;
}

/* Rules on track-groups with content */
.track-group[data-start-time="10h00"],
.track-group[data-start-time="12h00"],
.track-group[data-start-time="13h00"],
.track-group[data-start-time="19h00"],
.track-group[data-start-time="20h00"] {
  border-top: 1px solid rgba(255,255,255,0.4);
}

.schedule-times {
  display: contents;
}

.schedule-day {
  display: contents;
}

.day-header {
  all: unset;
  display: block;
  font-size: 12px;
  font-weight: bold;
  font-family: sans-serif;
  color: #000;
  text-align: left;
}

/* Year header */
.schedule-year {
  font-weight: bold;
  font-size: 12px;
  color: #000;
  text-align: right;
  padding-right: 8px;
  padding-bottom: 2px;
  justify-self: end;
}

/* Track group - container for vertical bar + events */
.track-group {
  display: grid;
  grid-template-columns: 13px 1fr;
  grid-template-rows: subgrid;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 3px;
  position: relative;
}

.track-group:hover {
  transform: translateX(2px);
}

.track-group.highlight {
  filter: brightness(1.2);
  transform: translateX(3px);
}

.track-info {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 10px;
  color: #fff;
  opacity: 0.7;
}

/* Vertical bar with track name */
.track-bar {
  grid-column: 1;
  grid-row: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px 0 0 3px;
}

.track-bar-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 10px;
  font-weight: bold;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 100%;
  padding: 4px 0;
}

/* Individual events */
.event {
  grid-column: 2;
  display: flex;
  gap: 4px;
  padding: 2px 6px;
  line-height: 1.2;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

.event:last-of-type {
  border-bottom: none;
}

/* Event durations - base is conférence/présentation */
.event-conférence,
.event-présentation,
.event-discussion {
  min-height: 24px;
}

/* Performances are 0.5x */
.event-performance {
  min-height: 12px;
}

/* Ateliers and 5à7 are 2x */
.event-atelier,
.event-5à7 {
  min-height: 48px;
}

/* Repas */
.event-repas {
  min-height: 24px;
}

/* Track colors - apply to track-group */
.track-group.track-blue {
  background: rgba(74, 144, 226, 0.15);
}
.track-group.track-blue .track-bar {
  background: #4a90e2;
}

.track-group.track-pink {
  background: rgba(212, 160, 23, 0.2);
}
.track-group.track-pink .track-bar {
  background: #d4a017;
}

.track-group.track-green {
  background: rgba(92, 184, 92, 0.15);
}
.track-group.track-green .track-bar {
  background: #5cb85c;
}

.track-group.track-gray {
  background: rgba(140, 100, 100, 0.25);
}
.track-group.track-gray .track-bar {
  background: #997777;
}

.event-details {
  flex: 1;
}

.event-title {
  font-weight: bold;
  color: #ddd;
  margin-bottom: 0;
  font-size: 12px;
}

.event-person {
  color: #000;
  font-size: 10px;
}

/* Schedule Popover */
.schedule-popover {
  position: fixed;
  background: #fff;
  color: #333;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  max-width: min(500px, calc(100vw - 40px));
  max-height: min(300px, calc(100vh - 40px));
  overflow-y: auto;
  z-index: 10000;
  opacity: 0;
  transform: scale(0.9) translateY(-10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.schedule-popover.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.popover-info {
  display: flex;
  gap: 15px;
  margin-bottom: 12px;
  font-size: 0.9em;
}

.popover-price,
.popover-capacity {
  background: #f0f0f0;
  padding: 4px 8px;
  border-radius: 4px;
}

.popover-price strong,
.popover-capacity strong {
  color: #333;
}

.popover-header {
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ddd;
}

.popover-description {
  margin-bottom: 15px;
  line-height: 1.4;
}

.popover-register {
  display: inline-block;
  padding: 8px 16px;
  background: #4a90e2;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.2s;
}

.popover-register:hover {
  background: #357abd;
  color: #fff;
}

.popover-close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 20px;
  color: #999;
  line-height: 1;
}

.popover-close:hover {
  color: #333;
}

/* Responsive schedule */
@media (max-width: 600px) {
  .schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .schedule-times {
    display: none;
  }

  .schedule-day {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid #888;
    padding-top: 10px;
  }

  .schedule-day:first-child {
    border-top: none;
    padding-top: 0;
  }

  .track-group {
    grid-row: auto !important;
  }

  /* Show time in events on mobile */
  .event::before {
    content: attr(data-time);
    font-size: 10px;
    color: #888;
    margin-right: 6px;
    min-width: 35px;
  }
}