/*
 * Copyright (c) 2019. CDAD-Rambouillet
 */

/**
 * @file
 * Subtheme specific CSS.
 */
#navbar-top a:hover,
#navbar-main a:hover {
  text-decoration: underline;
}

#content {
  min-height: 20em;
}

.navbar-brand {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 2em;
  font-weight: bold;
}

#main-wrapper {
  padding-top: 4px;
}

.alert-wrapper {
  position: relative;
}

.block {
  border-radius: 8px;
}

.block-local-actions-block {
  margin-top: 8px;
}

.card.firebase-notification {
  margin-bottom: 8px;
}

.card.firebase-notification .card-body {
  padding: 0.5em;
  margin-bottom: 8px;
}

li.nav-link {
  display: inline-block;
}

.view-timeline {
  margin-top: 8px;
}

.views-row {
  width: 100%;
}

.field__label {
  font-weight: bold;
}

.animation-barre {
  margin: 20px;
  padding: 8px 8px 8px 12px;
  border-left-style: solid;
  border-left-width: 4px;
  border-radius: 0 8px 8px 0;
  -webkit-box-shadow: 1px 1px 8px 0 rgba(0, 0, 0, 0.33);
  -moz-box-shadow: 1px 1px 8px 0 rgba(0, 0, 0, 0.33);
  box-shadow: 1px 1px 8px 0 rgba(0, 0, 0, 0.33);
}

.animation-barre-header {
  display: flex;
  resize: horizontal;
}

.animation-barre h4 {
  display: inline-block;
  flex: 4;
}

.animation-barre-period {
  display: inline-block;
}

.animation-barre-place {
  display: inline-block;
  font-weight: bold;
  margin-right: 8px;

}

.animation-barre-period .field--name-period {
  display: inline-block;
  font-weight: bold;
  text-decoration: underline;
}

.animation-barre-footer {
  margin-top: 8px;
  display: inline-block;
  width: 100%;
  position: relative;
}

.animation-barre-footer h6{
  display: inline-block;
  float: left;
}

.animation-barre-footer-right{
  position: absolute;
  display: inline-block;
  right: 0;
  bottom: 0;
}

.animation-barre-footer-right > div {
  display: inline-block;
  float: right;
}

.animation-barre-footer .animation-barre-speaker .field--type-entity-reference {
  margin-bottom: 0;
}

.animation-barre-files-icon {
  display: flex;
  justify-content: flex-end;
  flex: 1;
}

.sponsor-button{
  background: transparent !important;
}


/* Masque le lien d'accessibilité "Aller au contenu principal" */
.visually-hidden-focusable {
  display: none !important;
}

@media screen and (max-width: 768px) {

  .animation-barre-header {
    display: block;
  }

  .animation-barre-place {
    display: block;
    margin-bottom: 8px;
  }

  .animation-barre-period {
    display: block;
    margin-bottom: 8px;
  }
}

.view-id-stand .view-content.row {
  display: block;
}

.site-footer:has(.form-footer) {
  padding: 0;
  height: 260px;
}

#main-wrapper{
  min-height: 450px;
}

/* Navbar & form-footer image inscription */


.navbar-replace-image {
  display: block;
  width: auto;
  height: 454px;
  background-repeat: no-repeat;
  background-position: top center;
  background-size: contain;
}

.navbar-replace-image-hide {
  display: none;
}

.form-footer {
  display: block;
  width: auto;
  height: 260px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.form-footer-hide {
  display: none;
}

/** Header Images **/

.navbar-replace-image-andays_2024 {
  background-image: url("/themes/cdadr/rame/images/header_andays_2024.png");
}

.navbar-replace-image-plan_famille {
  background-image: url("/themes/cdadr/rame/images/header_plan_famille2.png");
}

.navbar-replace-image-plan_famille_2025 {
  background-image: url("/themes/cdadr/rame/images/header_plan_famille_2025.png");
}

.navbar-replace-image-voeux_dga {
  background-image: url("/themes/cdadr/rame/images/header_dga_drh.png");
}

.navbar-replace-image-voeux_dga_delegue {
  background-image: url("/themes/cdadr/rame/images/header_dga_cocktail.jpg");
}

.navbar-replace-image-voeux_prise_darme {
  background-image: url("/themes/cdadr/rame/images/header_dga_prisedarme.jpg");
}

.navbar-replace-image-forum_metiers_numerique {
  background-image: url("/themes/cdadr/rame/images/header_forum_metiers_numerique.png");
}

/** Footer Images **/

.form-footer-andays_2024 {
  background-image: url("/themes/cdadr/rame/images/footer_andays_2024.png");
}

.form-footer-plan_famille {
  background-image: url("/themes/cdadr/rame/images/footer_plan_famille.png");
}

.form-footer-plan_famille_2025 {
  background-image: url("/themes/cdadr/rame/images/footer_dga_drh.png");
}

.form-footer-voeux_dga {
  background-image: url("/themes/cdadr/rame/images/footer_dga_drh.png");
}

.form-footer-voeux_dga_delegue {
  background-image: url("/themes/cdadr/rame/images/footer_dga_drh.png");
}

.form-footer-voeux_prise_darme {
  background-image: url("/themes/cdadr/rame/images/footer_dga_drh.png");
}

#edit-field-nombre-d-enfants-wrapper,
#edit-field-nombre-d-enfants-0-a-wrapper{
  display:flex;
}

#edit-nom-wrapper,
#edit-prenom-wrapper,
#edit-field-nom-conjoint-wrapper,
#edit-field-prenom-conjoint-wrapper,
#edit-field-nombre-d-enfants-wrapper,
#edit-field-nombre-d-enfants-0-a-wrapper{
  display: inline-block;
  width: 48%;
  vertical-align: top;
  margin-right: 2%;
}

#edit-prenom-wrapper,
#edit-field-prenom-conjoint-wrapper,
#edit-field-nombre-d-enfants-0-a-wrapper{
  margin-right: 0;
}
