html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

/* Page de garde — affiche au format d'origine + design aux extrémités */
.page-garde {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
}

.page-garde__frame {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
}

/* Bandeau haut */
.page-garde__extremite--top {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(2.5rem, 5vh, 4rem);
  background: linear-gradient(90deg, #0054a6 0%, #00aeef 45%, #00a99d 75%, #8cc63f 100%);
}

.page-garde__sis-mark {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.95);
}

/* Côtés : remplissent l'espace autour de l'affiche */
.page-garde__extremite--left,
.page-garde__extremite--right {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  align-self: stretch;
  overflow: hidden;
}

.page-garde__extremite--left {
  background:
    radial-gradient(circle at 80% 30%, rgba(0, 174, 239, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(140, 198, 63, 0.12) 0%, transparent 50%),
    linear-gradient(90deg, #ffffff 0%, #e8f4fc 70%, #dceef8 100%);
}

.page-garde__extremite--right {
  background:
    radial-gradient(circle at 20% 40%, rgba(0, 84, 166, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(0, 169, 157, 0.14) 0%, transparent 55%),
    linear-gradient(270deg, #ffffff 0%, #edf7e6 60%, #e2f3ea 100%);
}

.page-garde__ornament {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-repeat: no-repeat;
}

.page-garde__ornament--left {
  background-image:
    radial-gradient(circle, rgba(0, 84, 166, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.page-garde__ornament--right {
  background-image:
    radial-gradient(circle, rgba(0, 169, 157, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Affiche : format d'origine 800×533, jamais déformée */
.page-garde__media {
  flex: 0 0 auto;
  margin: 0;
  line-height: 0;
  box-shadow:
    0 0 0 1px rgba(0, 84, 166, 0.08),
    0 16px 48px rgba(0, 84, 166, 0.14);
}

.page-garde__media picture {
  display: block;
}

.page-garde__media img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100vw, 800px, calc((100dvh - 8rem) * 1.501));
  max-height: calc(100dvh - 8rem);
  object-fit: contain;
  object-position: center;
  vertical-align: middle;
  image-rendering: auto;
  image-rendering: high-quality;
}

/* Bandeau bas */
.page-garde__extremite--bottom {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.65rem 1rem;
  background: linear-gradient(90deg, #005a6b 0%, #007a8a 35%, #00a99d 65%, #5a9e2f 100%);
}

.page-garde__footer-tagline {
  font-size: clamp(0.7rem, 1.8vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.page-garde__footer-tagline-en {
  font-size: clamp(0.6rem, 1.4vw, 0.75rem);
  font-weight: 500;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
}

/* Mobile : côtés masqués, affiche pleine largeur */
@media (max-width: 899px) {
  .page-garde__extremite--left,
  .page-garde__extremite--right {
    display: none;
  }

  .page-garde__media {
    width: 100%;
    box-shadow: none;
  }

  .page-garde__media img {
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - 7rem);
  }
}

.page-garde__scroll {
  position: absolute;
  bottom: 4.5rem;
  left: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  color: #0054a6;
  box-shadow: 0 4px 16px rgba(0, 84, 166, 0.12);
  transform: translateX(-50%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: page-garde-bounce 2s ease-in-out infinite;
}

.page-garde__scroll:hover {
  transform: translateX(-50%) translateY(2px);
  box-shadow: 0 6px 20px rgba(0, 84, 166, 0.18);
}

@keyframes page-garde-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .page-garde__scroll {
    animation: none;
  }
}

.gradient-brand {
  background: linear-gradient(135deg, #0054A6 0%, #00AEEF 45%, #00A99D 75%, #8CC63F 100%);
}
.gradient-brand-h {
  background: linear-gradient(90deg, #0054A6 0%, #00AEEF 50%, #8CC63F 100%);
}
.text-gradient {
  background: linear-gradient(90deg, #0054A6 0%, #00A99D 55%, #8CC63F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section-title::after {
  content: '';
  display: block;
  width: 4rem;
  height: 4px;
  margin-top: 1rem;
  border-radius: 9999px;
  background: linear-gradient(90deg, #0054A6, #00AEEF, #8CC63F);
}
.section-title--center::after {
  margin-left: auto;
  margin-right: auto;
}

.heading-accent {
  position: relative;
  padding-left: 1.25rem;
}
.heading-accent::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 4px;
  border-radius: 9999px;
  background: linear-gradient(180deg, #0054A6 0%, #00A99D 50%, #8CC63F 100%);
}

.card-sis {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(0, 84, 166, 0.1);
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 84, 166, 0.08);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card-sis::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0054A6, #00AEEF, #8CC63F);
}
.card-sis:hover {
  box-shadow: 0 16px 48px rgba(0, 84, 166, 0.14);
  transform: translateY(-2px);
}

.mnt-card {
  border-radius: 1.25rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 84, 166, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mnt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 84, 166, 0.16);
}

.nav-link {
  position: relative;
  color: #4a6a85;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-link:hover,
.nav-link:focus-visible {
  color: #0054A6;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.25rem;
  width: 0;
  height: 2px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #00AEEF, #8CC63F);
  transition: width 0.25s ease, left 0.25s ease;
}
.nav-link:hover::after {
  left: 0.75rem;
  width: calc(100% - 1.5rem);
}

.wave-top {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: -1px;
}
.wave-bottom {
  display: block;
  width: 100%;
  height: 48px;
  margin-bottom: -1px;
}

.bg-pattern {
  background-color: #e8f4fc;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0, 174, 239, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(140, 198, 63, 0.1) 0%, transparent 50%);
}

.lang-tag {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lang-tag--en {
  background: linear-gradient(90deg, #0054A6, #00AEEF);
  color: #fff;
}
.lang-tag--fr {
  background: #fff;
  color: #4a6a85;
  border: 1px solid #c5dff0;
  font-weight: 700;
}

.block-en {
  border-radius: 1rem;
  border: 1px solid rgba(0, 84, 166, 0.18);
  background: linear-gradient(135deg, rgba(232, 244, 252, 0.98) 0%, rgba(237, 247, 230, 0.75) 100%);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 84, 166, 0.08);
}
.block-en p {
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.7;
  color: #003366;
}

.block-fr {
  padding-top: 0.25rem;
}
.block-fr p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #4a6a85;
}

.title-en {
  display: block;
  font-weight: 800;
  color: #0054A6;
  line-height: 1.2;
}
.title-fr {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85em;
  font-weight: 600;
  color: #4a6a85;
}

.nav-link span.nav-fr {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: #7a9bb5;
  line-height: 1.2;
}

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease,
    box-shadow 0.35s ease,
    background-color 0.35s ease;
}
#site-header.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
#site-header.is-scrolled {
  box-shadow: 0 8px 32px rgba(0, 84, 166, 0.14);
  background-color: rgba(255, 255, 255, 0.98);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition:
      opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal.reveal--visible {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-scale {
    opacity: 0;
    transform: scale(0.94);
    transition:
      opacity 0.55s ease,
      transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal-scale.reveal--visible {
    opacity: 1;
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
