/* CSS du template lycee_paul_langevin */
:root {
  --light-green: #afc40c;
  --dark-green: #477544;
  --orange-color: #f39224;
  --saumon-color: rgba(243, 146, 36, 0.2);
  --dark-gray: #1e1e1e;
  --light-gray: #f6f6f6;
  --title-gray: #161616;
}

html,
body {
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.header-nav .mod-menu__toggle-sub {
  display: none !important;
}

main {
  flex: 1 0 auto;
}

a:hover {
  color: var(--orange-color);
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--title-gray);
}

header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background-color: #fff;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
}

/* Ne cible que la ligne logo + coordonnées, pas .btn-nav-mobile (bouton
   hamburger) qui doit rester visible et cliquable en permanence sur mobile */
header .logo-coords > .d-flex {
  max-height: 500px;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    opacity 0.3s ease;
}

header .line {
  transition:
    margin-top 0.3s ease,
    border-top-width 0.3s ease;
}

header.is-condensed .logo-coords > .d-flex {
  max-height: 0;
  opacity: 0;
}

header.is-condensed .line {
  margin-top: 0;
  border-top-width: 0;
}

header.is-condensed .header-nav .nav li a {
  padding-top: 12px;
  padding-bottom: 12px;
}

header p {
  margin: 0 !important;
}

header .line {
  border-top: 1px solid var(--light-green);
  margin-top: 5px;
}

header a {
  text-decoration: none !important;
  color: #000;
}

.slider {
  background-color: var(--light-gray);
}

.btn-back {
  background: var(--light-green);
  border-bottom: 3px solid var(--dark-green);
  padding: 5px 10px;
  color: #fff;
  font-size: 13px;
  font-style: italic;
  margin-bottom: 2rem;
}

.btn-back:hover {
  background: var(--saumon-color);
  border-bottom: 3px solid var(--orange-color);
  color: var(--orange-color);
}

.pagination .page-item .page-link {
  color: var(--title-gray);
  border: none;
  background: none;
}

.pagination .page-item.active .page-link {
  background: var(--orange-color);
  border: none;
  color: #fff;
}

.carousel-langevin .carousel-controls {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.carousel-langevin .carousel-indicators {
  position: relative;
  margin: 0;
}

.carousel-langevin .carousel-indicators button {
  background-color: var(--dark-gray);
}

.carousel-langevin .carousel-indicators button.active {
  background-color: var(--orange-color);
}

.carousel-langevin
  .carousel-controls
  .carousel-control-prev
  .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='000'><path d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/></svg>");
}

.carousel-langevin
  .carousel-controls
  .carousel-control-next
  .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='000'><path d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/></svg>");
}

.carousel-langevin .carousel-controls .carousel-control-prev-icon,
.carousel-langevin .carousel-controls .carousel-control-next-icon {
  width: 1.2rem;
  height: 1.2rem;
}

.carousel-langevin .carousel-controls .carousel-control-prev,
.carousel-langevin .carousel-controls .carousel-control-next {
  position: relative;
  color: var(--title-gray);
  opacity: 1;
  font-size: 12px;
  width: initial;
}

.carousel-langevin:not(#carouselLogos) img {
  min-height: 400px;
  width: 100%;
  object-fit: cover;
  -o-object-fit: cover;
  border-radius: 10px;
}

#carouselLogos img {
  max-height: 150px;
  width: auto;
}

.bg-saumon {
  background-color: var(--saumon-color);
}

.cards .card {
  max-width: 350px;
  margin: 0 auto;
}

.cards .card,
.card-logos {
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--light-gray);
  border-bottom: 6px solid var(--light-green);
  box-shadow: 5px 10px 10px rgba(0, 0, 0, 0.2);
}

.cards .card-header {
  background: none;
  border: none;
  padding: 0;
}

.cards .card-header img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  -o-object-fit: contain;
  background-color: #fff;
}

.cards .card-body {
  padding: 2rem;
}

.cards .card-body h3 {
  font-size: 20px;
  margin-bottom: 1rem;
}

.cards .card-footer {
  border: none;
  background: none;
  padding-bottom: 1rem;
}

.btn-green {
  background: var(--light-green);
  border-bottom: 3px solid var(--dark-green);
  padding: 5px 10px;
  color: #fff;
  font-size: 13px;
  font-style: italic;
}

.btn-green:hover {
  background: var(--saumon-color);
  border-bottom: 3px solid var(--orange-color);
  color: var(--orange-color);
}

.btn-orange {
  background: var(--orange-color);
  border-bottom: 3px solid var(--dark-green);
  padding: 5px 10px;
  color: #fff;
  font-size: 13px;
  font-style: italic;
}

