/* Finitions communes : icônes stables, navigation lisible et confort mobile. */
@font-face {
  font-family: "CoGEI Material Symbols";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("fonts/material-symbols-outlined.woff2") format("woff2");
}

img {
  image-orientation: from-image;
}

.material-symbols-outlined {
  font-family: "CoGEI Material Symbols" !important;
  font-weight: normal !important;
  font-style: normal !important;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  width: 1em;
  overflow: hidden;
  flex: 0 0 auto;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

body {
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

section[id], form[id], div[id] {
  scroll-margin-top: 5.5rem;
}

#menu-toggle {
  min-width: 2.75rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  transition: background-color 180ms ease, transform 180ms ease;
}

#menu-toggle:hover,
#menu-toggle:focus-visible {
  background: rgb(133 0 27 / 8%);
  outline: none;
}

#menu-toggle:active {
  transform: scale(.96);
}

#mobile-menu a {
  border-radius: .75rem;
  padding: .7rem .9rem;
  transition: color 180ms ease, background-color 180ms ease;
}

#mobile-menu a:hover,
#mobile-menu a:focus-visible {
  color: #85001b;
  background: rgb(133 0 27 / 7%);
  outline: none;
}

input,
textarea,
select,
button,
a {
  -webkit-tap-highlight-color: transparent;
}

input,
textarea,
select {
  font-size: 16px;
}

.home-latest-publications {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  background:
    radial-gradient(circle at 10% 15%, rgb(133 0 27 / 8%), transparent 28rem),
    #fffaf9;
  border-bottom: 1px solid rgb(121 116 126 / 18%);
}

.home-latest-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
  min-width: 0;
}

.home-latest-heading > div {
  min-width: 0;
}

.home-latest-heading h2,
.home-latest-heading p {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.home-latest-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .75rem;
  color: #85001b;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home-latest-eyebrow .material-symbols-outlined {
  font-size: 1.15rem;
}

.home-latest-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  flex: 0 0 auto;
  color: #85001b;
  font-weight: 800;
  white-space: nowrap;
}

.home-latest-link:hover .material-symbols-outlined {
  transform: translateX(.2rem);
}

.home-latest-gallery {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-color: #85001b rgb(133 0 27 / 10%);
  scrollbar-width: thin;
  padding: .25rem .15rem 1.25rem;
}

.home-latest-gallery::-webkit-scrollbar {
  height: .5rem;
}

.home-latest-gallery::-webkit-scrollbar-track {
  background: rgb(133 0 27 / 8%);
  border-radius: 9999px;
}

.home-latest-gallery::-webkit-scrollbar-thumb {
  background: #85001b;
  border-radius: 9999px;
}

.home-latest-card {
  position: relative;
  flex: 0 0 clamp(17rem, 28vw, 22rem);
  min-width: 0;
  height: clamp(19rem, 33vw, 25rem);
  overflow: hidden;
  border-radius: 1.25rem;
  background: #e9e3e1;
  box-shadow: 0 12px 32px rgb(48 32 34 / 12%);
  scroll-snap-align: start;
  isolation: isolate;
}

.home-latest-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-orientation: from-image;
  transition: transform 500ms ease;
}

.home-latest-card:hover img {
  transform: scale(1.04);
}

.home-latest-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 3.5rem 1.25rem 1.25rem;
  color: white;
  background: linear-gradient(to top, rgb(18 10 12 / 88%), transparent);
}

.home-latest-title {
  display: block;
  font-weight: 800;
  line-height: 1.25;
}

.home-latest-category {
  display: block;
  margin-top: .35rem;
  color: rgb(255 255 255 / 78%);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.home-latest-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: .45rem .8rem;
  border-radius: 9999px;
  color: white;
  background: #85001b;
  box-shadow: 0 6px 18px rgb(133 0 27 / 30%);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .home-latest-publications {
    padding: 2.75rem 0;
  }

  .home-latest-publications > div {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .home-latest-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .home-latest-heading h2 {
    font-size: clamp(1.55rem, 7vw, 1.85rem) !important;
    line-height: 1.12;
  }

  .home-latest-heading p {
    font-size: .95rem;
    line-height: 1.55;
  }

  .home-latest-link {
    width: 100%;
    justify-content: flex-start;
    white-space: normal;
  }

  .home-latest-gallery {
    gap: .75rem;
    margin: 0;
    padding: .2rem 0 1rem;
    scroll-padding-inline: 0;
  }

  .home-latest-card {
    flex: 0 0 88%;
    width: 88%;
    max-width: 22rem;
    height: clamp(19rem, 112vw, 23rem);
    border-radius: 1rem;
  }

  .home-latest-overlay {
    padding: 3rem 1rem 1rem;
  }

  .home-latest-title {
    font-size: 1rem;
  }

  .home-latest-category {
    font-size: .7rem;
  }

  header.fixed > div:first-child,
  nav.fixed > div:first-child {
    gap: .5rem;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  header.fixed > div:first-child > div:first-child,
  nav.fixed > div:first-child > div:first-child {
    min-width: 0;
    gap: .35rem;
  }

  #menu-toggle {
    display: inline-flex;
    margin-right: 0 !important;
  }

  #menu-toggle + img {
    width: auto;
    height: 2.35rem;
    max-width: min(8rem, 34vw);
    object-fit: contain;
  }

  header.fixed > div:first-child > div:last-child,
  nav.fixed > div:first-child > div:last-child {
    flex: 0 0 auto;
    gap: .5rem;
  }

  header.fixed > div:first-child > div:last-child a,
  nav.fixed > div:first-child > div:last-child a {
    padding: .65rem 1rem !important;
    font-size: .875rem !important;
    line-height: 1.1;
  }

  header.relative {
    padding-top: 7.25rem !important;
  }

  header.relative h1 {
    line-height: 1.08;
  }

  header.relative p {
    line-height: 1.65;
  }

  header.relative .space-y-4 > * + * {
    margin-top: 1rem;
  }

  header.relative .space-y-4 .material-symbols-outlined,
  footer .material-symbols-outlined,
  aside .material-symbols-outlined {
    width: 1.5rem;
  }

  form.p-8,
  article .p-8 {
    padding: 1.25rem !important;
  }

  footer {
    padding-top: 3.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  footer > .grid {
    gap: 2.25rem !important;
  }

  footer h4 {
    margin-bottom: 1rem !important;
  }

  footer .mt-16 {
    margin-top: 2.5rem !important;
  }
}

@media (max-width: 380px) {
  .home-latest-card {
    flex-basis: 92%;
    width: 92%;
    height: 19rem;
  }

  .home-latest-badge {
    top: .75rem;
    left: .75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
