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

/* =========================
   FONTS
   Base agence :
   - Poppins : headings
   - Lato  : corps
   Variantes volontairement limitées
   ========================= */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/poppins-v22-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/poppins-v22-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/poppins-v22-latin-700.woff2') format('woff2');
}

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

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

/* =========================
   BASE TYPO
   ========================= */

html {
  font-size: 100%;
}

body {
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.10rem, calc(1.10rem + 0.10vw), 1.20rem);
  line-height: 1.6;
}

nav,
.main-navigation {
  font-size: clamp(1.07rem, calc(1.07rem + 0.03vw), 1.10rem);
}

/* =========================
   UTILITAIRES
   ========================= */

.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);
}

/* =========================
   HEADER / NAVIGATION
   ========================= */

#site-navigation.main-navigation {
  border-bottom: 1px solid #ddd;
}

.site-header {
  border-bottom: 0;
}

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

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

/* =========================================================
   FIX UI WC
   - masquer le burger sur desktop uniquement en contexte Woo
   - masquer le compteur panier quand il est vide
   ========================================================= */

@media (min-width: 769px) {
  body.gpchild-wc-context .main-navigation .menu-toggle,
  body.gpchild-wc-context .main-navigation .mobile-bar-items,
  body.gpchild-wc-context .slideout-navigation-button,
  body.gpchild-wc-context .menu-bar-item.slideout-toggle {
    display: none !important;
  }

  body.gpchild-wc-context .main-navigation .main-nav {
    display: block !important;
  }

  body.gpchild-wc-context .main-navigation .main-nav > ul {
    display: flex !important;
  }
}

/* Panier vide : on garde l’icône, on masque juste le "0" */
.menu-bar-item.wc-menu-item .number-of-items.no-items {
  display: none !important;
}

/* si le montant est vide, on le masque aussi */
.menu-bar-item.wc-menu-item .amount:empty {
  display: none !important;
}
/* =========================
   COMPOSANTS
   ========================= */

/* 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;
}

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

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

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

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* =========================
   RESPONSIVE
   ========================= */

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

  .top-bar .inside-top-bar {
    justify-content: flex-end;
    padding-right: 1px;
    padding-left: 1px;
  }

  .main-navigation .menu-toggle .gp-icon {
    transform: scale(1.4);
    transform-origin: center;
    padding: 0.75em 0.5em;
  }
}

/* mention "menu" sur mobile */
	.mobile-menu {
		display: none;
	}

/* ajustement taille logo */
.navigation-branding img, .site-logo.mobile-header-logo img {
    height: 53px;
    width: auto;
}

@media (max-width: 480px) {
  .mobile-display-none {
    display: none !important;
  }
}