.btn-orange:hover {
  background: var(--saumon-color);
  border-bottom: 3px solid var(--light-green);
  color: var(--light-green);
}

.card-video,
.card-logos {
  background: var(--light-gray);
  border-bottom: 10px solid var(--orange-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 3rem;
  justify-content: center;
  gap: 8rem;
  text-decoration: none !important;
  color: #000 !important;
  position: relative;
}

.card-video img {
  height: 150px;
  width: auto;
}

.card-video .card-text {
  display: flex;
  align-items: center;
}

.card-video .card-text::before {
  content: "";
  position: relative;
  display: block;
  height: 200px;
  width: 2px;
  background-color: var(--dark-green);
  margin-right: 8rem;
}

.card-video .card-text--inner {
  width: 100%;
}

.card-video .icon-arrow {
  position: absolute;
  right: 30px;
  bottom: 30px;
}

.card-video .icon-arrow i {
  color: var(--orange-color);
  font-size: 25px;
}

.card-logos {
  box-shadow: none;
}

.card-logos img {
  height: 100%;
  object-fit: contain;
  -o-object-fit: contain;
  background-color: #fff;
}

.gap-cards {
  margin: 4rem 0;
}

.default-article h4 {
  color: #6c757d !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
}

.default-article .links-buttons::before,
.default-article .links-buttons::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.2);
  margin: 2rem auto;
}

.gap-cards .page-header::after {
  content: "";
  display: block;
  width: 150px;
  height: 2px;
  background-color: rgba(0, 0, 0, 0.2);
  margin-top: 2rem;
}

.article-header {
  background-color: var(--light-gray);
  padding: 3rem;
  margin-bottom: 3rem;
}

.article-title {
  font-size: 1.6em;
  margin-bottom: 30px;
}

.gallery-main {
  max-height: 800px;
  overflow: hidden;
}

.gallery-main img {
  height: 800px;
  width: 100%;
  object-fit: cover;
}

.gallery-thumbs img {
  height: 90px;
  width: 100%;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.2s ease;
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
  opacity: 1;
  border: 2px solid #f39224;
}

.pdf-list ul,
.urls ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.trombinoscope .page-header {
  margin-top: 4rem;
}

.trombinoscope .page-header::after {
  content: "";
  display: block;
  width: 150px;
  height: 2px;
  background-color: rgba(0, 0, 0, 0.2);
  margin-top: 2rem;
}

.member-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 0.75rem;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}

.member-card:hover {
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.member-avatar {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--orange-color);
}

.member-avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--orange-color);
  background: var(--saumon-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--orange-color);
}

.member-name {
  color: var(--orange-color);
  font-weight: 700;
  font-size: 0.95rem;
}

.member-role {
  font-size: 0.82rem;
  color: #6c757d;
}

.member-contact a {
  font-size: 0.8rem;
  color: var(--orange-color);
  text-decoration: none;
  word-break: break-all;
}

.member-contact a:hover {
  text-decoration: underline;
}

.trombi-section-title {
  border-left: 4px solid var(--orange-color);
  padding-left: 0.75rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.trombi-accordion .accordion-button {
  font-weight: 600;
  background: var(--saumon-color);
  color: #333;
}

.trombi-accordion .accordion-button:not(.collapsed) {
  background: var(--orange-color);
  color: #fff;
  box-shadow: none;
}

.trombi-accordion .accordion-button:not(.collapsed)::after {
  filter: brightness(10);
}

.trombi-accordion .accordion-item {
  border: 1px solid #e9ecef;
  border-radius: 0.5rem !important;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.trombi-accordion .accordion-body {
  background: #fafafa;
}

footer {
  background: var(--light-gray);
  padding: 20px;
  flex-shrink: 0;
  border-top: 10px solid var(--orange-color);
  border-radius: 10px 10px 0 0;
}

footer h3 {
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

footer a {
  text-decoration: none !important;
  color: #000;
  list-style-type: none;
}

.footer-copyright {
  display: flex;
  justify-content: center;
  color: #000;
  text-align: center;
  margin-top: 2rem;
}

@media screen and (max-width: 767px) {
  .card-video {
    flex-direction: column;
    padding: 2rem;
    gap: 2rem;
  }

  .card-video .card-text::before {
    height: 2px;
    width: 200px;
    margin: 0 auto;
    margin-bottom: 2rem;
  }

  .card-video .card-text {
    flex-direction: column;
  }

  .card-text--inner {
    padding: 10px;
  }

  .gallery-main {
    max-height: 300px;
  }

  .gallery-main img {
    height: 300px;
  }
}
