:root {
  --color-primary: #c52645;
  --color-bg-grey: #ededed;
  --color-bg-light: #f7f7f7;
  --color-dark: #002749;
  --color-white: #fff;
  --color-black: #000;
  --font-title: bold;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

body {
  background: var(--color-white);
  color: var(--color-black);
}

header h2 {
  width: 80%;
  margin: 50px auto;
  font-weight: var(--font-title);
  font-size: 2rem;
}

.container_wrap h2 {
  color: var(--color-primary);
  font-weight: var(--font-title);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 15px;
  margin-bottom: 30px;
}

.library,
.seminar_about,
.seminars,
.other_member_wrap,
.activity_one,
.member {
  background: var(--color-bg-grey);
}

.library, .seminars, .seminar_about {
  padding: 50px 0;
}

.seminar_about {
  padding: 80px 0;
}

.title_sem h3,
.seminar_about h5 {
  font-weight: var(--font-title);
  font-size: 1.1rem;
}

.seminar_about h5 {
  margin: 0;
}

.current-menu-item a,
.seminar_about a,
.events a,
.library a {
  color: var(--color-primary);
  font-weight: var(--font-title);
  text-decoration: none;
}

.nav_seminars a {
  background: var(--color-primary);
  padding: 10px 30px;
  margin-right: 30px;
  color: var(--color-white);
  font-weight: var(--font-title);
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.2s;
}

.nav_seminars a:hover,
.btn-primary:hover,
.resources_btn:hover {
  background: #a71d38;
  color: var(--color-white);
}

.img_seminars {
  height: 400px;
  background: url('https://smartlawhub.eu/wp-content/uploads/2024/01/Campus_Ecole_polytechnique_de_palaiseau-768x512-1.jpg') no-repeat center center;
  background-size: cover;
}

.resources_btn {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 10px 20px;
  margin-right: 40px;
  text-transform: uppercase;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s;
}

.references_link {
  color: var(--color-black);
  text-decoration: none;
  font-size: 1.8rem;
  margin-top: 20px;
}

.resources h2 {
  margin-top: 30px;
}

.resources_single h1 {
  margin-bottom: 30px;
}

.resources h3 {
  font-size: 1rem;
}

.lang-item-16 a {
  margin-left: 30px;
}

/* Member Section */
.member h2 {
  margin: 15px 0 20px 0;
  font-size: 1rem;
  color: var(--color-primary);
  text-transform: uppercase;
}

.member h3 {
  margin-top: 20px;
  font-size: 1.5rem;
  text-transform: uppercase;
}

.btn-primary, .plus_people {
  border-radius: 3px;
  background: var(--color-bg-grey);
  border: 1px solid var(--color-black);
  color: var(--color-black);
  margin-top: 20px;
  width: 100%;
  display: block;
  transition: background 0.2s, color 0.2s;
}

/* Navbar */
.navbar {
  background: transparent;
  padding: 20px 0;
}

.navbar .collapse {
  background: transparent;
}

.navbar-toggler {
  border: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(197,38,69,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
  color: var(--color-primary);
}

/* Carousel */
.carousel {
  margin-top: -60px;
}

.carousel img {
  height: 500px;
  width: 100%;
  object-fit: cover;
  border: none;
}

/* Flèches du carousel */
.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 100%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15%;
  padding: 0;
  color: var(--color-white);
  background: none;
  border: 0;
  opacity: 1;
  transition: opacity 0.15s ease;
}
.carousel-control-prev { left: 35%; }
.carousel-control-next { left: 50%; }
.carousel-control-next-icon,
.carousel-control-prev-icon {
  background-size: 100% 100%;
}

/* Images de membres, projets */
.thumb_member img,
.seminar_about img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 30px;
}

.seminar_about img {
  width: 200px;
  height: 200px;
  margin: 20px auto;
  display: block;
}

.event_home img {
  transition: transform 0.2s;
}
.event_home img:hover {
  transform: scale(1.05);
  overflow: hidden;
}

/* Card, Bloc, Activity */
.card,
.collapse {
  border: none;
  padding: 0;
  background: #efefef;
  margin-top: 20px;
}

.activity_one, .member {
  background: var(--color-bg-light);
  padding: 40px;
  border: 1px solid var(--color-bg-grey);
}

.activity img {
  height: auto;
  margin-bottom: 10px;
}

.activity h1 {
  font-weight: 700;
  margin-bottom: 30px;
  font-size: 1.25rem;
  min-height: 70px;
  line-height: 1.2;
}

.back-to-top {
  width: 50px;
  height: 50px;
  display: flex;
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 10;
  border-radius: 50%;
  background-color: hsla(230, 13%, 9%, 0.9);
  visibility: hidden;
  opacity: 0;
  padding: 15px;
  transition: opacity 0.2s, background-color 0.2s;
}

.back-to-top:focus,
.back-to-top--is-visible {
  visibility: visible;
  opacity: 1;
}

.back-to-top:hover {
  background-color: hsl(230, 13%, 9%);
}

/* Responsive */
@media (max-width: 992px) {
  header h2 { font-size: 1.4rem; }
  .page-id-2 header, .page-id-202 header {
    margin-top: -320px;
    padding-top: 400px;
  }
  .blocks_project {
    height: 200px;
    width: 100%;
    padding: 50px 30px;
  }
}

@media (max-width: 768px) {
  header h1 {
    width: 100%;
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 60px;
  }
  header h2 { font-size: 1rem; }
  .thumb_member img, .seminar_about img { width: 100px; height: 100px; }
  .activity h1 {
    font-size: 1rem;
    min-height: 0;
    margin-bottom: 0;
  }
  .blocks_project {
    height: 150px;
    width: 100%;
    padding: 30px 10px;
  }
  .navbar img { width: 30px; margin-right: 10px; }
  .contact_right { padding: 0 20px; }
}

/* Focus et accessibilité */
a, button, .resources_btn, .nav_seminars a, .btn-primary, .back-to-top {
  outline: 2px solid transparent;
  transition: outline 0.2s;
}
a:focus, button:focus, .resources_btn:focus, .nav_seminars a:focus, .btn-primary:focus, .back-to-top:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Utilitaires */
.text-uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.text-bold { font-weight: bold; }

