/*
Theme Name: Maison Gioia Theme
Theme URI: https://exemple.org/
Description: Thème enfant basé sur Twenty Seventeen
Author: Mickael Bequet
Author URI: https://exemple.org/
Template: twentyseventeen
Version: 1.0
*/

/* ======= Textes ======= */
p {
  color: #2D3133;
}

/* ======= Titres ======= */
h1.entry-title,
h2.entry-title,
h2.wp-block-heading,
h1.page-title {
  color: #497686 !important;
}

/* ======= Liens ======= */
a.wp-block-latest-posts__post-title,
.entry-title a {
  color: #497686 !important;
}

.entry-meta a,
.entry-date,
.url,
.menu-principal-container a,
time.wp-block-latest-posts__post-date {
  color: #DB882E !important;
}

/* ======= Bannière ======= */
p.site-title {
  text-align: center;
}

p.site-description {
  text-align: center;
  font-weight: bold;
}

.custom-header {
  margin-bottom: 72px;
}

.site-branding {
  text-align: center;
  top: 50%;
  margin: 0 !important;
}

.wp-block-search__inside-wrapper {
  flex-wrap: wrap !important;

  .wp-block-search__button {
    width: 100% !important;
    padding: 0.75em 1em !important;
    margin: 0 !important;
    margin-top: 1rem !important;
  }

}

.custom-header-media {
  height: calc(50vh - 32px) !important;
}

.has-header-image:not(.twentyseventeen-front-page):not(.home) .custom-header-media,
.has-header-video:not(.twentyseventeen-front-page):not(.home) .custom-header-media {
  bottom: 0 !important;
  height: auto !important;
  left: 0 !important;
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
}

.has-header-image .custom-header-media img,
.has-header-video .custom-header-media video,
.has-header-video .custom-header-media iframe {
  position: absolute !important;
  height: 100% !important;
  width: 100% !important;
  object-fit: cover !important;
}

/* ======= Footer général ======= */
footer#colophon {
  background-color: #5C4F41;
}

footer#colophon .wp-block-heading,
footer#colophon a,
footer#colophon p {
  color: #DB882E !important;
}

/* ======= Footer (widgets & liens) ======= */
footer .widget ul li {
  border: none !important;
}

footer .widget ul li a {
  text-decoration: none !important;
  box-shadow: none !important;
  padding-bottom: 0.2rem !important;
  border-bottom: 1px solid #DB882E;
}

footer .widget ul li a .wp-block-social-links {
  border-bottom: none !important;
}

footer .widget ul li a svg {
  fill: white !important;
}

/* ======= Footer (site info) ======= */
.site-info {
  width: 100%;
  display: flex;
  justify-content: center;
}

.site-info p {
  font-weight: bold;
  color: #DB882E;
}

/* ======= Bouton de recherche Elementor ======= */
button {
  background-color: #2D3133;
  color: #DB882E;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 5px;

  .wp-block-search__button {
    border: 1px solid #ccc;
    padding: .375em .625em;
  }

  .wp-element-button {
	  margin-left: 10px;
    word-break: normal;
  }
}

/* ======= Bouton télécharger ======= */
.pdf-download-button {
    margin: 20px 0;
    text-align: center;
}
.pdf-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #2D3133;
    color: #DB882E !important;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}
.pdf-button:hover {
    background-color: #497686;
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.7);
}

/* ======= Breakpoints ======= */
@media (max-width: 768px) {
  
  .custom-header {
    height: 22vh !important;
  }

  .custom-header-media {
  &::before {
    display: none;
  }
}

  .site-branding {
    align-content: center;
    top: 25%;
  }

  .navigation-top {
    .wrap {
      top: -4px;
    }
  }

  nav#site-navigation {
    button.menu-toggle {
      width: 100%;
      border-radius: 0%;
    }
  }
  footer#colophon {

    h2.wp-block-heading {
      margin: 0;
      padding-top: 1rem;
    }

    aside.widget-area {
      padding: 0;

      section.widget {
        padding: 0;
      }
    }
  }

  :where(.wp-block-columns) {
    margin-bottom: 0;
  }

  form.wp-block-search__button-outside {
    .wp-block-search__inside-wrapper {
      width: 100% !important;
      flex-wrap: wrap !important;

      .wp-block-search__input {
        width: 100%;
      }
      .wp-block-search__button.wp-element-button {
        margin: 0;
        padding: 1rem;
        margin-top: 1rem !important;
        width: 100% !important;
      }
    }
  }



  .wp-block-columns.is-layout-flex.wp-container-core-columns-is-layout-9d6595d7.wp-block-columns-is-layout-flex{
    flex-wrap: wrap;

      div {
        width: 100% !important;
      }
  }


  .site-info{
    display: flex;
    justify-items: center;
    margin-top: 1.5rem;

    p{
      margin: 0;
    }
  }
}

