/*!
 * copyright: 2020 LOGILAB S.A. (Paris, FRANCE), license is LGPL.
 * contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
 *
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation, either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Lesser General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>..
 */

 #header-background {
  width: 100%;
  height: 75px;
  background-color: white;
  position: fixed;
  top: 0px;
  z-index: 0;
  border-bottom: solid 1px lightgrey;
  box-shadow: 0 0 3px 0px lightgrey;
 }

 #homepageHeader {
  border-bottom: none;
  box-shadow: none;
 }

 #homepage h1 {
  margin: 2rem 1rem 0 1rem;
  padding: 1rem 20%;
  background-color: white;
 }

#homepage h2 {
  border-top: black solid 10px;
  margin-top: 0;
  border-bottom: black solid 5px;
  font-size: 35px;
  word-wrap: break-word;
  text-transform: uppercase;
}

#homepage div.h2-title {
  width: 20%;
  padding-left: 2rem;
  padding-right: 1rem;
}

#index-link-group {
  display: flex;
  flex-wrap: wrap;
  width: 60%;
  margin: auto;
}

.index-link {
   flex-grow: 1;
   text-align: center;
   font-size: 18px;
   min-width: 120px;
   margin: 1rem 0;
}

a {
   color: black;
}

#index-author a .homepage-searchbar-etype {
   color: var(--color-person);
}

#index-work a .homepage-searchbar-etype {
   color: var(--color-work);
}

#index-rameau a .homepage-searchbar-etype {
   color: var(--color-rameau);
}

#index-geo a .homepage-searchbar-etype {
   color: var(--color-geo);
}

#index-event a .homepage-searchbar-etype {
   color: var(--color-event);
}

#index-performance a .homepage-searchbar-etype {
   color: var(--color-performance);
}

#index-periodic a .homepage-searchbar-etype {
   color: var(--color-periodic);
}

.card-group {
  display: flex;
  justify-content: left;
  flex-wrap: wrap;
  width: 80%;
  padding-right: 2rem;
  padding-left: 0.25rem;
  gap: 4%;
}

a.homepage-card {
  display: block;
  height: fit-content;
  font-size: 18px;
  border-bottom: black solid 5px;
}

@media (min-width: 992px) {
  a.homepage-card {
    width: 22%;
  }
}

a.homepage-card img {
  width: 100%;
  height: 50%;
  object-fit: cover;
}

@media (min-width: 1350px) {
  #searchform {
    position: sticky;
    top: 0px;
  }
  #homepageHeader {
    background-color: transparent;
    pointer-events: none;
  }
  .liens-transverses {
    pointer-events: all;
  }
  .logos {
    pointer-events: all;
  }
}

#homepage #searchform {
  width: auto;
  padding: 17px 20%;
  margin: 0 1rem;
  background-color: white;
}

#index-access {
  margin-bottom: 3rem;
}

#homepage section {
  display: flex;
  margin-left: 1rem;
  margin-right: 1rem;
  padding-left: 0;
  padding-right: 0;
}
