/*
Theme Name: Recovia Theme Child
Theme URI: https://micro-pilote.com/recovia/
Description: Thème enfant de Recovia Theme. Il conserve le thème parent et permet de personnaliser Recovia sans modifier les fichiers du parent.
Author: Micro-Pilote
Author URI: https://micro-pilote.com
Template: recovia-theme
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: recovia-theme-child
*/


/* =========================================================
   RECOVIA — IMAGES MISES EN AVANT DES PAGES
   Affichage intégral sans recadrage
========================================================= */

.page-featured-image {
  width: min(100% - 40px, 1480px);
  max-width: 1480px;
  margin: 0 auto 36px;
  padding: 0;
  overflow: visible;
}

.page-featured-image img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
}


/* Image affichée avant le titre */

.page-featured-image-banner {
  width: min(100% - 40px, 1480px);
  max-width: 1480px;
  margin: 0 auto 36px;
}

.page-featured-image-banner img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}


/* Image éventuellement affichée sous le titre */

.page-featured-image-below-title {
  margin: -10px auto 34px;
}

.page-featured-image-below-title img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}


/* =========================================================
   RECOVIA — GRANDE IMAGE DE L'ACCUEIL
   Accueil-1.png affichée intégralement
========================================================= */

.home-hero-image {
  width: 100%;
  padding: 28px 0 0;
  background: #fbfdfc;
  overflow: visible;
}

.home-hero-image > .container {
  width: min(100% - 40px, 1480px);
  max-width: 1480px;
  margin-inline: auto;
}

.home-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(17, 35, 31, 0.09);
}

.home-hero-image + .hero {
  padding-top: 56px;
}


/* =========================================================
   TABLETTE
========================================================= */

@media (max-width: 920px) {

  .page-featured-image,
  .page-featured-image-banner {
    width: calc(100% - 28px);
  }

  .home-hero-image > .container {
    width: calc(100% - 28px);
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

  .page-featured-image,
  .page-featured-image-banner {
    width: calc(100% - 20px);
    margin-bottom: 28px;
  }

  .page-featured-image img,
  .page-featured-image-banner img,
  .page-featured-image-below-title img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  .home-hero-image {
    padding-top: 18px;
  }

  .home-hero-image > .container {
    width: calc(100% - 20px);
  }

  .home-hero-image img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }
}