/*
Theme Name: generatepress-child
Description: Thème enfant créé par Éole Digital
Author: Éole Digital
Author URI:
Template: generatepress
Version: 0.1.0
*/

/* =========================
   FONTS
   ========================= */

/* font headings */
/* poppins-regular - latin */
@font-face {
  font-display: swap;
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  src: url("/wp-content/themes/generatepress-child/fonts/poppins-v22-latin-regular.woff2")
    format("woff2");
}

/* poppins-italic - latin */
@font-face {
  font-display: swap;
  font-family: "Poppins";
  font-style: italic;
  font-weight: 400;
  src: url("/wp-content/themes/generatepress-child/fonts/poppins-v22-latin-italic.woff2")
    format("woff2");
}

/* poppins-500 - latin */
@font-face {
  font-display: swap;
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  src: url("/wp-content/themes/generatepress-child/fonts/poppins-v22-latin-500.woff2")
    format("woff2");
}

/* poppins-500italic - latin */
@font-face {
  font-display: swap;
  font-family: "Poppins";
  font-style: italic;
  font-weight: 500;
  src: url("/wp-content/themes/generatepress-child/fonts/poppins-v22-latin-500italic.woff2")
    format("woff2");
}

/* poppins-600 - latin */
@font-face {
  font-display: swap;
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  src: url("/wp-content/themes/generatepress-child/fonts/poppins-v22-latin-600.woff2")
    format("woff2");
}

/* poppins-600italic - latin */
@font-face {
  font-display: swap;
  font-family: "Poppins";
  font-style: italic;
  font-weight: 600;
  src: url("/wp-content/themes/generatepress-child/fonts/poppins-v22-latin-600italic.woff2")
    format("woff2");
}

/* poppins-700 - latin */
@font-face {
  font-display: swap;
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  src: url("/wp-content/themes/generatepress-child/fonts/poppins-v22-latin-700.woff2")
    format("woff2");
}

/* poppins-700italic - latin */
@font-face {
  font-display: swap;
  font-family: "Poppins";
  font-style: italic;
  font-weight: 700;
  src: url("/wp-content/themes/generatepress-child/fonts/poppins-v22-latin-700italic.woff2")
    format("woff2");
}

/* font corps de texte LATO */
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 300;
  src: url("/wp-content/themes/generatepress-child/fonts/lato-v23-latin-300.woff2")
    format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  src: url("/wp-content/themes/generatepress-child/fonts/lato-v23-latin-regular.woff2")
    format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  src: url("/wp-content/themes/generatepress-child/fonts/lato-v23-latin-700.woff2")
    format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  font-style: italic;
  font-weight: 400;
  src: url("/wp-content/themes/generatepress-child/fonts/lato-v23-latin-italic.woff2")
    format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  font-style: italic;
  font-weight: 300;
  src: url("/wp-content/themes/generatepress-child/fonts/lato-v23-latin-300italic.woff2")
    format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  font-style: italic;
  font-weight: 700;
  src: url("/wp-content/themes/generatepress-child/fonts/lato-v23-latin-700italic.woff2")
    format("woff2");
  font-display: swap;
}

/* Fin Fonts */

/* =========================
   STYLES GÉNÉRAUX
   ========================= */

/* === Ombres Générales === */
.shadow {
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.3);
}

.btn-shadow {
  box-shadow: 3px 3px 7px 0 rgba(0, 0, 0, 0.2);
}

/* h2 CAT */
.h2-bkcat {
  font-size: 1.1rem;
  color: #2a2b2e;
  margin-top: 0.7em;
  margin-bottom: 5px;
}

/* Ombres pour le header et le menu sticky */
.site-header,
.sticky-enabled .main-navigation.is_stuck {
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.3);
}

/* =========================
   NAVIGATION / TOP BAR
   ========================= */

/* NAVBAR padding */
.main-navigation.has-branding .inside-navigation.grid-container {
  padding: 3px 20px;
}

/* Ajustements mobile */
@media (max-width: 768px) {
  .main-navigation.has-branding .inside-navigation.grid-container {
    padding: 0;
  }

  /* ajustement barre supérieure */
  .top-bar .inside-top-bar {
    justify-content: flex-end; /* au lieu de "right" */
    padding-right: 1px;
    padding-left: 1px;
  }
}

/* Cacher certains éléments sur mobile */
@media (max-width: 480px) {
  .mobile-display-none {
    display: none !important;
  }
}

/* =========================
   ANIMATIONS
   ========================= */

/**
 * ----------------------------------------
 * animation scale-in-center
 * ----------------------------------------
 */
.scale-in-center {
  -webkit-animation: scale-in-center 0.6s
    cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  animation: scale-in-center 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@-webkit-keyframes scale-in-center {
  0% {
    -webkit-transform: scale(0);
    transform: scale(0);
    opacity: 1;
  }
  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes scale-in-center {
  0% {
    -webkit-transform: scale(0);
    transform: scale(0);
    opacity: 1;
  }
  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
  }
}

/* =========================
   INTERACTIONS / COMPOSANTS
   ========================= */

/* Feedback au survol cartes cliquables */
.js-card {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.js-card:hover {
  transform: translateY(-5px);
}

/* FAQ */
.schema-faq-answer {
  border: 1px solid #3a6ea5;
  border-radius: 4px;
  background-color: #fff;
  padding: 0.7em;
  margin-bottom: 1.5em;
}

/* h3 fiches produits */
.single-product .woocommerce-Tabs-panel--description h3.product-care-title,
.single-product
  .woocommerce-product-details__short-description
  h3.product-care-title {
  margin: 1.5em 0 0.6em;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.25em;
}

/* ajustement du 13px dans le panier et checkout */
:root {
  --wp--preset--font-size--small: 1rem;
}

/* validation de commande : "Résumé de la commande" */
.woob2b-shipping-choice,
.wp-block-woocommerce-checkout-order-summary-block,
.wc-block-components-address-card,
.wc-block-components-quantity-selector,
.quantity,
.buttons-added {
  background-color: #ffffff;
}

/* =========================
   PRODUIT : VARIATIONS
   ========================= */

/* Select de variation : attribut "couleurs" */
.single-product .variations_form select#pa_couleurs {
  height: 44px;
  padding: 0 42px 0 14px;
  border: 1px solid #d9d9d9;
  border-radius: 20px;
  background-color: #fff;
  color: #222;
  font-size: 16px;
  line-height: 1.2;
  box-shadow: none;

  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* état focus */
.single-product .variations_form select#pa_couleurs:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.08);
}

/* lien "Effacer" */
.single-product .variations_form .reset_variations {
  margin-left: 10px;
  font-size: 16px;
}